I am having a major problem getting set_time_limit() to work at all with PHP 4.2.3 running as a CGI program under IIS for Windows 2000 (I originally posted this message to php-win, but am hoping someone here can shed some light on this). I have a form that accepts large files for upload, with the following lines at the top of the form action script:

// let this script take as long as it needs to complete its work
// and ignore if user hits stops button in his browser

// include site-wide configs and other include files

If the file upload takes longer than 30 seconds, PHP bombs out with the following error:

"Fatal error: Maximum execution time of 30 seconds exceeded in D:\InetPub\test.php on line 3"

I've also tried adding:

ini_set('max_execution_time', 60000);

before the set_time_limit() function, but to no avail. PHP is not running in safe mode. Does anyone have any ideas why this is not working as expected? I'm sure it's something obvious, but I don't know what it is.

Thanks in advance,


Derek Fong
Web Application Developer
subtitle designs inc. <http://www.subtitled.com/>

"Mistakes are the portals of discovery." --James Joyce
>> GPG key/fingerprint available upon request <<

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to