Actually the manual is a bit off. In order to instantiate a COM object you
need to do:
$object = new COM("adodb.recordset");
Then you should be able to call the corresponding methods and properties:
$object->property = $sumvar;
or what have you.
You might check out http://php.net/manual/en/ref.com.php as the examples are
quite useful for starting out.
--
phill
""Thomas"" <[EMAIL PROTECTED]> wrote in message
98omg2$2n4$[EMAIL PROTECTED]">news:98omg2$2n4$[EMAIL PROTECTED]...
> Hi all again,
>
> i' am a very bloody greenhorne with php and maybe i have many questions.
> Heres one another:
>
> Who can exlpain to use com in php.
> How can i execute methods and read attributes?
> I only know how i can craete an object:
>
> $object = new ("adodb.recordset") for exsample, is it not so?
> But how can i get the attributes and execute the methods?
> And why the Documentation speaks from com_load,com_invoke and so on.
> No once of them are working. I only get the message:
>
> Call to undefined function.... and so on..
>
> Thanks for Help,
>
> Thomas
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]