<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>your code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>#!/usr/bin/php
-q<BR><?php<BR>ob_implicit_flush(true);<BR>set_time_limit(6);<BR>$stdout =
fopen('php://stdout', 'w');<BR>fwrite($stdout,"STREAM FILE demo-congrats"
);<BR>fflush($stdout);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004>?></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>The error message is
generated by PHP... If your PHP version is higher that
v4.3.0</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>line 5: $stdout =
fopen('php://stdout', 'w');<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>should
be</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>$stdout =
fopen(STDOUT, 'w');<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>I suspect that is
the problem, as everything else looks file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004> </DIV></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dogharris@sbcglobal.net href="mailto:dogharris@sbcglobal.net">Doug
Harris</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:Asterisk-Users@Lists. Digium. Com">Asterisk-Users@Lists. Digium.
Com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, March 06, 2004 11:07
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Asterisk-Users] new2agi
-php</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>Hi
firiends,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>Sorry for a basic
question here.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>I am trying to
write an agi script using php. Nothing fancy just simple script
first.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>I call the php
script from the extensions.conf</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>exten =>
91234/1001,1,Wait,1<BR>exten => 91234/1001,2,AGI,test.agi<BR>exten =>
91234/1001,3,Hangup</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>php script is
;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>#!/usr/bin/php
-q<BR><?php<BR>ob_implicit_flush(true);<BR>set_time_limit(6);<BR>$stdout =
fopen('php://stdout', 'w');<BR>fwrite($stdout,"STREAM FILE demo-congrats"
);<BR>fflush($stdout);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004>?></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>* telles me "Error
in Argument 1, char 3, option not found. ". </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>script can be run
from command line.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=274005717-06032004>Appreciate some
help to get going here.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=274005717-06032004>Dough</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>