--Original Message-
> From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 6:25 PM
> To: Birkholz, James
> Subject: Re: [PHP] $REMOTE_HOST in email subject
>
> the environment variable "REMOTE_HOST" is the hostname, not the
> IPnu
On Sun, 2004-02-15 at 19:03, Birkholz, James wrote:
> mail([EMAIL PROTECTED],[EMAIL PROTECTED]",'[FLAG] Info edited: '.$theInfo.' by
> '.$REMOTE_HOST, 'From: '.$emailAdmin."\r\n");
Try $_SERVER['REMOTE_HOST']
Also, if apache is not configured with HostnameLookups On this won't be
set. You can ge
Did you try $_SERVER['HTTP_REFERER'] ?
John Taylor-Johnston wrote:
What happened when you tried that?
Nothing. Nothing showed. In fact nothing for getenv('REMOTE_HOST') in the else either.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://ww
> What happened when you tried that?
Nothing. Nothing showed. In fact nothing for getenv('REMOTE_HOST') in the else either.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> 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()
>
> $appareil = getenv('REMOTE_HOST');
>
> if(strpos($appareil, "www.foo.ca"))
> {
> echo "found $appareil";
> }else{
> echo "did not find $appareil
5 matches
Mail list logo