Re: File upload (using POST method) timeouts?

From: Date: Wed, 13 Sep 2000 19:21:14 +0000
Subject: Re: File upload (using POST method) timeouts?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-16625@lists.php.net to get a copy of this message
James Treworgy writes: > In the online docs for using the upload functions (for PHP to accept file > uploads) someone notes that you may need to increase max_execution_time in > php3.ini (or in httpd.conf) for long file uploads. I am running 4.02. > > Is this an issue? In an anecdotal test, it seems to not time out (as > logically one would prefer, since an upload isn't exactly a script running > amok). Whether or not an upload script will time out, it would seem a very > useful feature to be able to set the max_execution_time on a per-page basis > (rather than as a server configuration directive). > > I'd rather not change my max_execution_time to something absurdly high > simply so I can accept file uploads - which is quite a useful feature when > you consider that you can do it through SSL, which isn't really possible > with FTP as yet (I know about SSH, but a windoze SSH FTP client doesn't > exist yet as far as I can tell). > > Can anyone confirm that uploads will not time out in 4.0.2, and comment on > the ability (or lack thereof ) in general to set this directive for a > single script? > > Jamie I can't confirm the first, but there is a function in the manual for the second: http://www.php.net/manual/function.set-time-limit.php -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#16625) next »