PHP help...HTTP_REFERER
Ok, once again I am completely stumped.
Im sure someone can answer this pretty easily - but for some reason I am having major issues.
Here is the code:
session_start();
include_once "folder/connect_to_mysql.php";
$ref = parse_url($_SERVER['HTTP_REFERER']);
$host = $ref["host"];
if ($host != "www.(my site here).com") {
echo "Crap! Something broke on the backend...";
exit();
}
needless to say, it always echos out the "Crap! Something broke on the backend..."
I cannot figure out why though.
Any ideas?
