Just a minor change, the HTTP Specification says that the Location header should use a absoluteURI which includes the full URL not just page.php... so http://yoursite.com/page.php is what you should be using there.
Andrew ----- Original Message ----- From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Petre Agenbag" <[EMAIL PROTECTED]>; "Beauford.2005" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 8:56 PM Subject: RE: [PHP] I'm really getting annoyed with PHP Petre Agenbag <mailto:[EMAIL PROTECTED]> on Wednesday, July 23, 2003 12:55 PM said: > If you want to "use PHP", then you must use the headers() function. > BUT, with the header function, you MUST make sure that there will be > absolutely NO output to the page before the header() function is > called, not even a space... If there is a "even a space" you can turn output buffering on so that the redirect will still work. <? ob_start(); echo "hello"; header("Location: page.php"); ?> will work just fine. chris. p.s. exactly what is the code you are using in your script that's not working? and what browser are you using? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php