Hi, i'm using the following code on my website, but something seems to be wrong, cause everytime I try to upload something, I get this error:
Warning: ftp_put(): Unable to access in /home/cjbcc/public_html/members/koerel/party/uploads.php on line 16
<html>
<head></head>
<body>
<?
$ftp = ftp_connect("koerel.cjb.cc");
$source_file = $_POST['bestand'];
$logged = ftp_login($ftp,"***","***");
if ((!$ftp) || (!$logged)){
echo "der is iets mis!";
} else {
echo "je bent ingelogd";
}
if(isset($_FILES['bestand'])) {
ftp_put($ftp,"x.gif",$source_file,FTP_BINARY);
echo "Het bestand is opgeslagen";
} else {
echo "Selecteer een bestand";
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="bestand"><br>
<input type="submit" name="submit" value="Upload">
</form>
</body>
</html>