PHP code to work with Microsoft's Exchange API