faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

67 of 86 people (78%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

I use a /cgi-bin/ad.pl for displaying rotating banners at the top of my html files. How can I insert the output of this cgi in an "included" file ?

Mar 15th, 2008 21:17
dman, ha mo, Philip Olson, Niketan Pandit, http://www.ttnr.org


Here are a couple ways to do it :
  <?php
    echo @join (@file ('http://lsyg.com'),'') 
  ?>
with you.com of course being your domain.  Also, you can try :
  <?php
    virtual('/cgi-bin/ad.pl');
  ?>
  http://www.php.net/manual/function.virtual.php