[PHP] Re: Event Handling

2010-03-15 Thread David Robley
Alex Major wrote: Greetings all, I'm currently looking at building a web application, however I've run into an area of development I've not come across before. The web site in its basic form allows users to send cars from a point and then the car will arrive at another point. When the car

Re: [PHP] Re: Event Handling

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 18:07 +1030, David Robley wrote: Alex Major wrote: Greetings all, I'm currently looking at building a web application, however I've run into an area of development I've not come across before. The web site in its basic form allows users to send cars from a

Re: [PHP] Re: Event Handling

2010-03-15 Thread Midhun Girish
hey ash, do we need both of those checks ? ie the time and the flag? i think they both do the same thing ie prevent duplicates.. am i right? and i think flag would be a more reliable method coz it will ensure that the email will be send even if the cron fails to execute for some time, Midhun

Re: [PHP] Re: Event Handling

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 14:28 +0530, Midhun Girish wrote: hey ash, do we need both of those checks ? ie the time and the flag? i think they both do the same thing ie prevent duplicates.. am i right? and i think flag would be a more reliable method coz it will ensure that the email will be

Re: [PHP] Re: Event Handling

2010-03-15 Thread Midhun Girish
ok so we have a script which checks if any cars have arrived within last 10 minutes... if yes, a mail will be send. suppose the server fails for 30 minutes so when the cron comes next time, we will have to check for cars which arrived within last 40 minutes and not 10.. right... so how

Re: [PHP] Re: Event Handling

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 14:40 +0530, Midhun Girish wrote: ok so we have a script which checks if any cars have arrived within last 10 minutes... if yes, a mail will be send. suppose the server fails for 30 minutes so when the cron comes next time, we will have to check for cars which