I'm trying to create a script that allows a user to upload a file to their website through a form.
Once the form is submitted and the file is uploaded to the servers tmp directory, I can't get the file uploaded to the directory I want. I'm trying this with no luck ...
$upload = ftp_put($conn_id, $_SERVER['DOCUMENT_ROOT']."/test.html", $_FILES["uploadedfile"]["tmp_name"], FTP_BINARY);
The ftp connection is working fine, but I keep getting this error:
ftp_put(): /home/httpd/vhosts/mydomain.com/httpdocs/hockeypool.html: No such file or directory in /home/httpd/vhosts/mydomain.com/httpdocs/test/AJ/Site/admin/modHockeyPool.inc.php on line 67
Any help would be great.