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

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.