I am using this script for ftp upload. It seems that the ftp connection is working the only problem that is left is that it doesn't find the file. I get the error: Warning: fopen("C:\\a.txt","r" - No such file or directory in C:\web\neteject\pictureuploader\ftp.php on line 31
I thought that I could use the "browse". A strange thing is that it doesn't find the file when I hardcode it neither.
$fp=fopen("$UploadedFile", "r"
ftp_fput($ftp,"$UploadedFile", $fp, FTP_ASCII);
fclose($fp);
ftp_quit($ftp);
<FORM METHOD=post ACTION=ftp.php>
<input CLASS=xxblabgre3t type="file" size=40 name="UploadedFile">
<input CLASS=xxblabgre3 type=submit name=upload value="UPLOAD FILE">
</FORM>
Any help would be appreciated!
// Henrik
I thought that I could use the "browse". A strange thing is that it doesn't find the file when I hardcode it neither.
$fp=fopen("$UploadedFile", "r"
ftp_fput($ftp,"$UploadedFile", $fp, FTP_ASCII);
fclose($fp);
ftp_quit($ftp);
<FORM METHOD=post ACTION=ftp.php>
<input CLASS=xxblabgre3t type="file" size=40 name="UploadedFile">
<input CLASS=xxblabgre3 type=submit name=upload value="UPLOAD FILE">
</FORM>
Any help would be appreciated!
// Henrik