简体   繁体   中英

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 returned 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM