On Tue, 2003-09-02 at 10:00, [EMAIL PROTECTED] wrote: > php is not just a web scripting language anymore. it has been used in > other ways for quite a while now. it works nicely from the command line, > can be used with ncurses and with gtk. there are several well-known > respectable large projects out there built upon php. i usually find that > php's biggest critics are those who know the least about the language. > however that holds true with pretty much any technology. linux suffers > from the same type of critics.
Just to point out, I am a php developer. I actually am employed to create and maintain a large webapp in php. I like the fact that I can take my php or perl scripts and not have to change much to them to work in the other language. Well if they are simple enough. There is enough well known documented problems with php. Just saying that because it is used in large projects doesn't change whether it is suited to the task. There are enough people on this planet, that statistically you will find enough people who refuse to admit the are using a square peg for the round hole. They eventually find a big enough hammer to make it "work". Once you have learned php, you only need learn a few more characters and you are ready to do simple perl programming. Then with time you are able to do very sophisticated things in perl. Hopefully it helps your php, otherwise it will annoy you when you go back and find the limitations of the php language. Eventually php will chase perl enough to get where perl is now. It will be a while as perl 6 still isn't due out for quite a while. > > On Sun, 2003-08-31 at 16:07, Josh Edwards wrote: > >> Are there any examples for ther psql or agi scripts....can I use php > >> with > >> agi.... > > > > Why do people try to shoe horn the wrong tools into this arena? You are > > better off using perl than php. Yes you can use php, but it is not meant > > to be used in a non web based applications. PHP is optimized for quick > > short run applications. Use perl, ruby, python, shell, or any other > > language that is intended to run systems and long run applications. > > > > Next point, there are already agi examples that have been included in > > the asterisk distribution. I have submitted psql extension logic here > > before. There is even documentation for it in the source code itself. > > Examples abound if you just look a little. They won't be exactly what > > you are asking for, but they will point you to how to do it yourself. > > > >> >From: Steven Critchfield > >> >Reply-To: [EMAIL PROTECTED] > >> >To: [EMAIL PROTECTED] > >> >Subject: Re: [Asterisk-Users] Newbie IVR question > >> >Date: 31 Aug 2003 15:54:53 -0500 > >> > > >> >On Sun, 2003-08-31 at 15:39, Josh Edwards wrote: > >> > > let me first say this is an amazing product. > >> > > > >> > > > >> > > ok here is my question > >> > > > >> > > what I want to do is be able to have people call me and answar > >> > > questions. The answars to there questions would need to be stored > >> in a > >> > > mysql database. > >> > > > >> > > so > >> > > > >> > > call comes in > >> > > > >> > > asterisks plays question > >> > > > >> > > asterisk waits for answar > >> > > > >> > > caller presses > >> > > 3 > >> > > > >> > > into a sql table goes (callerid,questionnum,3) > >> > > > >> > > on to next question. > >> > > > >> > > > >> > > Can this be done in asterisks, if so, can anyone point me in the > >> > > correct direction? howto's code examples etc > >> > > >> > > >> >If you are stuck on mysql, then you will need to do this in agi. If > >> you > >> >could do it in postgres, then there is the PSQL commands. > >> >-- > >> >Steven Critchfield > >> > > >> >_______________________________________________ > >> >Asterisk-Users mailing list > >> >[EMAIL PROTECTED] > >> >http://lists.digium.com/mailman/listinfo/asterisk-users > >> > >> ______________________________________________________________________ > >> Get MSN 8and enjoy automatic e-mail virus protection. > >> _______________________________________________ Asterisk-Users mailing > >> list [EMAIL PROTECTED] > >> http://lists.digium.com/mailman/listinfo/asterisk-users > > -- > > Steven Critchfield <[EMAIL PROTECTED]> > > > > _______________________________________________ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users -- Steven Critchfield <[EMAIL PROTECTED]> _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
