Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Alexander Wagner
Paul S. wrote: I design a website on a PC, and upload it to UNIX. Of course, there are always one or two variables that I have to keep track of as to whetherteh server is UNIX or PC. There MUST be a simple way to test Just do a phpinfo(). There should be an environment-variable you should be

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Renze Munnik
On Thu, Aug 16, 2001 at 09:57:20PM +0700, Paul S. wrote: I design a website on a PC, and upload it to UNIX. Of course, there are always one or two variables that I have to keep track of as to whetherteh server is UNIX or PC. There MUST be a simple way to test if (the OS is Windows) {

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Steve Edberg
Also - see: http://www.php.net/manual/en/function.php-uname.php - it's a PHP4 function. Alternatively, you could check the $SERVER_SOFTWARE (or $HTTP_SERVER_VARS['SERVER_SOFTWARE'], depending on your config) variable; you'd have to parse the OS out of the returned string, though.

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and