Re: Test the server.
| From: | Sebastian | Date: | Sat, 22 Mar 2003 05:06:02 +0000 |
| Subject: | Re: Test the server. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140665@lists.php.net to get a copy of this message | ||
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." <cult@free.fr>
| 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
|