开发者

how to access remote cgi from PHP script?

开发者 https://www.devze.com 2022-12-29 14:03 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消