Re: beginner with go-pear on shared host
| From: | Justin Patrin | Date: | Thu, 08 Jul 2004 02:40:58 +0000 |
| Subject: | Re: beginner with go-pear on shared host | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13542@lists.php.net to get a copy of this message | ||
On Thu, 08 Jul 2004 04:07:18 +0200, Steven <steven@sifre.demon.nl> wrote:
[snip]
> How about the path to the php binary? Do I need it if I have no CLI?
> I tried to find the binary path by uploading a script with echo 'which
> php' this just returned 'which php'. I also tried echo PHP_BIN, this
> just returned 'PHP_BIN'. Do I really need the path to the binary and if
> so how do I find it? The include path contains
> /usr/local/php4/include/php so If I would have to guess the binary could
> be /usr/local/php4/bin/php ... But I guess guessing isn't good enough..
>
Not sure about the rest, but you need backquotes to run system
commands. That's the thing under the tilde on the top-left of your
keyboard.
echo
which php;
You could also do:
echo system('which php');
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--