Notification system
am 02.08.2009 13:59:18 von Dusan Novakovic
Hi,
Does anyone has any idea how to create notification system with
combination of php, mysql and javascript. It should be something
similar to facebook notification system (when someone make some action
it should be automatically reported to other people on system through
pop-up menu or something like that). I just need some basic idea how
to start or if someone has some example it would be perfect.
Thanks,
Dusan
--
made by Dusan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Notification system
am 08.08.2009 04:14:17 von Phpster
On Aug 2, 2009, at 7:59 AM, DuÅ¡an NovakoviÄ =
wrote:
> Hi,
>
> Does anyone has any idea how to create notification system with
> combination of php, mysql and javascript. It should be something
> similar to facebook notification system (when someone make some action
> it should be automatically reported to other people on system through
> pop-up menu or something like that). I just need some basic idea how
> to start or if someone has some example it would be perfect.
>
> Thanks,
> Dusan
>
> -- =20
> made by Dusan
>
> -- =20
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I think you could have some kind if Ajax polling of a php function. To =20=
keep the traffic down you could set it to poll once a minute or every =20=
30 seconds or so. Send a simple XML stream that could feed a defined =20
JavaScript function or a bit of xslt for display.
Bastien
Sent from my iPod=20=
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Notification system
am 08.08.2009 04:25:26 von Jonathan Tapicer
Also, take a look at Comet Server:
http://en.wikipedia.org/wiki/Comet_(programming)
I think that Facebook uses that and also Gmail, it tends to consume
less resources than periodical ajax calls, the hidden iframe method is
simple and works fine. To implement it in PHP you will need to use the
flush function to send data a continue processing/polling.
Regards,
Jonathan
2009/8/7 Phpster :
>
>
>
>
> On Aug 2, 2009, at 7:59 AM, DuÅ¡an NovakoviÄ =
wrote:
>
>> Hi,
>>
>> Does anyone has any idea how to create notification system with
>> combination of php, mysql and javascript. It should be something
>> similar to facebook notification system (when someone make some action
>> it should be automatically reported to other people on system through
>> pop-up menu or something like that). I just need some basic idea how
>> to start or if someone has some example it would be perfect.
>>
>> Thanks,
>> Dusan
>>
>> -- made by Dusan
>>
>> -- PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> I think you could have some kind if Ajax polling of a php function. To ke=
ep
> the traffic down you could set it to poll once a minute or every 30 secon=
ds
> or so. Send a simple XML stream that could feed a defined JavaScript
> function or a bit of xslt for display.
>
>
> Bastien
>
> Sent from my iPod
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Notification system
am 08.08.2009 05:22:33 von Phpster
On Fri, Aug 7, 2009 at 10:25 PM, Jonathan Tapicer wrote:
> Also, take a look at Comet Server:
> http://en.wikipedia.org/wiki/Comet_(programming)
>
> I think that Facebook uses that and also Gmail, it tends to consume
> less resources than periodical ajax calls, the hidden iframe method is
> simple and works fine. To implement it in PHP you will need to use the
> flush function to send data a continue processing/polling.
>
> Regards,
>
> Jonathan
>
> 2009/8/7 Phpster :
>>
>>
>>
>>
>> On Aug 2, 2009, at 7:59 AM, DuÅ¡an NovakoviÄ =
wrote:
>>
>>> Hi,
>>>
>>> Does anyone has any idea how to create notification system with
>>> combination of php, mysql and javascript. It should be something
>>> similar to facebook notification system (when someone make some action
>>> it should be automatically reported to other people on system through
>>> pop-up menu or something like that). I just need some basic idea how
>>> to start or if someone has some example it would be perfect.
>>>
>>> Thanks,
>>> Dusan
>>>
>>> -- made by Dusan
>>>
>>> -- PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>> I think you could have some kind if Ajax polling of a php function. To k=
eep
>> the traffic down you could set it to poll once a minute or every 30 seco=
nds
>> or so. Send a simple XML stream that could feed a defined JavaScript
>> function or a bit of xslt for display.
>>
>>
>> Bastien
>>
>> Sent from my iPod
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
http://www.infoq.com/news/2008/05/facebookchatarchitecture is an
interesting blog on how they do it
--=20
Bastien
Cat, the other other white meat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Notification system
am 08.08.2009 17:07:02 von Jerry Wilborn
--0016e642d5fe893a650470a2b440
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I highly recommend ExtJS (htp://www.extjs.com).
Jerry Wilborn
jerrywilborn@gmail.com
On Fri, Aug 7, 2009 at 10:22 PM, Bastien Koert wrote:
> On Fri, Aug 7, 2009 at 10:25 PM, Jonathan Tapicer
> wrote:
> > Also, take a look at Comet Server:
> > http://en.wikipedia.org/wiki/Comet_(programming)
> >
> > I think that Facebook uses that and also Gmail, it tends to consume
> > less resources than periodical ajax calls, the hidden iframe method is
> > simple and works fine. To implement it in PHP you will need to use the
> > flush function to send data a continue processing/polling.
> >
> > Regards,
> >
> > Jonathan
> >
> > 2009/8/7 Phpster :
> >>
> >>
> >>
> >>
> >> On Aug 2, 2009, at 7:59 AM, DuÅ¡an NovakoviÄ
m> wrote:
> >>
> >>> Hi,
> >>>
> >>> Does anyone has any idea how to create notification system with
> >>> combination of php, mysql and javascript. It should be something
> >>> similar to facebook notification system (when someone make some actio=
n
> >>> it should be automatically reported to other people on system through
> >>> pop-up menu or something like that). I just need some basic idea how
> >>> to start or if someone has some example it would be perfect.
> >>>
> >>> Thanks,
> >>> Dusan
> >>>
> >>> -- made by Dusan
> >>>
> >>> -- PHP General Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>
> >> I think you could have some kind if Ajax polling of a php function. To
> keep
> >> the traffic down you could set it to poll once a minute or every 30
> seconds
> >> or so. Send a simple XML stream that could feed a defined JavaScript
> >> function or a bit of xslt for display.
> >>
> >>
> >> Bastien
> >>
> >> Sent from my iPod
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
>
> http://www.infoq.com/news/2008/05/facebookchatarchitecture is an
> interesting blog on how they do it
>
> --
>
> Bastien
>
> Cat, the other other white meat
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--0016e642d5fe893a650470a2b440--