title: php + api: download and eval code on client site -> is it good idea?
body: <p><br />
  We provide link aggregator service.</p>
  
  <p>Terms:<br />
  1) client api: client api code, written in php, that we provide for our clients<br />
  2) client: client site, that uses client api to get ( from our server ) and display html links<br /></p>
  
  <p>Api is very simple.<br />
  All, what client is care about, is just to get and diplay links. Nothing more.<br />
  Currently, it looks something like this:</p>
  
  <pre><code>&lt;?php
  require_once('/path/to/lib.php'); // all logic is here ( what to send, log, ...)
  $obj = new Obj();
  echo $obj-&gt;getData(); // html links
  ?&gt;
  </code></pre>
  
  <p>The problem is, that after upgrade of client api, we have to give it to each client to upload on their sites.<br />
  So, this is very inconvenient.</p>
  
  <p><strong>What do you think about following idea</strong>:<br />
  Place lib.php to server and upgrade client api so it downloads and eval that code.<br />
  So, we can control everything happening on client sites in one place.</p>
  
  <p>What do you think ?<br />
  What should i take in mind ?<br />
  Thanks!</p>