Test the server.

From: Date: Sat, 22 Mar 2003 07:21:23 +0000
Subject: Test the server.
Groups: php.general 
Request: Send a blank email to php-general+get-140663@lists.php.net to get a copy of this message
Hello, Is there anyway to check these two things: - If the server is an Unix server. - If a command is available on the server. For exemple, I need to test if the shell command unzip is avalaible to do: exec("unzip ...something...") ; So I can test if exec is available doing: if(function_exists(exec)) { ... } But how to test if a shell command is available on the server and if the server is an Unix-like server ? Thanks.

« previous php.general (#140663) next »