how do we check if the url in the browser in php?
it would be needed for an if statment, like:
if (*url == "http://mysite.com/page.php"){ }else{ header("Location: index.php"); }
Use $_SERVER['PHP_SELF'] Read the PHP Manual for predefined variables.