By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

[IIS] interprete cgi output as php

P: n/a
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.
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ruben van Engelenburg <NOSPAM@NOSPAM!.nl> wrote in message
news:<41***********************@news.xs4all.nl>...

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?


Sure:

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

Cheers,
NC
Jul 17 '05 #2

P: n/a
Nikolai Chuvakhin <nc@iname.com> wrote:
Sure:

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


How about:

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

HTH,
Simon
--
Simon Stienen <http://dangerouscat.net> <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
Jul 17 '05 #3

P: n/a
Simon Stienen wrote:
Nikolai Chuvakhin <nc@iname.com> wrote:
Sure:

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

How about:

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

HTH,
Simon


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

Kind regards,
Ruben.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.