Re: [PHP] Event Handling

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 20:02 -0300, Gabriel Sosa wrote: > Indeed. This is kinda offtopic but if you put a cron running with a > loop you will kill your server. I would recomend use libevent + ALARM > signal to process on a time basis. On the other hand using C would be > a nice aproach since you ca

Re: [PHP] Event Handling

2010-03-15 Thread Gabriel Sosa
Indeed. This is kinda offtopic but if you put a cron running with a loop you will kill your server. I would recomend use libevent + ALARM signal to process on a time basis. On the other hand using C would be a nice aproach since you can put your script on an sleep mode until the next alarm signal i

Re: [PHP] Event Handling

2010-03-15 Thread Paul M Foster
On Mon, Mar 15, 2010 at 05:38:04PM -, Alex Major wrote: > Thanks to all for your help on this, it's been very interesting for me to > read. > > The system needs to check arrivals in real time (give or take a second or > two), using a cron job every minute doesn't provide the real time checkin

RE: [PHP] Event Handling

2010-03-15 Thread Alex Major
heridan.co.uk] Sent: 15 March 2010 12:56 To: Midhun Girish Cc: Jochem Maas; David Hutto; php-general@lists.php.net; Alex Major Subject: Re: [PHP] Event Handling On Mon, 2010-03-15 at 18:28 +0530, Midhun Girish wrote: > rene "a page with an ajax script that kicks off the check-for-recen

Re: [PHP] Event Handling

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 18:28 +0530, Midhun Girish wrote: > rene "a page with an ajax script that kicks off the check-for-recent-events > script on the server".. but that method is highly non reliable i dont > think anyone will take that risk especially for an important web app > cron or any

Re: [PHP] Event Handling

2010-03-15 Thread Midhun Girish
rene "a page with an ajax script that kicks off the check-for-recent-events script on the server".. but that method is highly non reliable i dont think anyone will take that risk especially for an important web app cron or any equivalent which runs on the server must be used instead of that

Re: [PHP] Event Handling

2010-03-15 Thread Jochem Maas
Op 3/15/10 12:00 PM, David Hutto schreef: > On Mon, Mar 15, 2010 at 7:31 AM, Jochem Maas wrote: > >> Op 3/15/10 8:24 AM, Midhun Girish schreef: >>> Hi , >>> Just as David Hutto has said,What you need is the cronjob... Make a >> script >>> say "check.php" which checks the db to see if any new entr

Re: [PHP] Event Handling

2010-03-15 Thread Rene Veerman
+1.. Assuming you have had a 100% success rate of getting cars to their destination on time for years; If for some reason you can't set up a cron job, you _could_ have a browser do the cron-ing for you; a page with an ajax script that kicks off the check-for-recent-events script on the server. gr

Re: [PHP] Event Handling

2010-03-15 Thread David Hutto
On Mon, Mar 15, 2010 at 7:31 AM, Jochem Maas wrote: > Op 3/15/10 8:24 AM, Midhun Girish schreef: > > Hi , > > Just as David Hutto has said,What you need is the cronjob... Make a > script > > say "check.php" which checks the db to see if any new entries are made... > > and if yes send the mail ...

Re: [PHP] Event Handling

2010-03-15 Thread Jochem Maas
Op 3/15/10 8:24 AM, Midhun Girish schreef: > Hi , > Just as David Hutto has said,What you need is the cronjob... Make a script > say "check.php" which checks the db to see if any new entries are made... > and if yes send the mail ... > > now using the cronjob feature in linux os(which will be prov

Re: [PHP] Event Handling

2010-03-15 Thread David Hutto
On Mon, Mar 15, 2010 at 5:17 AM, Lester Caine wrote: > Alex Major wrote: > >> 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

Re: [PHP] Event Handling

2010-03-15 Thread Lester Caine
Alex Major wrote: 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 is set on its way, the

Re: [PHP] Event Handling

2010-03-15 Thread Midhun Girish
opment Lead MobAlive Technologies On Mon, Mar 15, 2010 at 1:10 PM, David Hutto wrote: > > --- On *Mon, 3/15/10, David Hutto * wrote: > > From: David Hutto > Subject: Re: [PHP] Event Handling > To: php-general@lists.php.net, "Alex Major" > Date: Monday, March 15, 2010, 3:3

Re: [PHP] Event Handling

2010-03-15 Thread David Hutto
--- On *Mon, 3/15/10, David Hutto * wrote: From: David Hutto Subject: Re: [PHP] Event Handling To: php-general@lists.php.net, "Alex Major" Date: Monday, March 15, 2010, 3:34 AM --- On Mon, 3/15/10, Alex Major http://us.mc453.mail.yahoo.com/mc/compose?to=...@allydm.co.uk>>