Announcement

Collapse
No announcement yet.

cgi

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

  • 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?

  • #2
    Try putting this in your phpinclude template:

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

    Then put $ad where you want/need it.

    Comment


    • #3
      It worked! Thanks so much

      Comment


      • #4
        np

        Comment


        • #5
          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...

          Comment


          • #6
            Maybe try

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

            Comment


            • #7
              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')":

              Comment


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

                It needs a semilcolon at the end, not a colon.
                http://www.e-tones.co.uk - The best site on the net for mobile phones.

                Comment


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

                  Comment


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

                    Comment


                    • #11
                      Try

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

                      Comment


                      • #12
                        C'mon people -- virtual() outputs directly.

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

                        Comment


                        • #13
                          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...

                          Comment

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