Re: [PHP] Event Handling

2010-03-15 Thread David Hutto
--- On *Mon, 3/15/10, David Hutto dwightdhu...@yahoo.com* wrote: From: David Hutto dwightdhu...@yahoo.com Subject: Re: [PHP] Event Handling To: php-general@lists.php.net, Alex Major p...@allydm.co.uk Date: Monday, March 15, 2010, 3:34 AM --- On Mon, 3/15/10, Alex Major p...@allydm.co.ukhttp

Re: [PHP] Event Handling

2010-03-15 Thread Midhun Girish
On Mon, Mar 15, 2010 at 1:10 PM, David Hutto smokefl...@gmail.com wrote: --- On *Mon, 3/15/10, David Hutto dwightdhu...@yahoo.com* wrote: From: David Hutto dwightdhu...@yahoo.com Subject: Re: [PHP] Event Handling To: php-general@lists.php.net, Alex Major p...@allydm.co.uk Date: Monday

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,

Re: [PHP] Event Handling

2010-03-15 Thread David Hutto
On Mon, Mar 15, 2010 at 5:17 AM, Lester Caine les...@lsces.co.uk 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

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

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 Alex Major
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-recent-events script on the server.. but that method

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 checking I

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

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 can