Re[2]: [PHP] Re: weird header() (bug may be)

2004-02-12 Thread Richard Davey
Hello Jason,

Thursday, February 12, 2004, 6:38:05 AM, you wrote:

 It should be this:
 header(Location: another_page.php);
 and NOT header(Location:another_page.php);

JW Also it should be an absolute URL otherwise it might break on some (standards
JW compliant only) browsers:

While I totally agree with both these pieces of advice, they're
unlikely to be the cause of the problem. YES you should have a space
after the Location: part and YES you should have an absolute URL,
*but* most modern browsers won't care if you haven't - the following
works perfectly on IE6/Opera7/Firefox - no matter how malformed it
looks:

Header(Location:page2.php);

Chris provided the solution to the original problem in his reply, but
I just wanted to bring this up. The OP should of course modify his
header statements, but its unlikely to resolve his problem on its own.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Re: weird header() (bug may be)

2004-02-12 Thread adwinwijaya
Hello Eric,
Thursday, February 12, 2004, 10:57:57 PM, you wrote:

EB That's pretty wierd
EB Think i'll do some research on headers, need more info anyway ;)
EB But did my tip work in your script when you took a space there?
EB Just wondering...
EB Eric

No it still doesnt work ... I have to put die() or exit() after
calling the header();  and whether I put space and not using space
.. the result still same .. ( I am get used not to use space for
almost 1 year .. and suddenly I just know that I should put space :) )

In my logic, after we call header('location: foo.php'); the php
processor should terminated and open the page foo.php instead ...
cmmiw

-- 
Best regards,
 adwinwijayamailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php