473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

[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.
Jul 17 '05 #1
3 1640
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve B | last post by:
Hi, I've written a CGI program in C++ to handle form output via POST data. The program works fine when Apache is the web server, but barfs when Microsoft IIS is the web server. Here's the...
6
by: frankh | last post by:
Got earlier very valuable feedback from this group, so I am trying again. Given a string with an arithmetic expression containing variables, e.g. "a+b*sin(x)", how can I calculate its value...
3
by: Jerry Boone | last post by:
I have a development unit running XP Pro and I cannot get it to build a web project without restarting IIS. There errors in the task list are.... ! Could not copy temporary files to the output...
5
by: Earl Teigrob | last post by:
My company sells software and wants to provide downloadable product. Some of these downloads will be full CD's of over 550M I had everything working fine using Response.filewrite() but when we...
1
by: Victor Song | last post by:
Hi We are trying to stream a file using server.transfer rather than response.redirect. We have it working for IIS 5.0 but IIS 6.0 refusing to let us transfer the file. If we do the less...
12
by: willamette3597 | last post by:
main(a) { printf(a,34,a="main(a){printf(a,34,a=%c%s%c,34);}",34); } After executing it , it prints itself's code
4
by: PullWood | last post by:
Strange and curious problem I'm experiencing. I implemeted a web site asp solution IIS 5.0. The site performe long calculations. What's happening is the following: if I connect through a ADSL...
0
by: maykil ceksin | last post by:
Hi, Is there anyone knows which user profile is using by IIS while running an DOS application within asp with wshell.run command. To describe my problem clear; I'm using a DOS command and...
6
by: tvaughan77 | last post by:
Hi, I have some code that I want to use to run a command line utility and I want to be able to run it from an aspx page running under IIS. The command line utility is a local utility running on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.