Announcement

Collapse
No announcement yet.

Executing PHP code in .cgi Files

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

  • Smidge
    replied
    who cares about cgi anyway...

    i'll do it all in php

    Leave a comment:


  • Mike Sullivan
    replied
    Because then it won't parse it for CGI code

    Leave a comment:


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

    Leave a comment:


  • NetFXMedia
    replied
    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..

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


  • Anscoop
    replied
    not possible

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

    Leave a comment:


  • Smidge
    started a topic Executing PHP code in .cgi Files

    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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X