Re: Problem with set_time_limit() and uploading large files

From: Date: Fri, 25 Oct 2002 23:51:11 +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-121498@lists.php.net to get a copy of this message
Thanks for the tips, but they all checked out in the end. After reporting it as a bug, it turns out it *is* a bug with 4.2.3 (whether it's only with Win2000, I'm not sure), but has been fixed in CVS. Now I can rest a little easier... =) -f -- 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 << On Friday, October 25, 2002, at 05:29 pm, @ Edwin wrote: > 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 (#121498) next »