Reply to Re: [PHP] Re: I have some upload questions.

Your name:

Reply:


Posted by Lee Chen on 05/16/05 19:15

Thanks
I check the phpinfo, and my safe_mode is off.
This is my phpinfo
http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm
It is just a copy, not on the server. (so it's html file, not a php file)

Thanks.

----- Original Message -----
From: "Marek Kilimajer" <lists@kilimajer.net>
To: "Lee Chen" <isiah@ms7.url.com.tw>
Cc: <php-general@lists.php.net>
Sent: Monday, May 16, 2005 11:26 PM
Subject: Re: [PHP] Re: I have some upload questions.


> 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.
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация