* Jyri Virkki <Jyri.Virkki at Sun.COM> [2007-12-14 02:08]: > Sriram Natarajan wrote: > > > > I agree that we should create a symbolic link so that /usr/bin/php > > points to /usr/php5/<latest version>/bin/php. > > I'm curious if php is commonly invoked manually from the shell command > line? (Since that's the main reason to have something in the default PATH.) > > When invoked programmatically you might not want to call /usr/bin/php > anyway because you can't predict which version it is so the behavior > can change in a Volatile way. Whereas if you call /usr/php5/5.2.4/bin/php > you know its behavior will remain constant. > > That said one benefit for /usr/bin/php which is when someone just > types 'php' into the shell as a discovery mechanism to see if php is > installed. OTOH, that's not the proper way to query what packages are > installed. One should check the installed package database instead. > OYAH, if it makes developers discover all this cool stuff is indeed > here in OpenSolaris, that's a win.. > > Just some thoughts.. I'm ok with having it either way.
If it's not too much trouble, I would probably add it. A Google search for "/usr/bin/php" shows 127 000 entries; a search for "invoke php from cron" shows another 113 000. Although the most common case for PHP apps is to tickle the app by using cron to invoke wget on a particular URL, there are a bunch where direct invocation is also offered--and sometimes explained first. (I've not found one where it's preferred, even though I remember having to do command line invocations to set something up at home once...) - Stephen -- sch at sun.com http://blogs.sun.com/sch/
