Solution for COMET and PHP

Is there any real solution for combining COMET and PHP? Basically, I came to the conclusion that I need to periodically update the user's home page whenever new data appears in the database. As I understand it, I need to open a permanent connection between my server and the browsers of my clients in order to update the contents of my home page right after the new information. accessible without allocating a large amount of resources, but I could not find something clear from this problem. I have read many articles that PHP is not a good language for implementing COMET. My web application is fully programmed in PHP and I donโ€™t want to learn another language, but if I am forced to, will you offer a good language to start with? Do you think that I can program the interface to deal with this problem?

Thanks in advance.

+5
source share
8 answers

The time I heard says that PHP is not very suitable for COMET (as you said yourself) because of the way web servers and PHP work, mainly because there is one process on the page, which means that if you want 200 users to connect to your server, you will need 200 processes (which can quickly become a problem for several hundred users).

Perhaps a solution to this problem would be to use nginx_http_push_module?

I have not tried it yet (yet?), But it may be exactly what we need ...

+2
source

. PHP , . BOSH XMPP. "" , , . Strophe XMPPHP. BOSH ( Openfire) .

+1

.

, Quercus (Java- PHP) Comet JVMs.

0

Realplexor, , API Javascript PHP.

Readme.txt .

0

, . , , wiki Comet ()

, , , , wiki

1.

2.Streaming

" "

-

1. ajax, (ajax-) . .

JQuery PeriodicalUpdater ( / AJAX)

RobertFischer/JQuery-PeriodicalUpdater

, -

a) .

b) script , .

2. , :

COMET PHP

Lightstreamer Dojo

Dojo + Lightstreamer

Demo

Ajax Push Engine APE

-

a) -

b) ( , )

, . .

, , , Ajax Long, , .

, .

0

Ajax - , jquery js-, .

0

Node.js . ( , ). PHP - , , . Python , Twisted, , . , , /. (Glassfish Grizzly Comet Java )

0

All Articles