[IIS] interprete cgi output as php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ruben van Engelenburg

    [IIS] interprete cgi output as php

    Hi all,

    I'm running PHP 4.3.9 on IIS6/Win2003.
    What I'm trying to accomplish is that IIS interpretes the output of a
    CGI program (.exe) as PHP. Right now it just outputs the php code. Is
    this even possible at all? Thanks for any hints.

    Kind regards,
    Ruben.
  • Nikolai Chuvakhin

    #2
    Re: [IIS] interprete cgi output as php

    Ruben van Engelenburg <NOSPAM@NOSPAM! .nl> wrote in message
    news:<416f87d8$ 0$48933$e4fe514 c@news.xs4all.n l>...[color=blue]
    >
    > I'm running PHP 4.3.9 on IIS6/Win2003.
    > What I'm trying to accomplish is that IIS interpretes the output of a
    > CGI program (.exe) as PHP. Right now it just outputs the php code. Is
    > this even possible at all?[/color]

    Sure:

    eval(file_get_c ontents('http://localhost/cgi-bin/program.exe'));

    Cheers,
    NC

    Comment

    • Simon Stienen

      #3
      Re: [IIS] interprete cgi output as php

      Nikolai Chuvakhin <nc@iname.com > wrote:[color=blue]
      > Sure:
      >
      > eval(file_get_c ontents('http://localhost/cgi-bin/program.exe'));[/color]

      How about:

      include('http://localhost/cgi-bin/program.exe');

      HTH,
      Simon
      --
      Simon Stienen <http://dangerouscat.ne t> <http://slashlife.de>
      »What you do in this world is a matter of no consequence,
      The question is, what can you make people believe that you have done.«
      -- Sherlock Holmes in "A Study in Scarlet" by Sir Arthur Conan Doyle

      Comment

      • Ruben van Engelenburg

        #4
        Re: [IIS] interprete cgi output as php

        Simon Stienen wrote:[color=blue]
        > Nikolai Chuvakhin <nc@iname.com > wrote:
        >[color=green]
        >>Sure:
        >>
        >>eval(file_get _contents('http ://localhost/cgi-bin/program.exe'));[/color]
        >
        >
        > How about:
        >
        > include('http://localhost/cgi-bin/program.exe');
        >
        > HTH,
        > Simon[/color]

        Nikolai and Simon, thanks for the replies. This is what I was looking for.

        Kind regards,
        Ruben.

        Comment

        Working...