How can I get the full path to php interpreter from a php script (no command line access).
What I need to do is:
$foo = \"/usr/bin/php\"; echo $foo;
On Windows I would suggest the following snippet:
On unix the shell command should probably make use of ps
ps