Forum Moderators: coopster

Message Too Old, No Replies

PHP webpage sometimes do not load.

Just sometimes. Surfer has to click "Refresh".

         

Soso

3:40 pm on Jan 16, 2004 (gmt 0)

10+ Year Member



I'm running a blogging software, which displays the articles through the index.php file. Now, I have created another php file, cat.php, which is supposed to display all articles from a given category, and it is called with one parameter, like "cat.php?cat=5". And it works. Almost.

I must have done something wrong, since *sometimes*, when I click on such link from my main index page, I get the empty page with the error dialog box: "File not found". But if I click "Refresh", the page will display itself correctly, so the URL is not wrong. Moreover, when I'm testing it locally on my pc, everything goes just fine (I have apache installed, and my webhost has apache as well). Also, this is happening in IE only so far, Opera is behaving properly.

Please can you give me some hints about how to determine if it is a problem of Apache, or Browser, or my php-code. I would suspect there is some problem with mu code, since the original index.php is working fine. So my second question is, what is the best way to debug my php code to catch the problem?

Thank you,
Soso

jatar_k

7:53 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



do your normal html pages load all the time?

It does sound like a configuration issue. Is php installed as cgi or as an apache module?

Soso

5:48 pm on Jan 18, 2004 (gmt 0)

10+ Year Member



>>> do your normal html pages load all the time?

I have just only 2 PHP pages. One of them is loaded all the time.

>>> It does sound like a configuration issue. Is php installed as cgi or as an apache module?

It is apache module. Seems like IE + configuration issue so far...