[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: RE: [PHP3] Header("Location: whatever") doesn't work
From: "Andrew Sheh" <ashea () dmetechnologies ! com>
Date: 2000-03-31 22:38:57
[Download RAW message or body]
Jorge,
the header function has to be like this. No capital letter
header("Location: http://www.php.net");
Andrew Sheh
-----Original Message-----
From: Jorge Ruben Macias [mailto:jmacias@protel.net.mx]
Sent: Thursday, March 30, 2000 8:53 AM
To: php3@lists.php.net
Subject: [PHP3] Header("Location: whatever") doesn't work
Hello everyone
I am having trouble using Header("Location: errorPage.php") with Win NT,
IIS 3.0, PHP 4 Beta.
The code after de Header is still being executed, so I tried the exit;
call as it says in the documentation, but then I get an "invalid header"
message in the browser. So I tried exit(0); but then I get the 0 printed to
the browser and the Header is not executed (but the Header is before Exit,
as it should be).
Any ideas? Thanks a lot guys ... have fun ...
Jorge Ruben Macias Lopez
jmacias@protel.net.mx
"Any sufficiently advanced technology is undistinguishable from magic."
Arthur C. Clarke's Third Law
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2722.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=240023722-31032000>Jorge,
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=240023722-31032000>the
header function has to be like this. No capital letter</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=240023722-31032000>header("Location: http://www.php.net");
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=240023722-31032000>Andrew
Sheh</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma><FONT
size=2>-----Original Message-----<SPAN class=240023722-31032000><FONT
color=#0000ff face=Arial> </FONT></SPAN><BR><B>From:</B> Jorge
Ruben Macias [mailto:jmacias@protel.net.mx]<BR><B>Sent:</B> Thursday, March
30, 2000 8:53 AM<BR><B>To:</B> php3@lists.php.net<BR><B>Subject:</B> [PHP3]
Header("Location: whatever") doesn't work<BR><BR></FONT></DIV></FONT>
<DIV><FONT face=Arial size=2>Hello everyone</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am having trouble using Header("Location:
errorPage.php") with Win NT, IIS 3.0, PHP 4 Beta.</FONT></DIV>
<DIV><FONT face=Arial size=2>The code after de Header is still being executed,
so I tried the exit; call as it says in the documentation, but then I get an
"invalid header" message in the browser. So I tried exit(0); but then I
get the 0 printed to the browser and the Header is not executed (but the
Header is before Exit, as it should be).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Any ideas? Thanks a lot guys ... have fun
...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jorge Ruben Macias Lopez<BR><A
href="mailto:jmacias@protel.net.mx">jmacias@protel.net.mx</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>"Any sufficiently advanced technology is
undistinguishable from magic."<BR> Arthur C. Clarke's Third
Law</FONT></DIV></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic