[Asterisk-Users] new2agi -php

Brancaleoni Matteo mbrancaleoni at espia.it
Sun Mar 7 03:10:04 MST 2004


Hi 
> The error message is generated by PHP... If your PHP version is higher
> that v4.3.0
>  
> line 5: $stdout = fopen('php://stdout', 'w');
> 
> should be
>  
> $stdout = fopen(STDOUT, 'w');

Wrong... STDOUT is already open within php cli (4.3.0 and above)
so just do
fwrite(STDOUT,"blah");
and you're done.

-- 
Brancaleoni Matteo <mbrancaleoni at espia.it>
Espia - Emmegi Srl




More information about the asterisk-users mailing list