Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question