教PHP to ASP.Net,求教phptoasp.net
新手求教:
如下的PHP代码,在ASP.Net中怎么实现?
谢谢了。
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "tmp\error-output.txt", "a")
);
$process = proc_open("ch4-eos.exe", $descriptorspec, $pipes);
if (is_resource($process)) {
$lines = array (
$value1,
$value2,
);
foreach ( $lines as $line ) {
fwrite($pipes[0],$line."\n");
}
fclose($pipes[0]);
$j=0;
while (!feof($pipes[1])) {
$sdout[$j]= fgets($pipes[1]);
$j++;
}
fclose($pipes[1]);
$return_value = proc_close($process);
那位有相关的书籍能不能推荐一下。
用户评论