hi,

if you want real time data on the browser, you may want such data not to pass through php, so you may want to use php to create your html and then use the javascript library to fetch the real-time data.

Btw you can certainly write a php client exploiting our text protocol tutorial. You can find it under LS_HOME/DOCS-SDKs/sdk_client_generic
Note that for the server to support the text protocol you have to use Lightstreamer Presto or Vivace (see http://www.lightstreamer.com/products.htm and http://www.lightstreamer.com/downloadretail.htm ).