try puting an exit(); after the header().

<?
header("location: someplace.html");
exit();
?>

Jim Lucas
----- Original Message -----
From: "Ben Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 10:47 AM
Subject: [PHP] Redirect problem.... UGH!!


> I am trying to put together a very simple redirect from php.  all it is
> supposed to do is pull down the $p var and ship the user off to the
> destination.
>
> Ready for some code?
>
> <?
>  #Header("Location: index.html");
> ?>
>
> When I try this on a Linux server using PHP... everything works fine.  The
> minute I put it on IIS5 (the clients server) I receive "The specified CGI
> application misbehaved by not returning a complete set of HTTP headers. "
>
> I am guessing this is a bu with PHP and IIS but does anyone know how to
> circumvent it?
>
> Thanks!
> Ben
>
> --
> 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]

Reply via email to