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
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();

?>
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.