Re: [PHP] Test the server.

2003-03-22 Thread Ernest E Vogelsinger
At 21:59 22.03.2003, Vincent M. said: [snip] >Yes I know but my aim is to make a php script which checks automaticly >if the php and the shell functions I need are available. [snip] You can use function_exists() and

Re: [PHP] Test the server.

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 12:59:19 -0800, you wrote: >Yes I know but my aim is to make a php script which checks automaticly >if the php and the shell functions I need are available. If you look at the output of phpinfo() you'll see a whole bunch of variables that are set differently depending on the

Re: [PHP] Test the server.

2003-03-22 Thread Vincent M.
Sebastian wrote: put this in a .php file: 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 Yes I know but my aim is to make a php script which checks automaticly if the php and the shell functions I need are availa

Re: [PHP] Test the server.

2003-03-21 Thread Sebastian
put this in a .php file: 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

[PHP] Test the server.

2003-03-21 Thread Vincent M.
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(