RE: [PHP] How to detect the host (window or Linux)?

2008-09-24 Thread Richard Lynch
> 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. It's really none of your business what OS I'm running :-v You may be able to make an educated guess from the HTTP headers in $_SERVER

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

2008-09-24 Thread Ashley Sheridan
On Wed, 2008-09-24 at 19:01 +1000, hce wrote: > On Mon, Sep 22, 2008 at 4:04 PM, Thodoris <[EMAIL PROTECTED]> 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 >

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

2008-09-24 Thread hce
On Mon, Sep 22, 2008 at 4:04 PM, Thodoris <[EMAIL PROTECTED]> 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

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

2008-09-21 Thread Thodoris
$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: [EMAIL PROTECTED] MSN/GTalk: [EMAIL PROTECTED] Skype: francotecnologia On Sat, Sep 20, 2008 at 7:38 PM, hce <[EMAIL PROTECTED]> wro

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

2008-09-20 Thread Anderson Franco
$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: [EMAIL PROTECTED] MSN/GTalk: [EMAIL PROTECTED] Skype: francotecnologia On Sat, Sep 20, 2008 at 7:38 PM, hce <[EMAIL PROTECTED]> wrote: