> 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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php