Tutorial :PHP stops rendering page somewhat arbitrarily



Question:

I've spent all morning trying to find an answer to this, to no avail. I'm working on a website, and I set up a small test server to make changes on. When I loaded the page I had made a few changes to, I noticed that the page stopped short. I reloaded the page, and it stopped at a different place. I reloaded again and again, and noticed three or four places that it stopped at, but couldn't predict where it would stop. The page itself is included from the page with the logic in it, is included when the page isn't POSTed to. I made a small page page containing only a phpinfo();, and the same problem exists as well. It stops at seemingly random places in the tables produced.

Has anyone else ever had this problem, and if so, how did you get rid of it?

Setup:

  • Windows XP (Test Server)
  • XAMPP
    • PHP 5.2.9
    • Apache 2.2.11

The only change I made to the server was pointing the document root at a different folder in the httpd.conf file.


Solution:1

Most likely, your script is running out of 1) Memory 2) Max execution time

Check those constants in php.ini


Solution:2

I'd check the apache and php server logs. If you have it crash on you when only calling phpinfo() and nothing else, then it most likely is somekind of conflict (not your code).

Post your logs here if you need more help.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »