- Forums
- PHP
- Fatal Error: Allowed Memory Size Of Bytes Exhausted
This Page Contains information about Fatal Error: Allowed Memory Size Of Bytes Exhausted By worklings in category PHP with 1 Replies. [1162], Last Updated: Sat May 18, 2024
worklings
Wed Jul 02, 2008
1 Comments
534 Visits
im getting this error, can you help me please. i have a linux red hat fedora core server and when i run my script is getting this error. i actually found it because a user reported it to me. can you believe it. i do get a lot of traffic and im desperate to find out how i can fix this.
Fatal error: Allowed memory size of bytes exhausted (tried to allocate bytes) in php on line 14
what can i do to resolve this
look at where it says memory_limit - It will mostly like say 8MB which is the default.
Now edit your php.ini file and change the memory_limit from 8MB to 16MB, save the changes then restart your httpd (apache) server.
Another option is to put this peace of code at the begining of your script to raise your allowed memory for your website
PHP Code:
https://www.wallpaperama.com/forums/fatal-error-allowed-memory-size-of-bytes-exhausted-t6157.html