[PHP] Re: Getting local domain name in CLI

2002-08-29 Thread Geranium
In article <[EMAIL PROTECTED]>, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > What about... > > $hostname = `/bin/hostname`; > > or something along those lines... Well that's rather the kind of thing I was wanting to avoid - it's much akin to rummaging in /etc. the hostname command gives me m

[PHP] Re: Getting local domain name in CLI

2002-08-29 Thread Philip Hallstrom
What about... $hostname = `/bin/hostname`; or something along those lines... On Thu, 29 Aug 2002, Geranium wrote: > I need to get the domain name of the local machine. > I'm running a CLI script in PHP 4.3-cvs (on OpenBSD) so I have no HTTP > or other global vars to look at. The posix_uname co