PHP5 guide

Adam Sommer asommer70 at gmail.com
Tue Sep 4 21:09:00 UTC 2007


Cool thanks Phil.  Would it be appropriate to add more content to the PHP
section about php5-cgi version php5-cli?  I guess my thought is something
about using php5-cgi and an example using PHP from the command line.

On 9/4/07, Phil Bull <philbull at gmail.com> wrote:
>
> 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
>
>


-- 
Party On,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20070904/e90b226e/attachment.html>


More information about the ubuntu-doc mailing list