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. ??? Link to comment https://forums.phpfreaks.com/topic/46547-class-com-not-be-found-on-my-apache/ 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 Link to comment https://forums.phpfreaks.com/topic/46547-class-com-not-be-found-on-my-apache/#findComment-226742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.