strpos error (I'm missing something obvious)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Overly simplified version of my code.

$site = "http://www.wnc.edu";;
$referer = $_SERVER["HTTP_REFERER"];

echo $referer;	// the output is correct at: http://www.wnc.edu/test/

if (strpos($referer,$site) === TRUE)
{
	echo "yes";
}

Why doesn't it echo out "yes"? I know I am doing something stupid here, but it doesn't seem to work .... :-)


--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada College
www.wnc.edu
775-445-3326

P.S. Please note that my e-mail and website address have changed from wncc.edu to wnc.edu.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux