Re: which os?

From: Date: Tue, 22 Apr 2003 19:38:13 +0000
Subject: Re: which os?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144896@lists.php.net to get a copy of this message
Chris Edwards wrote:
Hi My script needs to determine which OS it's executing on. Whether is be FreeBSD, or Solaris, etc.. Any advice on how to go about doing this? How about exec('uname') which, I think, works on most *nixes. If the exec errors out then its windows?
HTH Chris

« previous php.general (#144896) next »