other usefull tip is set error_log = /some/path/to/file, error_reporting = E_ALL and display_errors = Off in php.ini file, that way warnings will not interfer with the communication with Asterisk, and you can check the log file to solve them/
best regards On 6/20/05, Jay Milk <[EMAIL PROTECTED]> wrote: > Looks familiar. Since AGI files are hash-banged, try to run it from > shell. If it still fails, check the file for windows-style LF/CR and > correct the file-format. > > -----Original Message----- > From: Jeromy Grimmett [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 6:11 AM > To: 'Asterisk Users Mailing List - Non-Commercial Discussion' > Subject: [Asterisk-Users] AGI/PHP errors > > > 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(); > > --------------CLI AGI Debug Output------------------- > > AGI Rx << Usage: php [options] [-f] <file> [args...] > AGI Tx >> 510 Invalid or unknown command > AGI Rx << php [options] -r <code> [args...] > AGI Tx >> 510 Invalid or unknown command > AGI Rx << php [options] [-- args...] > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -a Run interactively > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -c <path>|<file> Look for php.ini file in this directory > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -n No php.ini file will be used > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -d foo[=bar] Define INI entry foo with value 'bar' > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -e Generate extended information for > debugger/profiler > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -f <file> Parse <file>. > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -h This help > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -i PHP information > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -l Syntax check only (lint) > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -m Show compiled in modules > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -r <code> Run PHP <code> without using script tags > <?..?> > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -s Display colour syntax highlighted source. > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -v Version number > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -w Display source with stripped comments and > whitespace. > AGI Tx >> 510 Invalid or unknown command > AGI Rx << -z <file> Load Zend extension <file>. > AGI Tx >> 510 Invalid or unknown command > AGI Rx << > AGI Tx >> 510 Invalid or unknown command > AGI Rx << args... Arguments passed to script. Use -- args > when first argument > AGI Tx >> 510 Invalid or unknown command > AGI Rx << starts with - or script is read from stdin > AGI Tx >> 510 Invalid or unknown command > > > Global reach, local touch... > > Jeromy Grimmett > CEO Comuniquémonos, Inc. / SA > 1212 South Hampton Drive > Alexandria, LA 71301 > [EMAIL PROTECTED] > IM: MSN: [EMAIL PROTECTED] > http://www.comuniquemonos.com tel: > fax: > mobile: +593 (4) 287 3854 > (501) 646-0680 > +593 (9) 366 6521 > > > > > Add me to your address book...Want a signature like this? > > _______________________________________________ > Asterisk-Users mailing list > [email protected] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org" _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
