PDA

View Full Version : FTP Upload Timeout


davirk
11-06-2006, 05:27 AM
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."

bruce
11-07-2006, 03:40 AM
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 (http://www.DiscountASP.NET)

davirk
11-07-2006, 07:49 AM
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.

edified
11-08-2006, 08:11 AM
To clarify I'm certain he meant HTTP timeout.

Ed Palma (http://edified.org/resume) - edified.org (http://edified.org/)

Aristotle
11-08-2006, 12:54 PM
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 (http://www.DiscountASP.NET)

motorcarsor
10-19-2007, 10:05 AM
use set_time_limit(0);

raymondp
10-19-2007, 10:19 AM
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 (http://www.DiscountASP.NET)

motorcarsor
10-20-2007, 01:30 AM
ah, yes, sorry.... it's for downloading... and other long time required things....