Re: [PHP] whic OS is under?

2002-02-05 Thread Lars Torben Wilson

On Mon, 2002-02-04 at 05:45, Ivo Stoykov wrote:
 Hi group:
 
 Is there a way to guess which OS the script is running? I couldn't find
 anything in the manual about this.
 
 Thank you
 
 Ivo

The constant PHP_OS will tell you. For a list of all currently 
defined constants, try http://www.php.net/get_defined_constants.


Hope this helps,

Torben

-- 
 Torben Wilson [EMAIL PROTECTED]
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] whic OS is under?

2002-02-04 Thread Jerry Verhoef (UGBI)

http://www.php.net/manual/en/function.php-uname.php

Take a look at the example there

 -Original Message-
 From: Ivo Stoykov [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 04, 2002 2:45 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] whic OS is under?
 
 
 Hi group:
 
 Is there a way to guess which OS the script is running? I 
 couldn't find
 anything in the manual about this.
 
 Thank you
 
 Ivo
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


The information contained in this email is confidential and
may be legally privileged. It is intended solely for the 
addressee. Access to this email by anyone else is 
unauthorized. If you are not the intended recipient, any 
form of disclosure, production, distribution or any action 
taken or refrained from in reliance on it, is prohibited and 
may be unlawful. Please notify the sender immediately.

The content of the email is not legally binding unless 
confirmed by letter bearing two authorized signatures.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php