PHP Question re: executing CGI on PHP Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kmanrox
    aka K-Man
    • Oct 2001
    • 29295

    #1

    PHP Question re: executing CGI on PHP Page

    I have a page that is a .php page, but it needs to exec cgi, and without the .shtml extension it is ignoring the CGI call, is there a simple way around this? thx in advance



    ------------------
    K-MaN
    icq 1337988

    NicheBucks 50/50
    RawPussy TGP
    Secret Galleries TGP
    Trade Traffic For All Sites at BuiltonPorn
    Crypto HODLr
    Crypto mining
    Angel investor
  • awechen
    Confirmed User
    • Oct 2001
    • 162

    #2
    in php u can use exec("command"); http://www.php.net/exec




    ------------------
    "Shock your systemadministration! Read manual-pages!"
    ah you have been blessed with 72 virgins?

    Comment

    • kmanrox
      aka K-Man
      • Oct 2001
      • 29295

      #3
      im peepin the site right now, thx... i didnt think GFY had people who gave a shit, but figured i'd post anyways =-) thx

      Crypto HODLr
      Crypto mining
      Angel investor

      Comment

      • FATPad
        Confirmed User
        • Oct 2001
        • 6693

        #4
        virtual("/dir/cgiprogram.cgi");

        There's another way of doing it, but can't remember what it is.

        Check out that php.net site.
        <a href="http://www.adultcontent.co.uk">Adult Content UK - Great British Content</a>

        Comment

        • Ludedude
          Suck it!
          • Jun 2001
          • 4432

          #5
          Kman...here's how I do UCJ on a php page to call the c module:

          <?php
          putenv ( "HTTP_REFERER=".$HTTP_SERVER_VARS["HTTP_REFERER"] ) ;
          putenv ( "REMOTE_ADDR=".$HTTP_SERVER_VARS["REMOTE_ADDR"] ) ;
          PassThru ( "./cgi-bin/ucj/ucjref.cgi" ) ;
          ?>

          Some variation of this should work. You can call whatever you want using the php rather than an SSI call.

          ------------------
          Post your galleries here!
          Make 60% recurring (no fees) with these Babes!

          <A HREF="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=914709&PA=210461" TARGET=_blank>
          The Professional TGP Submitter! </A>

          Comment

          • TheFLY
            So Fucking Banned
            • Jan 2001
            • 11856

            #6
            Originally posted by Ludedude:
            [B]Kman...here's how I do UCJ on a php page to call the c module:

            <?php
            putenv ( "HTTP_REFERER=".$HTTP_SERVER_VARS["HTTP_REFERER"] ) ;
            putenv ( "REMOTE_ADDR=".$HTTP_SERVER_VARS["REMOTE_ADDR"] ) ;
            PassThru ( "./cgi-bin/ucj/ucjref.cgi" ) ;
            ?>
            That's very cool.

            Comment

            • Lane
              Will code for food...
              • Apr 2001
              • 8496

              #7
              http://www.php.net/manual/en/ref.exec.php

              Comment

              Working...