title: How to set up a PHP daemon?
body: <p>I will be writing my first daemon in php and I have a couple really basic questions that I need help with.  </p>
  
  <ol>
  <li><p>What packages need to be
  installed on my linux server and
  Does anything in PHP need to be
  enabled? So far I have gotten this -
  <a href="http://pear.php.net/package/System_Daemon/download" rel="nofollow noreferrer">http://pear.php.net/package/System_Daemon/download</a></p></li>
  <li><p>Where on server do I save my
  daemon files?  </p></li>
  <li><p>I have a number of
  files that need to be included
  within the daemon that contain
  classes and functions for gathering
  emails and attachments through IMAP.
  All of these files are currently in
  my web public directory, how do I
  include these files within my daemon?</p></li>
  </ol>
  
  <p>I think that is everything I need to get started.  Thanks so much!</p>