Tobias Brasier wrote: > I have recently noticed a problem with our code or our webserver > (Apache) when I execute a .php file. I have taken all php code out, > but within an html <td> tag, I use background="#", which is used for > older browsers such as Netscape 4.7 if you have a background color or > image in a table (the background # completes it throughout the td). > This isn't the case for IE or NS 6+, though. > > The problem is that when I run the page, the log files show that the > page was accessed twice. This is only the case if the file has a php > extension. This does not occur if the file is an html file, > though.
That's very odd. Here's a suggestion that may help you to track down what is happening. Install the latest version of Mozilla, and then install the LiveHTTPHeaders plugin (http://livehttpheaders.mozdev.org/installation.html). Restart the browser, then click Tools > Web Development > Live HTTP Headers, which should open a capture window. Now request the page that is exhibiting this behavior, then look in the capture window to see the exact headers that were sent from your browser to the server and vice versa. If there is any redirecting or meta-refreshing going on the headers should reveal that. At least then you can see if your browser is actually requesting the page twice or if it's simply being processed twice on the server side. If you need help interpreting the output then throw it up on a web page and post a link, since the header capture for even a single fairly simple request can sometimes be quite verbose. HTH... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php