Betty_S Posted April 11, 2007 Share Posted April 11, 2007 ??? ??? 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. ??? Quote Link to comment Share on other sites More sharing options...
rpadilla Posted April 11, 2007 Share Posted April 11, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.