[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 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