Entry
How do I upload a file to an FTP site from my webpage?
Feb 16th, 2000 11:54
Matt Gregory, gameboss gameboss, unknown unknown,
There are three possible approaches to this problem:
1.) If the FTP server is on your domain or webserver, simple upload the
file via a form and use the copy command to move it where you want it.
There are security issues invoved with doing this.
2.) Write a batch-like script to upload files to your ftp site using
the sockets functionality inside of PHP3/4 (source file received via
form post) This will take you some time to do, but it can be done.
3.) Use one of the million or so CGI-FTP applications available to
upload the file for you (retrieve the file from a form).