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
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
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
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
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
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
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
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
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
12 matches
Mail list logo