Time limit exceeded when uploading files
| From: | Eduardo M. Bragatto | Date: | Fri, 01 Nov 2002 16:33:28 +0000 |
| Subject: | Time limit exceeded when uploading files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122528@lists.php.net to get a copy of this message | ||
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:
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 can help me out?
Thank you,
Eduardo M. Bragatto.