Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

RE: [PHP3] Header("Location: whatever") doesn't work From: Andrew Sheh (ashea <email protected>)
Date: 03/31/00

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