Re: location of the PHP executable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Børge Holen wrote:
On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote:
Don't you have to run locate -u first to generate the database before using
locate?  You can't just assume a database exists already can you?

not an updated one at least, updatedb can also be used to update.

Probably can't because the database has to be created as root.. unless you get into using the switches which seems like a lot more hassle than it's worth but *shrug*.

If this is for a cron command, try

env php

which should pick whichever is in the $PATH for the cron environment.

Not 100% guaranteed but 90% should work.

--
Postgresql & php tutorials
http://www.designmagick.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux