Forum Moderators: coopster
I've recently deployed a new server on slicehost, it's running ubuntu server 8.01 in a pretty typical LAMP configuration.
However, I'm getting the old "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8653727 bytes)" error-- even though I set the memory_limit to 100M in php.ini (yes, I did remember to restart apache!)
I don't know of anywhere else that this var is set-- any ideas why it's not getting set? Does the whole server need to be kicked over, not just apache?
thanks
Did you pull a phpinfo() to make sure it's getting the 100M?
You can also add a per-directory .htaccess directive, no restart required.
More info [webmasterworld.com] which I'm guessing is related to your problem, and if that's close to it IMagick (Imagemagick in PHP) will make it all go away without hogging up system memory.
you seem to be a pretty frequent customer in the imagick/gd threads-- the script I am updating to use imagick used to use the GD imagejpeg with the "to" parameter null to stream the image to buffer, which I then used to post to amazon S3.
Any idea what the equivalent command in imagick is? I was thinking just writeimage, but it doesn't document it if it is possible to stream it.
thanks
Maybe you just need to manage your stream as a filehandle and write to it? This page [imagemagick.org] describes writing to STDOUT, but you can write to any filehandle . . .