Can someone tell me how to put this code in a php page please?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adult Site Traffic
    Confirmed User
    • Mar 2003
    • 5093

    #1

    Can someone tell me how to put this code in a php page please?

    !--#exec cgi="/cgi-bin/iplog.cgi" -->

    Thank you.

    ALL Domains and Websites are GOING AWAY NOW! Ask me!
    Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

    .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
  • JSA Matt
    So Fucking Banned
    • Aug 2003
    • 5464

    #2
    Why are you using SSI with PHP?

    Comment

    • - Jesus Christ -
      Confirmed User
      • Mar 2003
      • 7197

      #3
      I dont think you can unless you set Apache to recognise the .php extention as a file type to use includes

      Try this in your .htaccess
      (I havent ever done this so it might be wrong)

      AddOutputFilter INCLUDES .php

      Amen

      Comment

      • Adult Site Traffic
        Confirmed User
        • Mar 2003
        • 5093

        #4
        I just want to know how to put it in a php page. Then it won't be ssi, right?

        Hey, everyone knows I'm no coder. I get by. I just want it to work on a php page.

        So..

        <.?
        *
        ?>

        ??

        ALL Domains and Websites are GOING AWAY NOW! Ask me!
        Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

        .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

        Comment

        • Adult Site Traffic
          Confirmed User
          • Mar 2003
          • 5093

          #5
          Originally posted by - Jesus Christ -
          I dont think you can unless you set Apache to recognise the .php extention as a file type to use includes

          Try this in your .htaccess
          (I havent ever done this so it might be wrong)

          AddOutputFilter INCLUDES .php
          Hey. Can I just i.frame an html page and put it on there?

          ALL Domains and Websites are GOING AWAY NOW! Ask me!
          Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

          .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

          Comment

          • - Jesus Christ -
            Confirmed User
            • Mar 2003
            • 7197

            #6
            Originally posted by Adult Site Traffic


            Hey. Can I just i.frame an html page and put it on there?
            Im not quite shure what you mean but yes I guess so....

            It would be an .shtml file though becasue by default those are the only files parsed through SSI.

            Amen

            Comment

            • Adult Site Traffic
              Confirmed User
              • Mar 2003
              • 5093

              #7
              Ok. can do. Thank you.

              All I want it to do is collect IP from http://adult-site-traffic.com/stats/order and run it against the flagging system on my secure order server where my cart pends orders..

              Thank you

              ALL Domains and Websites are GOING AWAY NOW! Ask me!
              Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

              .:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.

              Comment

              • Ic3m4nZ
                Confirmed User
                • Aug 2003
                • 6285

                #8
                50$ for the answer

                Comment

                • hyper
                  Confirmed User
                  • Mar 2002
                  • 5294

                  #9
                  PHP Code:
                  <!--#include virtual "whatever.cgi"--> 
                  

                  Comment

                  • rowan
                    Too lazy to set a custom title
                    • Mar 2002
                    • 17393

                    #10
                    system("/PATH/TO/cgi-bin/iplog.cgi");

                    I'm not sure that would have the desired affect though, since it's PHP executing the program, not Apache (that's why you need a full path). I don't know if the variables your CGI needs will be passed through.

                    If that doesn't work, then why not img src it? Much cleaner than an if<b></b>rame if you can get iplog.cgi to return a 1x1 transparent gif.

                    Comment

                    Working...