I have a script that processes images that are uploaded by the user. However, I encountered this error
Fatal error: allowable memory size 134217728 Bytes exhausted
I read a lot of posts about this, but nobody is working. All of these messages are included using ini_set('Memory_limit', '-1');. I installed an unlimited amount, but nothing works. Even this failed and showed me the same error.
However, when I manually changed the memory limit from 128to 256in the file php.ini. It worked like a charm.
why did this happen and why doesn't it work init_set?
I did not even install suhosin
You can look at it. You can see my file phphere.
imagecreatetruecolor php uses too much memory
source
share