How to access remote cgi from PHP script?

I am completely new to PHP. I want to write a PHP script where he can access a remote cgi via http to get some data. I know PHP is capable of opening any remote url and fetching the contents of a file, but I am concerned with the result returned by the cgi script, not the script itself.

+2


a source to share


1 answer


Opening and getting a url is the script output, this is what your web browser does when you open a PHP page. Getting the script itself is usually not possible - it would be a security vulnerability if everyone can read your source code.



0


a source







All Articles