how to access remote cgi from PHP script?
I'm totally rookie as to PHP. I want to write a PHP script in which it can access a remote cgi via http to get some data. I know that PHP is able to fopen any remote URL and fetch file content, but I concern about the result retur开发者_Go百科ned by cgi script, not the script itself.
Opening and retrieving a URL is the output of the script, it is what your web browser does when you open a PHP page. Retrieving the script itself is normally not possible - it would be a security vulnerability if everyone could read your source code.
精彩评论