Forum Moderators: coopster
to execute every 4 pages you need to make a counter. that could be a file you're storing the current number in (may leed to probs if too many scripts are accessing it the same time) or you should store the value in a database.
but anyways, i think you really should use cron for that, it will help you and will avoid a lot of problems. if you've got cpanel, contact your support personnel and let them help you to setup cron-jobs.
--hakre
crontab -e
MAILTO="your@email.address"
0 /4 * * * /path/to/script