Executing PHP code in .cgi Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smidge
    New Member
    • Aug 2000
    • 24

    Executing PHP code in .cgi Files

    Hello,

    I have a CGI-Script running and want to execute a piece of PHP-Code in it. Do i have to tell the Server to parse .cgi-extended Files for PHP Code or is there another Solution?
  • Anscoop
    Member
    • Jul 2000
    • 38

    #2
    not possible

    you can't parse php code from within cgi files.

    Comment

    • NetFXMedia
      Member
      • Jun 2000
      • 46

      #3
      can you do just the opposite?
      like have a ssi call in a php page

      Comment

      • Anscoop
        Member
        • Jul 2000
        • 38

        #4
        never tried it, but why would you want do to that?
        when you can, use
        include()
        or require()

        Comment

        • NetFXMedia
          Member
          • Jun 2000
          • 46

          #5
          look at my post in vbulletin questions
          "formatting/layout question"
          I wanna stick a side and top bar in that I use on the rest of my site and there are some ssi calls in there. I want to put that side/top bar around the msg board..

          Comment

          • Smidge
            New Member
            • Aug 2000
            • 24

            #6
            why?

            Can't you tell the Server to parse .cgi files for php code? You can tell it in a .htaccess to parse .html and .htm files for SSI, why can't you tell it to parse .cgis for php?

            Comment

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

              #7
              Because then it won't parse it for CGI code

              Comment

              • Smidge
                New Member
                • Aug 2000
                • 24

                #8
                who cares about cgi anyway...

                i'll do it all in php

                Comment

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