I want to connect a php class library one server to another -
i creating php
class library , want place on own server , related application code placed on server. need synchronize them ie class library accessed application(s) on other server.
how provide solution other application(s) access library.
there several ways access library, can't access other local libraries or classes. way use web services.
a solution use soap. php provides api soap, enables create soap server , client easily.
you create soap web server @ library end (on server library placed), , expose functions web service need access. solution , easy use. can find soap in php article here
http://www.codewalkers.com/c/a/miscellaneous/using-soap-with-php/
and read these
https://stackoverflow.com/questions/8657980/how-to-make-web-service-in-php
and
http://www.vankouteren.eu/blog/2009/03/simple-php-soap-example/
also way use xml , json. please read article.
http://davidwalsh.name/web-service-php-mysql-xml-json
please more research , ask mr. google several times, , solution according needs.
hope you.
thank you
Comments
Post a Comment