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

[PHP] PHP HOSTNAME environment variable poltergeist

2006-03-15 Thread Ruben Rubio Rey
Im having again a problem with hostname environment varible. Hostname is set OK and it is now shown in phpinfo(). But if I run "php -i" hostname is set! Any ideas? Php version: 5.1.2 Configure './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gettext' '--with-pgsql' '--enable-tra

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

[PHP] Hostname Filtering

2006-03-14 Thread Dan
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 st

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

[PHP] HOSTNAME Environment variable

2006-02-20 Thread Ruben Rubio Rey
Hi, How to set "Hostname" environment variable? (It contains the servers name, not the servers domain) Its a Linux server. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Hostname

2004-12-15 Thread Robinson, Matthew
PROTECTED] Sent: 15 December 2004 16:28 To: PHP General Subject: [PHP] Hostname 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 replac

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

[PHP] Hostname

2004-12-15 Thread Chris Boget
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 in any of the super global variables. Is there one? How can you get the server/mac