title: REST vs. RPC in PHP
body: <p>I'm building my own Ajax website, and I'm contemplating between <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" rel="noreferrer">REST</a> and RPC.</p>
  
  <p>If my server supported Servlets I'd just install <a href="http://www.persvr.org" rel="noreferrer">persevere</a> and end the problem, but my server doesn't support Servlets.</p>
  
  <p>RPC is simpler to code (IMO) and can be written in PHP easily. All I need is a database query executer. I'm using the <a href="http://en.wikipedia.org/wiki/Dojo_Toolkit" rel="noreferrer">Dojo Toolkit</a> and JSON.</p>
  
  <p>Why should I choose REST over RPC or RPC over REST?</p>