Page 2 of 2

Re: Problem using FTP functions

Posted: Tue Oct 19, 2010 5:23 am
by snowc
VladSun wrote:
josh wrote:What you want to do is setup one FTP server on the same machine as the web server where PHP runs. Have each user name their file a specific filename, and in your form have a standard text input. Let them enter in the name of the file they uploaded.
And how would they perform the FTP upload itself?

I thought that PHP's ftp functionality can be used to upload the file but I was mistaken my bad. I have to figure a way around it.

Re: Problem using FTP functions

Posted: Tue Oct 19, 2010 10:47 am
by josh
Ftp transfers happen between an FTP client (PHP, or filezilla which runs on a desktop computer or server) and an FTP server (pro-FTPD which runs on a linux server).

HTTP file transfers happen between a web browser and a web server.

Either would be acceptable for this task. Probably more suited to FTP if it is 100 files. The system could create a folder and instruct them to upload all their 100s of file assets to that folder using their FTP client (fileZilla). Once they are done they could click a button in the web form, causing PHP to read those files and save the records in the database.