[asterisk-users] PHP, AGI, shebang, ? (was: Re: asterisk-users Digest, Vol 59, Issue 62)

Philipp Kempgen philipp.kempgen at amooma.de
Fri Jun 26 17:15:15 CDT 2009


Norm Heinen schrieb:
> On Thu, Jun 25, 2009 at 11:08 AM, Leah Newmark<lnewmark at capalon.com> wrote:
>> Take a look at this:
>> /var/lib/asterisk/agi-bin/olehphone# head incoming.php displays:
>> #!/usr/bin/php
>> <?
>>
>> Running it shows this:
>> /var/lib/asterisk/agi-bin/olehphone# ./incoming.php
>> #!/usr/bin/php5 -q

That's not even the shebang line from the file. Really strange.

>> asterisk-users-request at lists.digium.com wrote:
>>> From: "Danny Nicholas" <danny at debsinc.com>

>>> Looking at my ?man php5? ?q is not a valid option.  That may be just on
>>> Suse.

-q is needed if you use php-cgi as the -cli version in order to
suppress CGI headers. But even php-cli silently accepts -q even
if it's not documented in the man page.


    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list