WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008, 05:28 PM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 333
DaveSawers RepRank 1
Default PHP With COM and/or DOTNET

Does anyone here have experience with using COM or DOTNET objects within PHP?

If I go to the PHP Manual and try the examples there for using COM and DOTNET from PHP then I can (for example): fire up Word on the server, create a document, write it, save it and quit the application.

Now we have written a .NET application to run as a server to another program and I have the following problems with it.

Instantiating the application using new COM(...) doesn't work.

If the application is manually started up on the server then get_active_object(...) returns an object but doesn't allow me to do anything with it.

Trying to instantiate the object using new DOTNET(...) crashes Apache!

The PHP manual is not very helpful about how to sort this kind of problem and neither is Microsoft any help.

Any ideas? Any thought as to how I can find out what's wrong?
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:02 AM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 333
DaveSawers RepRank 1
Default Re: PHP With COM and/or DOTNET

Some progress...

I can now instantiate the object on the server using new COM(...) and as long as I have instantiated it, I can use get_active_object(...) to attach to it. I can even run some methods ofthe object and although they don't crash, they don't seem to do anything either.

However, the object doesn't appear on the screen of the server computer or, as far as I can see, in the task list of Task Manager.

When run manually on the server, the application opens up its control window and runs scripts, as it is designed to do.

Most frustrating...
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:17 PM
able able is offline
WebProWorld New Member
 

Join Date: Feb 2008
Location: Glasgow
Posts: 10
able RepRank 0
Default Re: PHP With COM and/or DOTNET

PHP's com support is as you've discovered painfully bad.

If you've got a wrapper in .net - could you possibly just expose it as soap? If its viable, you wont have many problems from php.

Additionally if you grab the zend php for eclipse trial, it's got a wsdl parser that'll generate your php stubs to save you some work.
__________________
Glasgow SEO
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0