FTP Upload Timeout

Discussion in 'HTML / PHP / JavaScript / CSS' started by davirk, Nov 6, 2006.

  1. Anyone know how to overcome the global 30 second timeout for file uploads. Here is the response from DASP:

    "Unfortunately the php 30 second threshold is a global settings on our servers and cannot be changed per individual account. You will need to modify your code so that it does not reach the 30 seconds threshold."
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Not on Windows Server. In UNIX box, you can override the server setting (if the admin choose to allow you that) with your own PHP.ini file.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. What does dasp recommend to overcome this windows limitation? It is not an option to transfer the files in less than 30 seconds since they can be quite large.
     
  4. I think you'd have to use ASP.NET instead of PHP, so that you'll be able set the script/execution timeout.

    But I'm confused about the subject of your post "FTP Upload Timeout". Is your PHP application doing any FTP sessions to another server? Usually, file uploads through a web application is done through HTTP.



    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. use set_time_limit(0);
     
  6. The default socket timeout for file uploads is 60 seconds on the server. This is set on the php.ini file. I'm not sure if set_time_limit will work since it only controls the execution time.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  7. ah, yes, sorry.... it's for downloading... and other long time required things....
     

Share This Page