title: How to make a web service (preferably using PHP) that can be requested to get JSON objects by the android app
body: <p>I am making an Android App which interacts with remote server's database and communicate with each other by passing JSON object to and from.</p>
  
  <p>I need to know how to write such a service on my server (preferably in PHP) to which the android app can make request and on receiving the request, the server processes and makes a JSON object and passes that to the android app.</p>
  
  <p>Also, i need to know, when this service is running on the server, on <em>WHICH</em> URL will the android app make request?</p>
  
  <p>For example, if android app have to request to sever to fetch data for parameters:
  name: Apple
  location: US
  then, i guess the android app will have to request the server in form of:
   www.example.com?name='Apple"&amp;location='US'</p>
  
  <p>So how to make such a service running on the remote server?</p>
  
  <p>Thanks in advance !</p>