PHP Fatal error: Allowed memory size of xxxxx bytes exhausted
Posted by Jason Web Hosting Wednesday 8 April 2009 2:06 pm
You may see the error message “PHP Fatal error: Allowed memory size of xxxxx bytes exhausted (tried to allocate xxxxxxx bytes) in Unknown on line 0″ while accessing some php pages which indicates that those php files requires more memory for it to execute than the one specified in php.ini file. If the memory_limit value is manipulated in server side php.ini file, it will be applied to all the php files server side.
In order to overcome the error without modifying the server side php.ini file, you need to use the ini_set function to increase the memory limit inserting the following code in the php file itself. Keep on increasing the memory limit unless the error disappears.
ini_set(”memory_limit”,”64M”);
Leave a Reply
You must be logged in to post a comment.
Categories
- Cpanel / WHM (15)
- Linux Hosting (16)
- Linux Plesk (4)
- Linux VPS (3)
Archives
Web Hosting Blogroll
-
Dedicated Server
Dedicated Server Hosting
Load Balancing Server
Load Balanced Servers
VPS Hosting
Virtual Private Servers
cPanel Hosting
Linux Hosting
Windows Hosting
Windows Shared Hosting
Reseller Hosting
Reseller Web Hosting
Windows Reseller
Windows Reseller Hosting
Windows VPS
Windows VPS Hosting
Semi Dedicated Servers
Semi-Dedicated Hosting















