Fatal Error: Allowed Memory Size Of Bytes Exhausted



Fatal Error: Allowed Memory Size Of Bytes Exhausted
 (380) Click. Work. Collect
Fatal Error: Allowed Memory Size Of Bytes Exhausted
Post Description:
Post Tags: fatal, error, allowed, memory, size, of, bytes, exhausted
This Post Has Been Viewed 114 Times Since Wed Jul 02, 2008 11:33 am Posted By worklings with 1 replies
Fatal Error: Allowed Memory Size Of Bytes Exhausted
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

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About Fatal Error: Allowed Memory Size Of Bytes Exhausted




:: 1 :: #60087 - Reply By hostman On Wed Jul 02, 2008 11:36 am
Run a phpinfo file to display the configurations in the php.ini file.

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:
ini_set("memory_limit","20M");