lilzz wrote:Does the first one indicates going to the root directory?
i think that you can answer these questions just making some tests, just making a guess i can say that the first can redirect the page to the default page in the folder
Or maybe it isn't even working..
Let's say this: if it works, it's not standard compliant.
In fact, "Location" is not something regarding PHP, and since the standars WANTS a ansolute URI (see
http://tools.ietf.org/html/rfc2616#section-14.30 ), maybe location: . can work on somw browsers and on some not.
On chrome, it works as i wrote.
Also when you send header("location:") the web page would get redirected or reloaded?
mmm, philosophic question. What's the difference between "redirect to the same page" and "reload"?

(apart the risk of looping, lol)
btw, afaik Location: is not going anywhere..
Try to execute this
Code: Select all
<?php
header("Location:");
echo "something's wrong";
?>
Yes, something is wrong
