Class 'COM' not be found on my Apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Betty_S
Forum Newbie
Posts: 20
Joined: Tue Dec 05, 2006 3:40 am

Class 'COM' not be found on my Apache

Post 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.
:?:
bubblenut
Forum Newbie
Posts: 20
Joined: Sat Feb 03, 2007 4:16 am
Location: London

Post by bubblenut »

Is your webserver a Windows machine or a Linux machine? COM is only available on Windows servers.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The path listed in the latter snippet would suggest a *nix based server. COM won't exist.
Post Reply