Access your Outlook application using PHP?

Reply

Join Date: Sep 2006
Posts: 116
Reputation: bhavna_816 is an unknown quantity at this point 
Solved Threads: 0
bhavna_816 bhavna_816 is offline Offline
Junior Poster

Access your Outlook application using PHP?

 
0
  #1
Jan 5th, 2007
I wrote a PHP script to "Access your Outlook application using PHP".
Actually I wanted to access my Microsoft Outlook Calender to be accessed on web.
I have tried for the following link
http://www.programmersheaven.com/art...ogomil/art.htm
But I was getting the error
Warning: (null)(): Unable to obtain IDispatch interface for CLSID {0006F03A-0000-0000-C000-000000000046}: Access is denied
in the line
function getUnreadinInbox(){
#get unread messages from the Inbox Folder
###ERROR HERE
$oOutlook = new COM("Outlook.Application");
$oNs = $oOutlook->GetNamespace("MAPI");
$oFldr = $oNs->GetDefaultFolder(olFolderInbox);
$UnreadMessagesInFolder = $oFldr->UnReadItemCount;
return $UnreadMessagesInFolder;
}
then i went through the link
http://www.phpbuilder.com/columns/ve...01.php3?page=1
For Interfacing With COM Objects Under Windows NT/2k/XP
But again I am getting error in php.exe-Application error"The memory could not be read"
What should I do?

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC