Re: Re: I have some upload questions.

From: Date: Mon, 16 May 2005 16:18:26 +0000
Subject: Re: Re: I have some upload questions.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-215308@lists.php.net to get a copy of this message
btw, even if I set max_execution_time = 0 in the php.ini, I still CAN'T upload a file of 30MB. and it still shows the same message: Fatal error: Maximum execution time of 0 seconds exceeded in justtest.php on line 2 I just don't understand how it can exceed a max execution time of "0". Anything wrong? THANKS. "Marek Kilimajer" <lists@kilimajer.net> ???????:4288BBB4.7020708@kilimajer.net... > Lee Chen wrote: > > Thanks for all of your helping. > > > > I think now maybe it's not the serve's problem because I CAN post forms and > > even I can upload some smaller size files. > > Then the following is my problem: > > > > This is the script of " justtest.php" : > > > > justtest.php > > <?php > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], > > "$full_path"); > > } > > ?> > > <form action='justtest.php' enctype='multipart/form-data' > > method='post'> > > <input type='file' name='upload'> > > <input type='submit' value='upload'> > > > > > > > > I can upload a file of size 7KB, but when I want to upload a file of 20 or > > 30MB, it says : > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > > > That means it took too long time to upload? > > But when I add some function to this script something like this: > > > > <?php > > set_time_limit(0); > > if (is_uploaded_file($_FILES["upload"]['tmp_name'])) > > { > > $full_path = "D:/xxx/xxx.pdf"; > > move_uploaded_file($_FILES["upload"]['tmp_name'], > > "$full_path") ; > > } > > set_time_limit(0); > > ?> > > <form action='justtest.php' enctype='multipart/form-data' > > method='post'> > > <input type='file' name='upload'> > > <input type='submit' value='upload'> > > > > > > I add "two" set_time_limit(0) but when I want to upload a file of 20or > > 30MB, it still shows: > > Fatal error: Maximum execution time of 30 seconds exceeded in justtest.php > > on line 2 > > Is safe_mode on? set_time_limit() has no effect when PHP is running in > safe mode.

« previous php.general (#215308) next »