title: What is the preferred way to write my linux daemons?
body: <p>Hello to All <br/><br/>
  I have a PHP website that should use some cached data (stored in Memcache, for example).
  The data should be stored in cache by daemons fetching it from web services and some of it should be stored in MySQL server too.</p>
  
  <p>The daemons should do the following:</p>
  
  <ol>
  <li>Fetch foreign exchange rates, parse them and store them in database as well as in two seperated memcaches in seperate machines.</li>
  <li>Fetch financial indices and store it in seperated memcaches.</li>
  <li>Fetch large XML data and store it in two seperated memcaches.</li>
  </ol>
  
  <p>I am capable of writing these daemons in C/C++/Perl/PHP/Python.</p>
  
  <p>I have to decide in which language/script I should choose in order to implement these daemons.
  The advantage of using PHP for this is that I can use API used by the website application itself. Another advantage is that PHP is easy and everyone knows it so I won't be tied up to maintaining these daemons but on the other hand PHP is slower and consumes much more resources.</p>
  
  <p>The main disadvantage of using other language than PHP is that it's harder to maintain code written in C/C++/Perl. Nowadays, I guess it's not common to do these kind of tasks using C/C++/Perl. Am I wrong in saying that ?</p>
  
  <p>What would you recommend me to do in this case ?</p>