Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Lightweight file system monitor


rdva

Recommended Posts

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

Archived

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

×
×
  • Create New...