Page 1 of 1

Class 'COM' not be found on my Apache

Posted: Wed Apr 11, 2007 1:30 am
by Betty_S
When I tried to write:

Code: Select all

$shell = new COM("WScript.Shell") or die("This thing requires WindowsScripting Host");
I get this:

Code: Select all

Class 'COM' not found in /var/www/vhosts/rt-design.co.il/httpdocs/templates/rt-design/index.php on line 2
Basically, I want to prevent my site from being cached.
I tried .htaccess, php header and even JavaScript but nothing works!
Whats the the deal with the COM?! Shouldn't that be a basic object?!
Please help me.
:?:

Posted: Wed Apr 11, 2007 6:46 am
by bubblenut
Is your webserver a Windows machine or a Linux machine? COM is only available on Windows servers.

Posted: Wed Apr 11, 2007 7:44 am
by feyd
The path listed in the latter snippet would suggest a *nix based server. COM won't exist.