Thread: PHP question
View Single Post
Old 05-26-2005, 06:55 AM  
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Code:
if (isset($_SERVER['HTTP_REFERER']))
{
	if (strpos($_SERVER['HTTP_REFERER'],"domain.com/myscript.php") !hahahaha false)
	{
		echo "this script called with domain.com/myscript.php";
	}
	else
	{
		echo "call by ".$_SERVER['HTTP_REFERER'];
	}
}
else 
{
	echo "no referer";	
}
replace hahahaa with double equal signs (=)
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote