Posted by Toby A Inkster on 07/21/07 14:20
bill wrote:
> Michael Fesser wrote:
>
>> header("Location: http://{$_SERVER['HTTP_HOST']}/pag2.php");
>> The URL must be absolute.
>
> why ?
HTTP/1.1 spec says so.
Most browsers do support relative URLs in Location headers, but it's unwise
to rely on that.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 30 days, 17:58.]
Parsing an HTML Table with PEAR's XML_HTTPSax3
http://tobyinkster.co.uk/blog/2007/07/20/html-table-parsing/
Navigation:
[Reply to this message]
|