Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Cron jobs + Spliting up the problem
Old 06-22-2011, 04:53 PM Cron jobs + Spliting up the problem
Skilled Talker

Posts: 87
Trades: 0
Currently I have a database of users. I have a PHP script that checks each user to see what kinds of reminders I should send them each day. However, as users increase, my script execution will doubtlessly increase. I want to prevent it from hanging, and to see its progress. How can I split up this problem into multiple cron jobs that happen throughout the day, or some other way? If this is not the way that people normally do mass emails to users, then what is the usual way?

Thanks so much.
__________________

Please login or register to view this content. Registration is FREE
- The most comprehensive online resource for students and educators.
yuechen is offline
Reply With Quote
View Public Profile Visit yuechen's homepage!
 
 
Register now for full access!
Old 06-22-2011, 05:02 PM Re: Cron jobs + Spliting up the problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why do you need a cron job?

Just have a script that runs when a page is opened, checks a maintenance task database, runs the next task then flags it as complete.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Cron jobs + Spliting up the problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10865 seconds with 12 queries