hi,

pls - there is something wrong with popen, passthru and similar commands. when i use it under win (nt server), the command is executed - but it does not return any output. and as for popen it is quite silly :-)

so, something like $fp=popen("myprg.exe") will run myprg, but no output will be returned...

i used pipes in my c/c++ programs on windows without any problems, so why does not function this? is that problem with IIS settings? or php?

thanks, robert

    If you're not getting an NT error back (like 5, access denied - check the NT security log to see if anything shows up), then it may just be a bug.

    Workaround: redirect stdout using exec to a randomly named tempfile (to prevent multithread issues). Then just read the tempfile and remove it when done. The only code you'll need to change is the exec, open and remove if/when you get popen working correctly

    RW

    ===========================================
    http://badblue.com
    Small footprint P2P web server for Windows,

    File-sharing, PHP, wireless apps & more

      Write a Reply...