title: Best way to access Exchange using PHP?
body: <p>I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server.  I've written up this functionality a few times before and have always used <a href="http://en.wikipedia.org/wiki/WebDAV" rel="noreferrer">WebDAV</a> to do it, but now I'm leaning away from that.</p>
  <p>I will be running the site on IIS OR Apache (no preference) on Windows server 2008.  A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on contacts for a user.</p>
  <p>All of this is pretty easy to do with WebDAV, but if there is a better way that doesn't require any functionality that is likely to be deprecated any time soon.</p>
  <p>Any ideas?</p>
  <h3>Update:</h3>
  <p>Justin, I love the idea of using com objects, I just worry about maintaining a 3rd product to make everything work...</p>
  <p>John, I can write a web service in C# to interface with for these functions and access it with my PHP app, but it's also a little bit out of the way.</p>
  <p>So far, I'm not 100% convinced that either of these is better than WebDAV...</p>
  <p>Can anyone show me where I'm being silly?</p>