Category Archives: Code Examples

CRONTAB – Predefined scheduling definitions

Predefined scheduling definitions There are several special predefined values which can be used to substitute the CRON expression. Entry Description Equivalent To @yearly (or @annually) Run once a year, midnight, Jan. 1st 0 0 1 1 * @monthly Run once … Continue reading

Posted in Code Examples, PHP | Leave a comment

PHP Site Monitor Script (with email alerts or text messages.)

I run monitor script every five minutes and here is my cron entry: # PHP Web server monitor */5 * * * * /usr/bin/php /usr/local/scripts/monitor.php

Posted in Code Examples, PHP | Leave a comment

Php Curl

If you want to write a sort of php wrapper to include the results of another http(s) request maybe pointing to a totally different site or just different code (mod_perl with HTML::Mason, in my case) into a php based layout, … Continue reading

Posted in Code Examples, PHP | Leave a comment