K
K
Kirill Gorelov2015-08-23 14:41:37
PHP
Kirill Gorelov, 2015-08-23 14:41:37

Is it possible to connect an external file via include?

Hello.
Is it possible to connect an external php file through include, which is located on another server?
If yes, how will it look like?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-08-23
@Kirill-Gorelov

No.
php file is executed on the server, not on the client's machine. Therefore, an attempt to include a php file from another server will fail - the remote file will be executed on the remote server.
The only option is to mount the file system of the remote server on yours, then the file will be available as local.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question