imagine that I have two services with the same domain but different hostnames and on different physical computers (for example maps.google.com and mail.google.com). I want to include some php code from one server to the other… how can I do this? (I see a lot of things about how to include across different domains on the same server but this isn’t what I want.)
EDIT: I control both of the services that I want to include between but they are on different physical servers under the same domain. It has been suggested that I use a repository and then have each server clone that, so my question is now will I be able to automatically have every server update to the most recent version when changes are made to that repository? I am trying to make a code base of basic functions across the different services.
If you want to include a php file from a remote HTTP server, you will face two issues:
However, if the remote server let you access the script in its plain text version, you can just
includeit.