This is a PHP application which enables people to 'watch' pages on a website for changes and get e-mail alerts when a change happens.
- Clone the repository.
- Run
composer install
to install the dependencies. - Download and install the famfamfam icon set in /images/icons/
- Add the Apache directives in httpd.conf (and restart the webserver) as per the example given in .httpd.conf.extract.txt; the example assumes mod_macro but this can be easily removed.
- Create a copy of the index.html.template file as index.html, and fill in the parameters.
- Set up a cron job, as per the supplied example, pointing to the index.html file.
- Access the page in a browser at a URL which is served by the webserver.
Invoke using PHP from the command-line under cron - see pagewatch.cron-example
as noted above.
If not possible, wget
is a workaround:
wget --quiet --delete-after --user-agent="Pagewatch" https://example.com/pagewatch/runcheck.html
MySQL needs:
GRANT SELECT,INSERT,UPDATE,DELETE ON pagewatch.* TO pagewatch@servername;
Martin Lucas-Smith, Department of Geography, 2003-24.
GPL3.