Re: Why do i get this error message?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, April 22, 2007 5:47 pm, H.T wrote:
> I get this error message when i try to check my site on localhost
> running
> IIS and PHP 5.1.2 :
>
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> allocate 24576 bytes) in ...
>
> and it points to the line which is pure html code!
> What could be the cause of this problem?

PHP ate up 8388600 bytes in your script.

Now you have this HTML:

<html>
  <head>
.
.
.


In the 8th byte, PHP has run out of room to store your HTML so it can
dump it out to the browser.

The real problem is whatever you did to chew up 8M of RAM before you
got to the HTML.

A quick-hack solution is to try changing 8M to 16M in php.ini,
especially as there are some templating/cms thingies out there that
apparently chew up well over 8M RAM in PHP 5 before you can even say
"Hello World"...

Sheesh.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux