TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10-25-2009, 08:27 PM   #1 (permalink)
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default Looking for insight on subscription based script

Hello all, looking for a bit of insight into a subscription based script, although not a payment type subscription. I am talking about forum subscriptions, where after a post, users subscribed would receive an email instantly, an hour later, or at the end of the day.

I would imagine this would be a cron type of job, but I have never messed with cron jobs and really don't have a great idea of how to go about this the best way ( as in not having to write more code than I have to ).

I thought I would create a subscription table, and after a post, check who was subscribed to that thread. If they are, insert them into this new table. Instant notification users would be emailed immediatly rather than entered, while an hour later or end of day users would be entered into the table and cron would run accordingly.

Would this be an ideal way to go about planning for such a thing? Sorry, just don't have experience in this general area.
Killswitch is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Part 2: Giving our Currency Conversion Script some Responsibility Wildhoney General 15 03-17-2009 01:53 PM
Random Avatar Script FaceDancer Script Giveaway 1 08-22-2008 05:47 AM
Flat file array, replace 3rd key value based on itself. Peuplarchie Absolute Beginners 1 07-22-2008 12:38 AM
Execute a script and call that file in an HTML page j4v1 General 2 05-22-2008 01:41 PM
hash() algorithm info script RobertK Script Giveaway 4 01-09-2008 03:00 PM


All times are GMT. The time now is 11:05 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design