Announcement

Collapse
No announcement yet.

Executing PHP code in .cgi Files

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

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

  • #2
    not possible

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

    Comment


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

      Comment


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

        Comment


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


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


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

              Comment


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