Hello all, so I have a form to allow a user to upload a file which will be transfered via FTP. Only becuase my host is a punk and wont allow me to change the ini settings.
I haev everything working except the actual transfer.
I have a form with a file field named file, and I try to transfer the file via:
$upload = ftp_put($conn_id, "/home/path/to/dir/", $_FILES['file']['name'], FTP_BINARY);
Why does this always return false?
Also, if I change the $_FILES['file']['name'] to anything else, ie tmp_name, it gives an error stating that the file doesnt exist.
Thanks.