Setup a cron job on a remote system that accesses the /automail.php remotely.
The simple process of accessing the page via HTTP is enough for the code inside to be executed since the browser executes the code for you. Therefore, by setting up a cron job on your local Linux system (or any internet enabled system) to access yourdomain.com/support/automail.php is sufficient.
Here's my cron entry:
# eTicket automailer.php get
*/5 * * * * wget -q -O /dev/null http://www.yourdomain.com/eticket/automail.php
You can also use curl instead of wget if you know curl better.
You can edit the crontab of any user on a Linux system by entering the following at the command prompt:
crontab -e
That will open the crontab file for the user in which you are currently logged into the shell as.