faqts : Computers : Programming : Languages : PHP : Function Libraries : PHP Related

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 12 people (58%) answered Yes
Recently 7 of 10 people (70%) answered Yes

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.