Re: How to detect the host (window or Linux)?
| From: | hce | Date: | Wed, 24 Sep 2008 09:01:55 +0000 |
| Subject: | Re: How to detect the host (window or Linux)? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280822@lists.php.net to get a copy of this message | ||
On Mon, Sep 22, 2008 at 4:04 PM, Thodoris <tgol@kinetix.gr> wrote:
>
>> $win = stripos(PHP_OS, 'win') !== false ? true : false;
> Perhaps you could also use this as an alternative:
>
> http://gr.php.net/manual/en/function.php-uname.php
Thanks Thodoris and Anderson. Sorry for not clear about the question.
I mean to detect the OS in Host system where the browser is located,
not the SERVER OS.