PHP包装器CGI
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP包装器CGI相关的知识,希望对你有一定的参考价值。
This a simple wrapper for cgi, write in php, use stdin for post, and query_string env, for get=)
< ? // system('/Applications/Darwine/Wine.bundle/Contents/bin/wine cgi-proxy.exe'); function decode($to,$encode = false) { $arrayobject = new ArrayObject($to); $iterator = $arrayobject->getIterator(); while($iterator->valid()){ if ($encode) else } return $keywords; } 2 => array("file", "/Users/gards/KitWvbv200/componentes_vbv/error-output.txt", "a") // stderr is a file to write to ); $get = decode($_GET); $post = decode($_POST); $cwd = '/Users/gards/KitWvbv200/componentes_vbv'; // $process = proc_open('/Applications/Darwine/Wine.bundle/Contents/bin/wine cgi-proxy.exe', $descriptorspec, $pipes, $cwd, $env); // $pipes now looks like this: // 0 => writeable handle connected to child stdin // 1 => readable handle connected to child stdout // Any error output will be appended to /tmp/error-output.txt // fwrite($pipes[0], $post); // It is important that you close any pipes before calling // proc_close in order to avoid a deadlock //echo "command returned $return_value "; } ?>
以上是关于PHP包装器CGI的主要内容,如果未能解决你的问题,请参考以下文章
FragmentContainer 与仅作为包装器的另一个 React 组件?