RE: [PHP] Determining platform PHP is running on?

From: Date: Mon, 30 Sep 2002 18:51:12 +0000
Subject: RE: [PHP] Determining platform PHP is running on?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118251@lists.php.net to get a copy of this message
I'm looking for something that returns just the OS type, not tons of information. :) I think the constant PHP_OS is what I'm looking for. I just found it. Thanks for the suggestion though, Matt > -----Original Message----- > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] > Sent: Monday, September 30, 2002 2:51 PM > To: 'Matt Giddings'; php-general@lists.php.net > Subject: RE: [PHP] Determining platform PHP is running on? > > [snip] > Is there a way to determine what platform PHP is running on? I'm trying > to write a script that parses path names which we all know unix and > windose don't agree with each other. > [/snip] > > Put <?php php_info(); ?> in a page and then load in the browser from your > server. It's revealing ... > > HTH! > > Jay > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002

« previous php.general (#118251) next »