|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-07-09 06:08 UTC] gfletcher at marketchoice dot com
I am a Win 32 user of PHP 4 and I am trying to call a com component, the PHP manual states that the following syntax work:
com_load()
com_invoke()
com_propget()
com_get()
com_propput()
com_propset()
com_set()
But they don't!!!!
After doing some reasearch I have fould that the actual syntax for com_load() is COM('Component Name') and that com_invoke() is
$VariableAssignedToComObject->Comproperty = 'Value';
What I need to know is the actuall syntax used for:
com_propget()
com_get()
com_propput()
com_propset()
com_set()
It doesn't seem to be documented anywhere, can you help???
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
Doc problem In the mean time, you'll need to read the source... unfortunately. There are proto-types in there and probably one-line 'documentation' for each function. Here is a grep -A2 proto COM.c: /* {{{ proto int com_load(string module_name [, string remote_host [, int codepage[, string typelib]]]) Loads a COM module */ PHP_FUNCTION(com_load) -- /* {{{ proto mixed com_invoke(int module, string handler_name [, mixed arg [, ...]]) Invokes a COM module */ PHP_FUNCTION(com_invoke) -- /* {{{ proto mixed com_invoke(int module) Releases a COM object */ PHP_FUNCTION(com_release) -- /* {{{ proto mixed com_addref(int module) Increases the reference counter on a COM object */ PHP_FUNCTION(com_addref) -- /* {{{ proto mixed com_propget(int module, string property_name) Gets properties from a COM module */ PHP_FUNCTION(com_propget) -- /* {{{ proto bool com_propput(int module, string property_name, mixed value) Puts the properties for a module */ PHP_FUNCTION(com_propput) -- /* {{{ proto bool com_load_typelib(string typelib_name[, int case_insensitiv]) */ PHP_FUNCTION(com_load_typelib) { -- /* {{{ proto bool com_isenum(com_module obj) Grabs an IEnumVariant */ PHP_FUNCTION(com_isenum)