Re: How to use COM

From: Date: Wed, 14 Mar 2001 21:21:04 +0000
Subject: Re: How to use COM
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6034@lists.php.net to get a copy of this message
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"" <thaeger@internet-free.de> wrote in message news:98omg2$2n4$1@toye.p.sourceforge.net... > 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: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6034) next »