$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 > >