Can anyone tell me how to upload a file via PHP and RAW FTP commands? I can create the connection, create a 0 byte file, but I cannot send the data of the file and I need to know how.
Thanks
you would then exit the ftp connection. use $file = fopen (file,"w") fwrite($file,string) fclose($file)
No, it does not work. I cannot open an existing file.
Nevermind. I have written code that will utillize the data port reported by a PASV command and can now upload files 100% of the time.