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.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to