note 95954 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Fri, 04 Apr 2014 11:25:30 +0000 |
| Subject: | note 95954 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199146@lists.php.net to get a copy of this message | ||
Note Submitter: alvinwong_1234 at yahoo dot com dot hk
----
Normally, using
<?php
// Request URI is /boo/blah.php
header("Location: /foo/bar.php");
?>
generates a header just like
<?php
// Request URI is /boo/blah.php
header("Location: /foo/bar.php");
?>
But when I once used
<?php
// Request URI is /boo/blah.php
header("Location: ../foo/bar.php");
?>
today, it generates an absolute path like
<?php
// Request URI is /boo/blah.php
header("Location: http://www.example.com/foo/bar.php");
?>
Funny. I guess php done the work.