[Asterisk-Users] AGI/PHP errors

Michiel van Baak michiel at vanbaak.info
Mon Jun 20 06:24:06 MST 2005


On 06:11, Mon 20 Jun 05, Jeromy Grimmett wrote:
> hi all,
>  
> im trying to get a php file to run thru AGI...but when i run it through
> *....this is what i get....
>  
> i have the latest php installed ver. 5...had ver 4.3.11...but had this
> problem so i figured an upgrade to the highest would resolve it...
>  
> im running CVS Head and so far its worked great...we are attempting to use
> ver 2 of the agiphp.php...which is why we upgraded to ver 4.3.11 in the
> first place...
>  
> i replaced the files in agi-bin with the latest versions, modified the
> agiphp.conf, reloaded * and i THINK thats all i have to do...
>  
> very new to all this...but...i think i have it right...:-S....
>  
> any help is appreciated....
>  
> -------------First few lines of my PHP------------------
>  
> #!/usr/bin/php -q
> <?php
>  
> 
> require "phpagi.php";
> $agi = new AGI();
>  
Hi,

Get rid of the -q on the first line. That param should only
be used when running the cgi version. And it looks like you
are running the CLI version of php, and that one doesn't
have a -q.

Have fun

Michiel van Baak


> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list