IT Community - Software Programming, Web Development and Technical Support

COM functions in php

This is a discussion on COM functions in php within the PHP Programming forums, part of the Web Development category; com_propput com_propput -- Alias of com_set() Note: This function does not exist in PHP 5; instead, you should use the regular ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #21 (permalink)  
Old 05-05-2008, 05:30 AM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: COM functions in php

com_propput

com_propput -- Alias of com_set()

Note: This function does not exist in PHP 5; instead, you should use the regular and more natural OO syntax to access properties or call methods.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 05-05-2008, 05:33 AM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: COM functions in php

com_propset

com_propset -- Alias of com_set()

Note: This function does not exist in PHP 5; instead, you should use the regular and more natural OO syntax to access properties or call methods.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 05-05-2008, 05:54 AM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Re: COM functions in php

com_get_active_object

com_get_active_object -- Returns a handle to an already running instance of a COM object

Syntax:
variant com_get_active_object ( string progid [, int code_page] )

com_get_active_object() is similar to creating a new instance of a COM object, except that it will only return an object to your script if the object is already running. OLE applications use something known as the Running Object Table to allow well-known applications to be launched only once; this function exposes the COM library function GetActiveObject() to get a handle on a running instance.

progid must be either the ProgID or CLSID for the object that you want to access (for example Word.Application). code_page acts in precisely the same way that it does for the COM class.

If the requested object is running, it will be returned to your script just like any other COM object. Otherwise a com_exception will be raised. There are a variety of reasons why this function might fail, the most common being that the object is not already running. In that situation, the exception error code will be MK_E_UNAVAILABLE; you can use the getCode method of the exception object to check the exception code.
__________________
Thanks & Regards,
R.Kamalakannan.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 05-06-2008, 04:35 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: COM functions in php

Quote:
Originally Posted by Kamalakannan View Post
Obviously, DCOM is distributed but COM is not. To be more precise, there are three main elements added to COM:
can you give some sample in DCOM using PHP?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 07-12-2008, 03:20 AM
Miakoda Miakoda is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 49
Miakoda is on a distinguished road
Default Re: COM functions in php

The COM class allows you to instantiate an OLE compatible COM object and call its methods and access its properties.
syntax:- $obj = new COM("Application.ID")
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP FTP Functions Kamalakannan PHP Programming 54 04-14-2008 04:42 AM
Sql functions itbarota Database Support 11 02-29-2008 01:08 AM
What are encryption functions in PHP? Sabari PHP Programming 2 09-17-2007 08:53 AM
What are Virtual Functions? How to implement virtual functions in "C"? Sabari C and C++ Programming 4 09-10-2007 10:35 PM
Imagemagick functions Sivamurugan PHP Programming 4 09-09-2007 10:51 PM


All times are GMT -7. The time now is 09:40 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0