Posts

Showing posts from June, 2017

A simple web service using PHP, JSON and MySQL

Image
http://robertobartolome.com/a-simple-web-service-using-php-json-and-mysql/ What is this post about? In today’s web and mobile apps web services are used to access someone else’s resources; this could be to communicate two processes over the network, get some data from a database or fire up a process in a remote host. Although there are still web services being developed based on technologies such as XML and SOAP, the de-facto standards are JSON and REST. A web service based on REST is called a RESTful service. Almost every RESTful service uses HTTP as the default protocol. So, put these facts  together and you will probably conclude that a simple good example of a web service could be a service to access someone else’s database, get some data from there in JSON format, or save some data using a POST message. Well, this post is about all of these. Description of the test app I have defined a  user  table in a remote  dev_webservice_php_json ...