Using PHP's echo as a web service -


There is a lot of work to create a trusted web service Why can not we just create a simple php page, which receives the request And just gives example of JSON string. For example:

  & lt ;? Php $ action = $ _POST ['action']; If all users meet with {// DB and resonate a JSON string} and if (ads = "ads") {// get all ads from DB and a JSON string} echo etc. ? & Gt;  

It is a part of a quiet service; it is only read in this approach Nothing is wrong if you do not have to type any.


Comments