trouble with maximum_execution_time and file upload

From: Date: Mon, 04 Nov 2002 02:34:37 +0000
Subject: trouble with maximum_execution_time and file upload
Groups: php.general 
Request: Send a blank email to php-general+get-122602@lists.php.net to get a copy of this message
    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 #)

« previous php.general (#122602) next »