put this in a .php file: <?php phpinfo(); ?> it'll tell you what OS, (usually) check if safe mode is on.. if it's on then usually you can't "exec" anything.
cheers, - Sebastian ----- Original Message ----- From: "Vincent M." <[EMAIL PROTECTED]> | 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 | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php