title: Php REST webservice: are those url are logical or physical?
body: <p>Hi I'm trying to build the server side of an application using REST archtecture with PHP. later I will make a client for android to consume those services.</p>
  
  <p>I already know what is a RESTful application. </p>
  
  <p>but still got something confuse:</p>
  
  <p><DEL>if I want to get retrieve information of a user, the url I should access is www.domain.com/user/123 according to REST. but that means for every user in DB I should make a .php?? that sounds illogical. or there are something like java which use logical url, or just rewrite the url to something like  www.domain.com/getusr.php?id=123 ??</DEL></p>
  
  <p>fixed: is url rewrite the correct way to interpret request url from clients for a webservice in php?<br>
  for example: if someone request www.domain.com/user/123, I should rewrite to www.domain.com/getusr.php?id=123</p>
  
  <p>or maybe php is not for webservice?</p>
  
  <p>thanks</p>