API - Allowing access to classes to scripts on other domains
Posted: Fri Sep 26, 2008 1:17 pm
I'm after a couple of pointers here. If I wish to make a class on Domain A available to scripts on Domain B, is it possible for Domain B scripts to simply Include/Require the relevant PHP file from Domain A, or would that not work?
If not, what is the best form of communication to facilitate this? ie, is there some way for scripts on Domain B to interact with an object on Domain A - if so, I'd be interested in the links to relevant tutorials for that system.
If you could point me in the right direction it would be appreciated.
... also, to give the problem a context, the reason for wishing to do this is exercising control over who can use the class on 'Domain A' - that is, if a given client has stopped paying their subscription to use the service then the module running on their domain would no longer be allowed access to the class.
Thanks for any help.
If not, what is the best form of communication to facilitate this? ie, is there some way for scripts on Domain B to interact with an object on Domain A - if so, I'd be interested in the links to relevant tutorials for that system.
If you could point me in the right direction it would be appreciated.
... also, to give the problem a context, the reason for wishing to do this is exercising control over who can use the class on 'Domain A' - that is, if a given client has stopped paying their subscription to use the service then the module running on their domain would no longer be allowed access to the class.
Thanks for any help.