PHP as a service, running "headless" pages

skypanther

Exalted Code Master!
I'm using a commercial PHP-based emailer app on one of my client sites. It includes a feature that I'd like to include in one of my apps, but I can't figure out how it's done.

A cron job kicks off a send page that sends out the mailings. The cron job runs once per hour, but the messages are sent in batches every XX seconds. So, somehow, the actual sending page is being called over and over even though no one is viewing it and the cron job page isn't being run that often.

Is it as simple as this: because the page was called once (via the cron page) that it can keep calling itself until its work is done? The developer said that it worked "because PHP can run as a service" but wouldn't elaborate more than that.

Tips?

Thanks,
Tim
 
Back
Top