|
Posted by vincenzo.bacarella on 11/05/05 02:08
Dear friends,
I have a big problem. With an usersonline script I need to extract in
php the output of a cgi using buffering output in this way:
<?php
ob_start();
include('/home/mysite/public_html/cgi-bin/usersonline/online.cgi');
$contents = ob_get_contents();
ob_end_clean();
echo $contents;
?>
In this way the code of the cgi is displayed, not executed. Why? I need
to execute and catch the output in this way...with
include('http://www.mysite.com/cgi-bin/usersonline/online.cgi') works
well but the requestes come with the same ip (my server) and this is
not the results which I want.
Thanks,
Vincenzo, Rome, IT
Navigation:
[Reply to this message]
|