PHP5 guide

Phil Bull philbull at gmail.com
Tue Sep 4 20:58:50 UTC 2007


Hi Adam,

On Tue, 2007-09-04 at 07:42 -0400, Adam Sommer wrote:
> That's definitely a valid question, because the file /usr/bin/php5-cgi
> that's installed with the php5-cgi file does allow you to execute PHP
> scripts from the command line (found out after posting).  However the
> php5-cli package installs /usr/bin/php, which is a symlink
> to /etc/alternatives/php, and /etc/alternaitves/php is intern a
> symlink to /usr/bin/php5.  Also, the output of dpkg -l php5-cgi is: 
> 
>    server-side, HTML-embedded scripting language (CGI binary)
> 
> and the dpkg -l php5-cli is:
> 
>    command-line interpreter for the php5 scripting language
> 
> Just my opinion, but I think of executing a PHP script from the
> command line I think of php script_name.php (just my experience
> though).  This may have been discussed on another mailing list or in
> the past as well. 
> 
> I missed a reference to php5-cgi in the original diff file so here's a
> new one.  Either way thanks for considering it.

Thanks, I've applied your patch to SVN trunk (revision 4321) - it does
seem to be the more sensible option in the context of where it's used.

Thanks again,

Phil

-- 
Phil Bull
http://www.launchpad.net/people/philbull





More information about the ubuntu-doc mailing list