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
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
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
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
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/
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
$_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
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
8 matches
Mail list logo