Re: Upload files problems

From: Date: Fri, 26 May 2006 11:30:35 +0000
Subject: Re: Upload files problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-236941@lists.php.net to get a copy of this message
On 5/25/06, Ryan Creaser <rjcreaser@internode.on.net> wrote:
Ing. Tomás Liendo wrote: Hi! When the users of my system try to go up files of more than 460 K, they receive the message: Fatal error: Maximum execution time of 90 seconds exceeded in c:\websites\iracbiogenar48\iracbiogen.com.ar\virtual\procesa_msjpriv.php on line 2 I'm using the following method to up load the files: if($archivo_name<>"") { $dpath="./archivos_recibidos/".$archivo_name;
        if(move_uploaded_file($archivo, $dpath))
        {//Se realiza la transmision del archivo al servidor.
            echo "<font size=2 face=Arial, Helvetica, sans-serif>El archivo
".$archivo_name.". ha sido transferido exitosamente.</font></div></td>"; } else {
            echo "<font size=2 face=Arial, Helvetica,
sans-serif>ADVERTENCIA: El arcvhio ".$archivo_name.". no ha podido enviarse.</font></div></td>"; } Do I have control on these 90 seconds? or is a parameter of the server? What can I do to solve this problem? Ahead of time thank you very much, Tom. See http://php.net/set_time_limit, although it might not work if your host uses safe mode.
In addition to using set_time_limit, you'll probably also need to change the value of the max_input_time option: http://php.net/manual/en/ref.info.php#ini.max-input-time Rabin

« previous php.general (#236941) next »