Jump to content

PHP page does not completely render


intervolved

Recommended Posts

I am new to PHP. 

A friend asked me to look at his site.  They are having problems with pages not completely rendering.  If you view the html that was displayed in the browser not all of the html has been sent to the browser.  The place where the page stops is not consistent.    I assume that an error is being thrown in the code but I am not familiar enough with the environment to be sure.

There is no error message in the html it is just like it stopped sending the html.  I have verified that display_error iand log_errors is turned on and no error message is displayed. 

What/How can I diagnose this problem? 

Thanks in advance.


PHP Version      4.3.2
        OS              : Linux
        Hosted at      : northlandcom.com

Link to comment
https://forums.phpfreaks.com/topic/22304-php-page-does-not-completely-render/
Share on other sites

Ok I decided to add the command to flush the buffer and after I did that the whole page now renders.  I have not been able to recreate the problem after I added the code.  The problem did not occur all the time but today before adding the commands I was able to consistently recreate the problem.   

Any ideas why this has "fixed" the problem?


<?php
    ob_flush();
    flush();

?>
Read through the code and find out what they are doing wrong, they probably have various places that call a die() or something that just halts the script.

Without seeing the code, no on can help you.

and to reply to your recent reply: Something else probably was fixed in the process of adding that code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.