Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] $REMOTE_ADDR ?? From: Eric Warnke (eric <email protected>)
Date: 01/22/99

> > What I was wondering is, are there
> > any browsers that will not transmit the $REMOTE_ADDR ??
>
> I don't think many do, I think remote_addr is deduced from the server by the
> souce address of the http connection.

Remember that if you are within a function you either need

function foo()
  global $REMOTE_ADDR;
  ...
}

or use $GLOBALS['REMOTE_ADDR']

Cheers,
Eric

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>