CGI in PHP ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zorg
    Senior Member
    • Jan 2001
    • 236

    CGI in PHP ?

    Hi,

    I have a cgi banner program that I have been using for a long time and want add it to my php pages in VB. I have tryed a few ways, but does not seem to work. Have I missed something?

    This is the code I have been using

    <?php echo @join (@file ("http://www.YOURDOMAIN.com/cgi-bin/banner.cgi"), "") ?>

    Dean
  • khalid
    Member
    • May 2001
    • 92

    #2
    To include a cgi script into a php, I use the following:

    PHP Code:
    <?php virtual ("banner.cgi"); ?>
    Try that, it might work.

    Comment

    • Zorg
      Senior Member
      • Jan 2001
      • 236

      #3
      Thanks Khalid, but it didn't work.

      Comment

      • Zef Hemel
        Member
        • Jan 2001
        • 78

        #4
        Maybe
        PHP Code:
        <? passthru("banner.cgi"); ?>
        // or even
        <? include("banner.cgi"); ?>

        Comment

        • Zorg
          Senior Member
          • Jan 2001
          • 236

          #5
          I might have got this wrong, but do you put
          <? passthru("banner.cgi"); ?>
          in cp > styles > default > footer ?

          Or somewhere else?

          Comment

          • Mike Sullivan
            Former vBulletin Developer
            • Apr 2000
            • 13327
            • 3.6.x

            #6
            You wanna stick

            $banner = @join (@file ("http://www.YOURDOMAIN.com/cgi-bin/banner.cgi"), "");

            in your phpinclude template and put $banner where you want the banner to show up.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...