If you are running in safe mode, setting time limit has no effect

Eduardo M. Bragatto wrote:

I've send an e-mail with a doubt related with the
"maximum_execution_time" variable but it has no answers, so, I'm
submiting it again...

I'm using a single php script to send files named upload.php,
here is the source code:

<?php

set_time_limit(500);

copy($userfile, "log\\$userfile_name");

echo "<html><head><title>Uploading file...</title><meta http-equiv=\"refresh\" content=\"0; url=http://test.com/file_sent.html\";></head><body><center><font face=\"Verdana\" size=\"4\">Uploading file...</font></center></body></html>";

?>

I've tried to change the "time limit" because there's an error that
doesn't stop when trying to send big files (when the duration of
upload takes more than 20 seconds):

Fatal error: Maximum execution time of 20 seconds exceeded in
D:\dominios\E\escolas-es\spe\upload.php on line 2

As you can see, the time limit is exceeded before the
"set_time_limit" is executed. I thing that's because the script begins
only after the file is uploaded. My problem is that I can't change the
"maximum_execution_time" in the configuration file.

Does anyone knows how to solve that problem?

Thank you,
Eduardo M. Bragatto.

PS: Sorry for my miserable english #)




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

Reply via email to