Forum Moderators: coopster

Message Too Old, No Replies

How do you determine the path to php on a server?

         

Trisha

12:12 am on Jan 31, 2007 (gmt 0)

10+ Year Member



I need to find the path to php5 at my host.

At least I think I do. When using a command line to run a php script I get a message like:

If you are sure you already have php5 installed, it may be installed in a different path from php4.

I figure I need to try something like:

path/to/php5 update.php

Based on information I can get from 'phpinfo();' - where would I find the path to use in a command like above?

IanKelley

2:23 am on Jan 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try this command in shell:

which php

Trisha

7:45 pm on Jan 31, 2007 (gmt 0)

10+ Year Member



thanks, I got it sorted out!