RE: [PHP] Unix vs PC test for server

From: Date: Thu, 16 Aug 2001 16:01:09 +0000
Subject: RE: [PHP] Unix vs PC test for server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63053@lists.php.net to get a copy of this message
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -----Original Message----- From: Paul S. [mailto:paul.s@interport.net] Sent: Thursday, August 16, 2001 10:57 AM To: php-general@lists.php.net Subject: [PHP] Unix vs PC test for server 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 "; } ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#63053) next »