Entry
Is it possible to include 'http://a.php.file'; from a remote server to execute a remote function?
May 21st, 2004 12:52
Julio Nobrega, Phlip, CJ Cuccaro,
No, when the php file tried to open http://a.php.file the remote server
would execute the file, jus like it you opened it in a browser, and
send the results.
It would probably work if it had the .inc extention though.
Most of the file-open function in PHP automatically recognize the
protocol you are using based on the file name. For example, if it starts
with "http", PHP will send a request similar from a browser to the
webserver. Thus, in response to the request, the webserver will send
content as if it was a web browser that was calling the file.