Reputation: 69
We would like to know is it possible for us to build a web serive based on php to run on apache web server in linux environment? The issue here is that on time to time basis we are inserting a mysql db. Then on windows environment the same data need to be inserted as soon as possible. Will web service be the best method here or any other suggestion?
Upvotes: 0
Views: 536
Reputation: 891
PHP is an excellent and easy way of building a web service. You can use JSON or Soap to transport the data to and from the service.
PHP has a good addon library for SOAP called NuSoap.
Note that it's a good practice to make example php clients to test your service. It's much easier to debug the service with PHP client than with an objective-c or java client.
Database. PHP is capable of writing to a remote database so if you need write to an SQL Server on a Windows machine that should be possible.
Upvotes: 1