Re: netscape 4.x problem
| From: | Chris Shiflett | Date: | Sun, 23 Jun 2002 14:59:22 +0000 |
| Subject: | Re: netscape 4.x problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103470@lists.php.net to get a copy of this message | ||
When you see document contains no data like that, the most likely cause is an endless loop. So, for whatever, reason, it seems that your conditional statement is returning true every time.
Remove the "Location" header for now, and replace that line with:
echo "<h1>Redirecting to http://blah.com/sendheader.php</h1>";
exit;
This will allow you to see whether you are returning that "Location" header to the client under the different cases. My guess is that you will see this on the screen even when you don't expect to. That should give you a starting point for debugging.
Chris
Thomas E. Ruth wrote:
Hi, I'm having trouble getting a script working right in netscape 4.x and was wondering if anybody knew a workaround, or fix. If I have a script called "sendheader.php" with the following: <? if (! isset($GLOBALS[sendheader])) { header("Location: http://blah.com/sendheader.php"); exit; } echo "blah"; ?> Load the script in netscape 4.x with http://blah.com/sendheader.php?sendheader=0. Then load the script like http://blah.com/sendheader.php and netscape returns "Document contains no data".