![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I'm running WinXP,IE6.0 on my workstation and have a local server running WInXP,Apache 2,MySQL 5,PHP 4. I wrote this script to grab certain addresses from distribution lists in an Outlook 2003 address book and throw them into a MySQL table. It worked when I tested it in UltraEdit Studio and it works when I run it from the command line. But I need to run it from a browser or have the browser batch it to the server to run from the command line. When I tested it from a browser while the Outlook 2003 client was running on the server, it gave me this error: 'Failed to create COM object `Outlook.Application': Server execution failed So I build a little snippet to run some tests: ?php $ol = new COM("Outlook.Application","localhost"); $ol=''; print "done!"; ? and save it as testcom.php. It works from the browser as long as the server doesn't have an Outlook client open. But I need the client to be open sometimes. If the Outlook client is open and I run it from the command line on the server it works fine. C:\PHP\php testcom.php C:\PHP\php.ini and C:\windows\php.ini are identical. I'm pretty sure I need the Outlook client open to get to the address book. Our exchange server is Electricmail. Does anybody have any ideas on what is happening, how to get around it or how to fix it? THanks for any input. Reed |
Ads |
#2
|
|||
|
|||
![]()
On May 2, 12:20 am, reedko wrote:
Hi, I'm running WinXP,IE6.0 on my workstation and have a local server running WInXP,Apache 2,MySQL 5,PHP 4. I wrote this script to grab certain addresses from distribution lists in an Outlook 2003 address book and throw them into a MySQL table. It worked when I tested it in UltraEdit Studio and it works when I run it from the command line. But I need to run it from a browser or have the browser batch it to the server to run from the command line. When I tested it from a browser while the Outlook 2003 client was running on the server, it gave me this error: 'Failed to create COM object `Outlook.Application': Server execution failed So I build a little snippet to run some tests: ?php $ol = new COM("Outlook.Application","localhost"); $ol=''; print "done!"; ? and save it as testcom.php. It works from the browser as long as the server doesn't have an Outlook client open. But I need the client to be open sometimes. If the Outlook client is open and I run it from the command line on the server it works fine. C:\PHP\php testcom.php C:\PHP\php.ini and C:\windows\php.ini are identical. I'm pretty sure I need the Outlook client open to get to the address book. Our exchange server is Electricmail. Does anybody have any ideas on what is happening, how to get around it or how to fix it? THanks for any input. Reed I would suggest accessing the address book over ADODB (through JET) instead of using Office automation. Trying to control an Office app in a server application is always going to be hairy. Accessing the data store is relatively easy, on the other hand, with Jet as it provides a SQL interface. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook should have an option to just open ONE instance | ewerybody | Outlook - Installation | 2 | March 15th 07 10:10 AM |
How do I associate one client with another? client to accountant | Buzz Bennett | Outlook - Using Contacts | 0 | September 7th 06 11:35 PM |
Multiple instance of Outlook 2003 running | avi8tor | Outlook - General Queries | 2 | April 12th 06 11:34 AM |
Calendar... Button opens another Outlook Instance ... | Sue Mosher [MVP-Outlook] | Outlook - Calandaring | 0 | January 19th 06 09:09 PM |
Outlook 2003 Instance Won't Close If Opened Programmatically | Michael Bauer | Outlook and VBA | 3 | January 11th 06 03:19 PM |