Re: upload time out
| From: | Jason Wong | Date: | Wed, 29 Jan 2003 20:55:39 +0000 |
| Subject: | Re: upload time out | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25240@lists.php.net to get a copy of this message | ||
On Thursday 30 January 2003 04:39, Ryan Holowaychuk wrote:
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> allocate 4000 bytes) in Unknown on line 0
>
> I have gone in and made some changes to allow the file upload larger
> files. I have gone in as well and turned on the messaging for now so
> that I can see things like the above error.
>
> I believe that this is the area that I am to make the change, but when I
> increase the memory limit I still get the same error
>
> ;;;;;;;;;;;;;;;;;;;
> ; Resource Limits ;
> ;;;;;;;;;;;;;;;;;;;
>
> max_execution_time = 320 ; Maximum execution time of each script, in
> seconds (default 30)
> memory_limit = 8M ; Maximum amount of memory a script may consume
> (8MB)
I think PHP keeps the uploaded file(s) in memory until they have completely
finished uploading and are ready to be written to disk. Thus if you're trying
to upload a 10MB file you would probably have to increase the memory_limit to
18MB to be on the safe side.
> as to the question if I should use FTP, yes I can and do for most, but I
> am trying to get this working for most as this is a lot easier for
> people to send files, so if I can get it working for larger files then
> things will fly
Remember HTTP uploads doesn't allow you to resume transfer. Thus if a file was
99% uploaded and an error occurs you have a very unhappy user ;-)
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
And miles to go before I sleep.
-- Robert Frost
*/