Re: Upload files problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/25/06, Ryan Creaser <rjcreaser@xxxxxxxxxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux