strpos error (I'm missing something obvious)

From: Date: Mon, 01 Oct 2007 21:23:15 +0000
Subject: strpos error (I'm missing something obvious)
Groups: php.general 
Request: Send a blank email to php-general+get-262621@lists.php.net to get a copy of this message
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.

« previous php.general (#262621) next »