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)

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

Reply via email to