rdva Posted May 10, 2011 Share Posted May 10, 2011 If u want to track files of your OSCommerce for changes, take a look at this small and effective script. I use it at my shop. The script contain few comments on russian, you may not see them correctly. This is not a problem - ignore it. http://www.skillz.ru/downloads/uploads/src/fsmon.phps 1. Save it as fsmon.php in your /catalog folder. 2. Create at the same place file "config.php": <?php return array( // files to monitor 'files' => '(\.php.?|\.htm.?|\.htaccess)$' // you may set manualy root folder for monitoring //, 'root' => '/home/user/public_html/' ); ?> 3. Create at the same place empty file ".cache" and make it writeable. 4. Create a cron task. Or simply run it from time to time - http://yoursite.com/catalog/fsmon.php Source - http://www.skillz.ru/dev/php/article-Skript_monitoringa_izmenenii_faylov.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.