I need a way to grab a function that exists in a remote file, and then use it locally.
For instance: Server A,B,C each has files locally that needs to get processed in a way that can change over time. Therefore i have Server D which has stored a function that does this processing. Server A,B,C will then get Server D's function and use it to process their files.
This is not the exact situation I'm in, but i think you get my point.
I've tried requiring the remote file like so:
require 'http://www.someRemoteSite.com/remoteFunctionFile.php';
var_dump(function_exists("functionFromRemoteFile"));
But that gives me the following error:
Warning: require(): http:// wrapper is disabled in the server configuration by allow_url_include=0
.. which I've then read is a bad idea to enable. So I'm looking for an alternative way to do this.
What is the best practice for this?