RE: [PHP] Determining platform PHP is running on?
| From: | John W. Holmes | Date: | Tue, 01 Oct 2002 01:47:52 +0000 |
| Subject: | RE: [PHP] Determining platform PHP is running on? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118287@lists.php.net to get a copy of this message | ||
> I'm looking for something that returns just the OS type, not tons of
> information. :) I think the constant PHP_OS is what I'm looking for.
> I just found it.
>
> Thanks for the suggestion though,
The idea was that you look at that "tons of information" and find the
variable you are after. That page lists all of the variables available
to PHP. These may work, too:
$_ENV["MACHTYPE"]
$_ENV["OSTYPE"]
---John Holmes..