Re: partial page loading problem
On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:
>I am working on a PHP project and having a partial page loading problem
>randomly. The PHP module 4.4.0 is running on apache server 1.3.33, with
>database connection to oracle 10g. The problem happens randomly with
>partial or blank page loaded. Refresh will get a complete page in most
>of time. I checked the error log and seems there is no specific error
>message corresponding to this problem. Anybody has the similar
>experience? Any suggestion/advice is appreciated.
I've had this happen occasionally . It's usually a code problem. Typically when your mixing php in
with HTML. There probably is a typo or bad variable being passed somewhere.
The best thing to do. I identify where in the code the page is being cut off. From that point, if
you have php code like if then statements or you are generating html stop the flow at the point
with
echo " $variableA $vaiableB $sql ";
exit;
print out the current variable and see if that is what your expecting. If it's a random issue I
suspect you are passing an empty or null value, maybe a var is not being passed correctly from
another form, something is being over written. it's hard to say since you did not post any of your
code. But at least this is a start to figure out what is going on.
Also if you are dealing wiht somthing that is long an complex, it helps to make a copy of that
section and past it into test.php and just test that section, class or function to weed out
errors.
|