php3-list | 200003
Date: 03/31/00
- Next message: Marc: "[PHP3] PHP - sound great but how..."
- Previous message: Jim Brown, Sr.: "[PHP3] MySQL and IMAP???"
- In reply to: Jorge Ruben Macias: "[PHP3] Header("Location: whatever") doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
Sent: Thursday, March 30, 2000 8:53 AM
To: php3 <email protected>
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 <email protected>
"Any sufficiently advanced technology is undistinguishable from magic."
Arthur C. Clarke's Third Law
- Next message: Marc: "[PHP3] PHP - sound great but how..."
- Previous message: Jim Brown, Sr.: "[PHP3] MySQL and IMAP???"
- In reply to: Jorge Ruben Macias: "[PHP3] Header("Location: whatever") doesn't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

