RE: [PHP] REMOTE_HOST

From: Date: Tue, 24 Dec 2002 04:15:51 +0000
Subject: RE: [PHP] REMOTE_HOST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129242@lists.php.net to get a copy of this message
> I think this is perl? REMOTE_HOST > > How can I do this? I want to check the referer. If A do Aa, else Bb > I can't find a variable in phpinfo() > > <?php > $appareil = getenv('REMOTE_HOST'); > > if(strpos($appareil, "www.foo.ca")) > { > echo "found $appareil"; > }else{ > echo "did not find $appareil"; > } > ?> What happened when you tried that? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#129242) next »