[Asterisk-Users] AGI questions..

Michael T Farnworth mtf at maximasystems.com
Fri Oct 24 12:20:52 MST 2003


On Fri, 24 Oct 2003, Jared Smith wrote:

> On Fri, 2003-10-24 at 09:04, Steven Critchfield wrote:
> > You can use php, but php is just perl lite. if you do anything more than
> > a trivial app, you will want to be in something more than php. Take for
> > instance all the modules you have in CPAN that can deal with audio,
> > databases and any number of odd things you need to have.
> > 
> I don't mean to start a flame war, but it's opinions like this that
> drive me nuts... (And just to be fair Steven, I *almost always* agree
> with your opinions posted to this list.  This one just happens to get on
> my nerves.)  Just because you *obviously* prefer Perl, doesn't mean you
> have to belittle PHP.  WipeOot *obviously* wants to use PHP.  So (in my
> humble opinion) we ought to either help him figure out how to do it in
> PHP, or keep our mouths shut.

One of the great things about PHP is that you can just get one download,
compile and install it and it has everything you will probably want for
web use built in.  No need to mess around downloading lots of CPAN things.  
Okay there might not be as many libraries available, but for web stuff it
keeps life simple.

Personally I write in either Perl or PHP depending on the job.  Programs I
run from the command line are written in Perl and web things in PHP.
However I feel both products have things to recommend them.

In PHP functions and classes are defined in a more conventional way, none
of this pass a stack and pop things off to get your function arguments.

Perl feels like it was more carefully thought out.  Everything is done in 
relatively generic and flexible ways.

Database support is just fine in PHP but audio would admittedly be less 
supported.

Michael




More information about the asterisk-users mailing list