You are here: Re: Server push using PHP ? « PHP Programming Language « IT news, forums, messages
Re: Server push using PHP ?

Posted by Susan Baker on 12/21/05 15:10

somaboy mx wrote:

> "Susan Baker" <sbaker@no.spam.net> wrote ...
>
>>Is it possible to "push" data from a server to a client, using PHP server
>>side scripting?. An example script will be very useful.
>
>
> If I understand you correctly you need a type of server app that a chat or
> messaging client can connect to on a specific port, and once the connection
> is established your server needs to be able to pump data down the pipe
> without client requests (ie. passive client). Usually these kind of apps are
> separate processes that run continuously on a web server, often written in
> Java, Python etc. PHP scripts normally run once upon request, output
> something and exit. But you could write a PHP script that executes
> continually in an endless loop and have it act as a socket server, as
> demonstrated in this tutorial:
> http://www.zend.com/pecl/tutorials/sockets.php This is more of a hack than a
> solution though.
>
> The client can't be a regular web browser as it can only receive data on
> request, but you can use the Flash player, because it has an XML socket API.
>
> .soma
>
>

Tks. Looks like what I'm looking for

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация