Connecting Tech Pros Worldwide Forums | Help | Site Map

Need a solution for downloading 100s of images without server timeout

Newbie
 
Join Date: Oct 2008
Posts: 1
#1: Oct 28 '08
Help!
We’ve developed a PHP/MySQL based database application that contains over 1,000 large images (30 MB each). Our client’s field staff need the ability to frequently download all these images from anywhere in the world. The problem we are experiencing while attempting to download all the images at once is “server connection time out.”

Can anyone suggest some solutions to overcome this problem? Can the image files be downloaded with a direct FTP access? Would it be possible to write a script to accomplish this.

Thank you very much.

dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#2: Oct 28 '08

re: Need a solution for downloading 100s of images without server timeout


PHP can access FTP but cannot access the user's machine. You need an FTP client installed on the client machine to access the server and download them. If they are in a database, PHP can retrieve it and put it in a folder on the server.

Look into using AJAX that runs on the client side until it know the image has been retrieved from the DB?

That's all I can think of, and it's not my best solution, I must say.




Dan
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#3: Oct 28 '08

re: Need a solution for downloading 100s of images without server timeout


Server timeout: if you set_time_limit() to 0, then there is no timeout.

http://uk3.php.net/function.set-time-limit
Reply