iis 6 - How do I assign limited console program access to IIS 6? -


let's have simple console program fetch list of files given folder name. want call console program using php code on site running on unique windows user account (ie not default web user account). there way can allow windows account access console program without giving blanket access cmd.exe? i'm working iis 6 on windows 2003 server.

update:

here's code i've tried using popen()

$reg_cmd = '"c:\windows\system32\notepad.exe"' ; $error = ''; $handle = popen($reg_cmd, 'r');  if (!$handle){     $last_error = error_get_last();     $error = $last_error['message']; } else{     while (!feof($handle)) {         $result .= fread($handle, 2096);     } } pclose($handle); 

$error ends containing either:

popen("c:\windows\system32\notepad.exe",r) [function.popen]: result large

or

popen("c:\windows\system32\notepad.exe",r) [function.popen]: no such file or directory

i've no idea why error message inconsistent. results less promising using proc_open().

can use proc_open() instead of exec()?

from version 5.2.1 proc_open() no longer requires give access cmd.exe.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -