Announcement

Collapse
No announcement yet.

cgi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • erikn
    replied
    When I put this

    ob_start();
    virtual('/cgi-bin/ad.pl');
    $ad= ob_get_contents();
    ob_end_clean();

    or this

    $ad = virtual("/cgi-bin/ad.pl");

    In the phpinclude template, it puts the banner at the top of the page, even if I don't put $ad anywhere. And when I put $ad somewhere on the page, the banner just stays at the top...

    Leave a comment:


  • Mike Sullivan
    replied
    C'mon people -- virtual() outputs directly.

    ob_start();
    virtual('/cgi-bin/ad.pl');
    $ad= ob_get_contents();
    ob_end_clean();

    Leave a comment:


  • tubedogg
    replied
    Try

    $ad = 'virtual('/cgi-bin/ad.pl')';

    Leave a comment:


  • erikn
    replied
    Now it says virtual('/cgi-bin/ad.pl') where the banner should be

    Leave a comment:


  • tubedogg
    replied
    Whoops. That would be my bad - I didn't even notice that. Sorry.

    Leave a comment:


  • etones
    replied
    Change $ad = "virtual('/cgi-bin/ad.pl')": To $ad = "virtual('/cgi-bin/ad.pl')";

    It needs a semilcolon at the end, not a colon.

    Leave a comment:


  • erikn
    replied
    Now I get this error...
    Parse error: parse error in /home/edgewww/hammer-time.net/www/htdocs/global.php(235) : eval()'d code on line 6

    And this is what my phpinclude template looks like:
    // This code is PHP4 ony:
    // ob_start();
    // require("yourheader.html");
    // $header = ob_get_contents();
    // ob_end_clean();
    $ad = "virtual('/cgi-bin/ad.pl')":

    Leave a comment:


  • tubedogg
    replied
    Maybe try

    $ad = "virtual('/cgi-bin/ad.pl')":

    Leave a comment:


  • erikn
    replied
    Darn, it works for the most part, but when I put $ad = virtual("/cgi-bin/ad.pl"); in the phpinclude template, then put $ad where i want the banner to show up, it puts a "1" where I want the banner to be, and puts the banner at the top of the page...

    Leave a comment:


  • tubedogg
    replied
    np

    Leave a comment:


  • erikn
    replied
    It worked! Thanks so much

    Leave a comment:


  • tubedogg
    replied
    Try putting this in your phpinclude template:

    $ad = virtual("/cgi-bin/ad.pl");

    Then put $ad where you want/need it.

    Leave a comment:


  • erikn
    started a topic cgi

    cgi

    I searched the forums before I posted this...
    How do I put cgi stuff in my header? I tried this:
    <!--#exec cgi="/cgi-bin/ad.pl"-->
    But it did not work...any ideas?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X