Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP stops rendering page somewhat arbitrarily

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.

like image 862
Cassie Meharry Avatar asked Nov 26 '25 22:11

Cassie Meharry


2 Answers

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

Check those constants in php.ini

like image 66
Alex Weinstein Avatar answered Nov 29 '25 11:11

Alex Weinstein


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.

like image 32
Joe Bubna Avatar answered Nov 29 '25 12:11

Joe Bubna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!