Nithya Nithya - 1 year ago 140
PHP Question

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes)

I am trying to create a footer for html page using "include" but i am getting error. I am new to PHP so i don't know any other solution. Even i have tried similar possibilities, but still it is not working..

This is the error which i have got

enter image description here

enter image description here

enter image description here

Answer Source

If the second image is your footer file then it is including itself. That means when it runs it will infinately loop, including itself over and over again until the memory limit is reached.

Remove include("footer.php"); from footer.php!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download