Re: How to detect the host (window or Linux)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$win = stripos(PHP_OS, 'win') !== false ? true : false;

Anderson Franco
Web Developer

Franco Tecnologia Bras. e Com. LTDA
Phone / Fax: +55 (19) 3455 2262
Email: anderson@xxxxxxxxxxxxxxxxxxxx
MSN/GTalk: andersonfranco@xxxxxxxxx
Skype: francotecnologia


On Sat, Sep 20, 2008 at 7:38 PM, hce <webmail.hce@xxxxxxxxx> wrote:

> Hi,
>
> How can I detect the host is window or linux in PHP code?
>
> Thank you.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux