I have a resize srcipt that is absolutly fine on smallish file sizes (under 300k). But with files larger than that it work sporadically. I had it work on a 500k file once and then when I tried it again it didn't. It doesn't seem to see it if it is over a certain size. Any ideas why this may be? Could it be something to do with the way gd is set up on my server?
insert
error_reporting(E_ALL);
as the very first line in
do you get any error messages?
Nothing.
you don't suppress error messages via @ do you?
Ah yes there was one. now it says:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in /mnt/host-users/c/r/o/croxleycarp/resize2.php on line 7
any suggestions what I should do about it?
well, if you may increase your memory limit do so, if you may not: poor chaza
you can increase it in php.ini, .htaccess or even in your script via ini_set
hmmm. unfortunately it's not my server but a remote one and free one at that. ( host.sk )
try using ini_set
good luck