I'm designing a web gallery for a friend that uses php http uploads to upload jpg's from a digital camera. After the single jpg (about 1MB in size) is uploaded, my script moves it to a directory, then makes two resized copies of it, one thumbnail sized (70px wide) and another for the main image which will display in the gallery once the thumbnail is clicked(about 400px wide).
The problem I am having is that I get the following error:
I've contacted my web hosts technical support via email, and this is the reply I got:
After a few more queries it seems that they are unwilling to do anything to remedy this which I think is suprising. All I'm trying to do is set up a script to upload images one at a time and resize them. I would have thought this was a fairly everyday task for the average server running PHP.
I'm guessing that the 16MB is refering to the amount of RAM that is being used in the moving and resizing calculations.
Does any one have any experience or advice they'd like to pass on. I'm considering changing hosts, but I'm wondering if their script memory limits will be any higher.
The problem I am having is that I get the following error:
Code:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2000 bytes) in /home/mysite/public_html/imageup/upload.php on line 152
I've contacted my web hosts technical support via email, and this is the reply I got:
it acutally appears to be a memory limit error, it appears your script is
exhausting the maximum ammount of memory a script can use (16mb currently)
After a few more queries it seems that they are unwilling to do anything to remedy this which I think is suprising. All I'm trying to do is set up a script to upload images one at a time and resize them. I would have thought this was a fairly everyday task for the average server running PHP.
I'm guessing that the 16MB is refering to the amount of RAM that is being used in the moving and resizing calculations.
Does any one have any experience or advice they'd like to pass on. I'm considering changing hosts, but I'm wondering if their script memory limits will be any higher.