Re: Problem with set_time_limit() and uploading large files

From: Date: Fri, 25 Oct 2002 21:29:12 +0000
Subject: Re: Problem with set_time_limit() and uploading large files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121483@lists.php.net to get a copy of this message
Hello, Just a few ideas... "derek fong" <php@subtitled.com> wrote: > Hi, > > 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: > > <?php > // let this script take as long as it needs to complete its work > // and ignore if user hits stops button in his browser > set_time_limit(0); Try another number. Who knows? Might work... :) ...[snip]... > I've also tried adding: > > ini_set('max_execution_time', 60000); + Check whether ini_set() was successful. + I know you can change "max_execution_time" inside your script but try changing it in php.ini and restart your server. + Perhaps, you can lower the number. (Is that 60,000 seconds?) - E ...[snip]...

« previous php.general (#121483) next »