Re: Three quickies anyone?

From: Date: Mon, 27 Mar 2006 14:21:36 +0000
Subject: Re: Three quickies anyone?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232611@lists.php.net to get a copy of this message
Ryan A wrote:
Have them go to the command line and type 'which php' and it will return the path.
The clients will probably not even understand what "command line" means, I was thinking of doing something like this: ask the client to enter the path to php on his server, if he does not know the path then to download the script get_php_path.php from my site that would contain <?php echo "The path to php on your server is: ".$_SERVER["include_path"]; ?> then they would then enter that value....but is $_SERVER["include_path"]; the correct thing to use?
Why don't you use the inbuild shell function of php to get the info from PHP itself? http://de3.php.net/manual/de/function.escapeshellcmd.php Since you can echo that also. I just forgot what command it was but probably it helps you anyways :) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

« previous php.general (#232611) next »