Re: Com
| From: | Christian Reiniger | Date: | Wed, 07 Feb 2001 10:49:02 +0000 |
| Subject: | Re: Com | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38519@lists.php.net to get a copy of this message | ||
On Tuesday 06 February 2001 19:07, Vora Vor wrote:
> > "Fatal error: Cannot instantiate non-existent class: com in
> /var/www/html/version2/file.php on line 8" is the result of running the
> following code:
>
> <?
> $word=new COM("word.application") or die("Cannot start word");
> print "Loaded word version ($word->Version)\n";
> $word-visible =1 ;
> ?>
>
> Why?
You didn't define a class "COM".
(1) You did write such a class, right? It does not come with PHP
(2) function names are case sensitive
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds