Reply to Re: popen on Windows

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация