Unix vs PC test for server
| From: | Paul S. | Date: | Thu, 16 Aug 2001 14:57:20 +0000 |
| Subject: | Unix vs PC test for server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63028@lists.php.net to get a copy of this message | ||
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 = " ... outsideroot.txt ";
}else{
$siteurl = "http://127.0.0.1/";
$mysqlpasswordfilelocation = " ...outsideroot.txt ";
}
???