You are here: Include() with cgi problems « All PHP « IT news, forums, messages
Include() with cgi problems

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация