Why bother with cron for ‘post by email?’ Why not script it?
-
I’m no hardcore programmer, but why does everyone bother with setting up cron jobs? I haven’t done one myself, but I’ve read threads from several people who sounded frustrated.
Why don’t people simply put something like “<?php include (‘./wp-mail.php’); ?>” in the first few lines of “index.php” to force the page to check for new emails EVERY time the page was accessed? I know it would take the page a little longer to load, but wouldn’t it be a marginal cost, considering how many people seem flustered when attempting to set op a cron job? (Maybe you could set a time stamp in a small “timestamp.DAT” file or something to only run it if it has not been run in a specified time period?)
Wouldn’t that work? Just wondering. Like I said, I’m no programmer myself, so maybe there’s something I’m not thinking of.
Please email me if this wouldn’t work, I’m really curious…
- The topic ‘Why bother with cron for ‘post by email?’ Why not script it?’ is closed to new replies.