View Full Version : Php Script That Uplods via FTP??
Hello. I am desperately in need of a php script that uploads files via ftp. I am running a business and need customers to be able to upload 30MB files to my server. Since I cannot do this via http...I need a php script that will allow people to upload their files to my server via ftp.
If you have one PLEASE PLEASE PLEASE PLEASE PLEASE send it to me
7-7-06, 12:03 AM
im not sure you need a script ? just give customers a username and password , set up a FTP directory and send them the link to it ?
yes i can do that but what if customers delete each others files? creating an account for EACH customer would be too much work. a php script that uploads files via ftp to one directory would make life 10000x easier
7-7-06, 12:20 AM
Ahhh makes sense, i wasnt thinking about the deletion issue. My apologies.
uploading on the new platform seems painful. As i type this, my connection has been dropped multiple times, trying to upload under 1 MB of files. and im on cable. don't know that my connection should be being dropped like this while using FTP.
I may have to configure an outside source to catch uploads, until the wrinkles in the endurance platoform are ironed out.
You may need extra's sage advice here. My instinct is that a script that does FTP will not alleviate the problem of HTTP uploading timeouts since the critical interaction between the user and the website will still be via HTTP and not FTP. That is, a script to FTP a file would only be a link in a chain that still starts with an HTTP data transfer to the host server.
I was thinking that you could reduce the vulnerability of allowing users direct FTP access to a user upload directory by installing a CRON-activated script that would routinely move any files it finds in this user upload directory to a protected directory.
Hmm.... Or how about something a bit oblique? Like periodically sniffing the directory for user uploads and if any are found, rename the directory to something unique (based on a counter or time/date stamp of some kind), then create a new user upload directory. If the multiple directories get to be a burden, the script could periodically merge them all, say twice a day, to head off any server overload.
As I say, you need someone with some insights into the server loads and other practicalities. I'm just poking around here. Anybody seen extras lately?
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.