|
Posted by Daniel Klein on 12/23/07 14:26
On Sun, 23 Dec 2007 13:55:28 +0100, "Janwillem Borleffs"
<jw@jwscripts.com> wrote:
>Daniel Klein wrote:
>> All I get in a web browser is:
>>
>> popen test...
>>
>> What am I missing?
>>
>
>It's possible that the program only executes from a shell. In this case you
>should start popen with a command shell (cmd, r+w) and call your program
>from there.
Thanks for the suggestion. I changed the code to:
$fp = popen('C:\\windows\\system32\\cmd.exe /c
C:\\home\\bin\\hw.exe', 'r+w');
but this made no difference; iow it works from a command prompt but
not in a web browser (I tried it with IE, Firefox and Opera).
I might add that I made sure that permissions on the executable were
wide open eg: full Full Control to 'Everyone'.
Does anyone out there have popen (or proc_open) working on
Windows/IIS?
If I cannot get this working then my next step will be to try it with
Apache; trouble is that I have not ever used it so it will certainly
be a learning experience for me. However, I would really like to get
it working with IIS, if at all possible.
Daniel Klein
Navigation:
[Reply to this message]
|