Re: Question regarding OS

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

 



At 11:46 AM +1000 6/27/06, Ligaya Turmelle wrote:
>Mayank Maheshwary wrote:
>>Hi,
>>
>>Is there a function that can detect the OS on which the script is running?
>>
>>Thank you.
>>
>>M.
>>
>The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug*
>The OS of the client is not available - server side - remember.


???

If you mean, the server where your php script is running, then $_SERVER['SERVER_SOFTWARE'].

If you mean, what the OS and browser of the client who is viewing the product of your script, then try $_SERVER('HTTP_USER_AGENT').

If I remember correctly, these are not "guaranteed" across all servers -- but are typical.

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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