Page 2 of 2 FirstFirst 12
Results 11 to 20 of 21

Hybrid View

  1. #1
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    The "adapters.xml" file you attached is good for the Java Adapter (inprocess) but with your PHP Remote Adapter you should use something like this:
    Code:
    <?xml version="1.0"?>
    <adapters_conf id="HELLOWORLD">
     
      <metadata_provider>
        <adapter_class>com.lightstreamer.adapters.metadata.LiteralBasedProvider</adapter_class>
      </metadata_provider>
     
      <data_provider>
        <adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
          <param name="request_reply_port">7001</param>
          <param name="notify_port">7002</param>
          <param name="timeout">36000000</param>
      </data_provider>
     
    </adapters_conf>

  2. #2
    Power Member
    Join Date
    Sep 2013
    Location
    Coimbatore
    Posts
    121

    Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\lightsample

    Really I heartily thanking you,

    Just now i could get understand about Lightstreamer and its adapter and client files. Too much of thanks to you. Based on this i have to develop stock market rates to client. We are developing application for bullion client. In that we are getting market rates from one third party application and we will add some of the margin and will display to users. Now i used ajax with settimeout() function to read file and display to client browser for every 200 mil second. Please give me some ideas to do this using lightstreamer. I got some basic points if you give some ideas means i can improve my application using lightstreamer.

    And also i'm getting error in my php coding like
    Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\lightsample

    Because getting error by indeterminate looping
    while (true) {
    $qry = "0|UD3|S|greetings|S|".$sid."|B|0|S|message|S| Do you count the following?|S|timestamp|S|Count: ".$cnt."\n";
    fwrite($feed, $qry);
    $cnt++;
    sleep(2);
    }

    For this i have update php.ini file and changed max_execution_time = 36000000

    now my browser continuously running. Is there any problem by this

    How can i overcome this. Thanks advance
    Last edited by rvkvino; September 18th, 2013 at 12:03 PM.

  3. #3
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784

  4. #4
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    We have just released on GitHub two examples showing the development of custom Remote Adapters for Lightstreamer, written in PHP:


    For a more in-depth discussion, please have a look at the related blog post:
    Writing Remote PHP Adapters for Lightstreamer

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:10 AM.