Re: [PHP] Hostname Filtering

2006-03-15 Thread Dan
The hostname lookup does not impact performance at all. I am only doing a look-up on the remote ip of the user not on my full blacklist. I am using this on a site to log hits to a banner ad and on listings on a ebay style marketplace. I log the IP and the hostname on a look- up. Dan T O

Re: [PHP] Hostname Filtering

2006-03-14 Thread Philip Hallstrom
I have a few PHP scripts where I log hit to a page i.e. IP and hostname via a look up. What I want to do is create essentially a blacklist to prevent bots and other hosts and IP from being logged and skewing my stats. My local IP/host and the MSN and Googlebot hits should not be in my stats o

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Richard Lynch
On Tue, February 21, 2006 1:37 am, Ruben Rubio Rey wrote: > How to set "Hostname" environment variable? (It contains the servers > name, not the servers domain) > Its a Linux server. The environment variables come *FROM* the environment into PHP. If you want them changed, you have to change your

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Kim Christensen
On 2/21/06, Ruben Rubio Rey <[EMAIL PROTECTED]> wrote: > Strange. Its already set (in hostname and "echo $HOSTNAME"). I have > realized that is working on version (in my servers) 5.0.5 and its not > working in 5.0.4 version. Is it an old bug? Im updating, we ll see Have you rebooted your mach

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Ruben Rubio Rey
Kim Christensen wrote: On 2/21/06, Ruben Rubio Rey <[EMAIL PROTECTED]> wrote: How to set "Hostname" environment variable? (It contains the servers name, not the servers domain) Its a Linux server. Try the "hostname" command. Depending on your linux distro, you might want to edit /etc/

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Kim Christensen
On 2/21/06, Ruben Rubio Rey <[EMAIL PROTECTED]> wrote: > How to set "Hostname" environment variable? (It contains the servers > name, not the servers domain) > Its a Linux server. Try the "hostname" command. Depending on your linux distro, you might want to edit /etc/hostname manually afterwards t

RE: [PHP] Hostname

2004-12-15 Thread Robinson, Matthew
$_SERVER['SERVER_NAME'] 'SERVER_NAME' The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 15

Re: [PHP] Hostname

2004-12-15 Thread Greg Donald
On Wed, 15 Dec 2004 10:28:16 -0600, Chris Boget <[EMAIL PROTECTED]> wrote: > In earlier versions of PHP, you could use the $HOSTNAME > global variable to get the server/machine name that is running > Apache/PHP. However, that variable is no longer working > and I can't seem to find a replacement i