I call this function from another page
Redirect($loc);
and I want it to redirect my server..
function Redirect($loc)
{
echo ("<script type=\"text/javascript\">var timeout=1; setTimeout(\"window.location.replace('" . $loc . "')\", timeout*1000 );</script>");
}
I have two questions. one is the script in the function is correct? second, how do I pass it a url, assuming I am using the localhost and I want my applicaton to be portable. So I my file is called Registration.php and it is in the Users folder of my site, how do I contruct a url?