For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2006 > partial page loading problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author partial page loading problem
tony

2006-10-12, 6:59 pm

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.
Gleep

2006-10-12, 6:59 pm

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.

tony

2006-10-12, 6:59 pm

Gleep wrote:
> On Thu, 12 Oct 2006 10:31:24 -0400, tony <fzhang05@vt.edu> wrote:
>
>
> 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.
>


Thanks for your reply. I will try what you suggested. We also did some
test. The frequency is about 3-4 times every 1000 url calls for the same
page. Is there any possibility related to memory setup in php.ini?
Gleep

2006-10-12, 6:59 pm

On Thu, 12 Oct 2006 15:51:27 -0400, tony <fzhang05@vt.edu> wrote:

>Gleep wrote:
>
>Thanks for your reply. I will try what you suggested. We also did some
>test. The frequency is about 3-4 times every 1000 url calls for the same
>page. Is there any possibility related to memory setup in php.ini?



It's hard to say without seeing code or understanding what it is your code is doing.
tony

2006-10-13, 6:56 pm

Gleep wrote:
> On Thu, 12 Oct 2006 15:51:27 -0400, tony <fzhang05@vt.edu> wrote:
>
>
>
> It's hard to say without seeing code or understanding what it is your code is doing.


Thanks again. I may not be able to show all the code as it is not clear
so far where is the problem and it is also not practical to post several
thousand lines of code here. This is not allowed by the rules of my
current project. However, I feel your experience and suggestion are very
helpful. I would say our code is not clean in terms of html as well as
data retrieving from oracle db. I will try to do what you suggested and
see if it is working. Thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com