[1684887 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

PHP timeouts

Earlier this morning I posted an entry about configuration of the maximum execution time. The reason I have to do this is actually to work around a bad flaw in PHP.

I want to do some large file uploads, upto 100 MB. Over a slow connection this takes maybe half an hour. Normally the script timeout is set to something like 30 seconds, but you can change it inside the script. The catch here is, it does not work for me. The POST request takes around 30 minutes. So the first line of the script won't get executed before the timeout happens! So no way for me to prevent the timeout on the script level. Took me ages to figure out the actual problem...


posted on 2005-02-04 11:29 UTC in Code | 0 comments | permalink