Jump to content

Class 'COM' not be found on my Apache


Betty_S

Recommended Posts

??? ???

When I tried to write:

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

I get this:

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. ???

 

Link to comment
https://forums.phpfreaks.com/topic/46547-class-com-not-be-found-on-my-apache/
Share on other sites

thats looks like a Class to me, you should include some files, or maybe a library? not sure though.

 

For cache problems,

 

  one way to overcome it is to add a random value in your URL, since some ISP servers do some

caching.

 

so basically you can add something like this

 

www.domain.com?page.php?x=8734745 

 

where 8734745  is a random value

 

 

or better you can try using php's function output_add_rewrite_var

 

http://php.net/output_add_rewrite_var

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.