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
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.
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
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) {
>
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
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) {
$siteurl = "http:// www.website.com/ ";
$mysqlpasswordfilelocation
6 matches
Mail list logo