PHP stops processing the page somewhat randomly

I spent all morning trying to find the answer to this question, but to no avail. I am working on a website and I created a small test server to make changes. When I loaded the page on which I made a few changes, I noticed that the page stopped. I reloaded the page and it stopped elsewhere. I rebooted again and again, and noticed three or four places where he had stopped, but could not predict where he would stop. The page itself is included from the page with the logic in it, it turns on when the page is not sent. I made a small page page containing only phpinfo();, and the same problem exists. He stops at seemingly random places in the manufactured tables.

Has anyone else 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 for the server was the document root in another folder in the file httpd.conf.

+3
source share
2 answers

Most likely, your script is exhausted 1) Memory 2) Maximum execution time

Check these constants in php.ini

+3
source

I would check the apache and php server logs. If you come across it when you call phpinfo () and nothing else, then this is most likely a conflict of some (not your code).

Post your magazines here if you need more help.

+1
source

Source: https://habr.com/ru/post/1709802/


All Articles