External server codeigniter code php -


is there way use controller hosted on 1 server , use in other server b

i thinking create controller on host b , use

include_once("http://www.server2.com/php/ci/index.php/controller/function"); 

supposing have mirror database on host (b host use same database using data server) work?

what models?

   server    application     |      | -----> controller                 |                 | ------> control_a.php     server b    application     |      | -----> controller                 |                 | ------> control_b.php(use control_a.php code) 

you can using restful services in codeigniter.

refer restful service in codeigniter


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -