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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psixat
    New Member
    • Oct 2008
    • 1

    #1

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

    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
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    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

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

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

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

      Comment

      Working...