PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
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.