RE: [PHP] Resources Issue
| From: | Tom Shaw | Date: | Tue, 16 Sep 2008 04:48:01 +0000 |
| Subject: | RE: [PHP] Resources Issue | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280255@lists.php.net to get a copy of this message | ||
I would start by trying to narrow down where the error is occurring. In the
upload process or in the resizing process? Setup your php error handling to
throw an exception so you can get a full stack trace of what's going on.
Tom Shaw
-----Original Message-----
From: Merca, Ansta Ltd [mailto:merca@ansta.co.uk]
Sent: Monday, September 15, 2008 10:39 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Resources Issue
Hi everyone,
I'm getting "Fatal error: Allowed memory size of 25165824 bytes
exhausted" - when I'm trying to upload 1.84MB image and resize it to
400x300px.
If the file is smaller it works fine, but with higher resolution images
it returns me this error.
I'm building the website on local testing server with PHP5 (24M Memory
allocated).
I've tried to increase memory, but it does not react to more than 32M
(if I allocate 64M - it just stays with 32M error - 33554432 bytes
exhausted), any suggestions? Or it will be fine on the live server?
Thanks,
Merca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php