Don't use die (die just stops everything, nothing else gets send).
> <HTML>
> <TITLE>Some Title</TITLE>
> <BODY>
> <?php
> $var = 1;
> if ($var == 1) {
> echo ("I'm dead");
> } else {
> echo "I'm alive";
> }
> ?>
> </BODY>
> </HTML>
----- Original Message -----
From: "Ricardo D'Aguiar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 10:54 AM
Subject: [PHP] Simple question!!!
> Hi,
> Imagine the following script:
>
> <HTML>
> <TITLE>Some Title</TITLE>
> <BODY>
> <?php
> $var = 1;
> if ($var == 1) {
> die ("I'm dead");
> }
> echo "I'm alive";
> ?>
> </BODY>
> </HTML>
>
> If I try to execute via Internet Explorer ("5.x") apparently every thing
> works fine.
> It shows the string "I'm dead".
>
> But if I use the Netscape 4.7x, I get a blank screen.
> When I view the Source Code ("HTML code in Netscape") it shows:
>
> <HTML>
> <TITLE>Some Title</TITLE>
> <BODY>
> I'm dead
>
> Netscape can't render the page if its missing the </BODY> and </HTML>
> tags in the end.
> I already used 'return' end 'exit' functions but with the same result.
>
> There is some configuration parameter to the PHP server to send the rest
> of HTML code after exit the script or workaround?
>
> Thanks,
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]