Real-time communication between PHP and Flex application

My client wants to replace the buttons 'Refresh' in their Flex/PHP app with updating in real time, so as to data changes, it is pushed to the client.

I came across a few articles which cover this topic, but I'm hard-pressed to find the best approach. Can someone suggest possible solutions?

Any help would be appreciated. Thanks in advance.

If your server supports K 100 simultaneous connections with push (permanent connection)

It can be used 100K users simultaneous apps. With polling stations, it can serve more

100 k because it opens a connection and then it closes once the answer has

been sent, so until this client polls again it can handle other requests of

other customers...

C

Tags: Flex

Similar Questions

  • table behavior difference between php and flex?

    I think that this problem is probably caused by a difference in behavior of the table between php and flex I am not quite striking.  It's the flex code that I wrote and the php code is shown below.  I'm new to flex and this really left me speechless.    Thanks a lot for your help.

    The entries are father = [SB1, kit] dam [kit, kit] = sireLinkedP = E (P) and [e F]

    Output should be (and is with PHP) random = [E, P, SB1], [E, P, kit], [e, P, SB1], [e kit, P],

    What I get is random = [E, P, SB1, kit], [E, P, SB1, kit], [e, P, SB1, kit], [e, P, SB1, kit]

    function randomlinks(sire:Array,dam:Array,sireLinkedP:Array):Array {}

    var str:String [0] sire = .toUpperCase ();

    var str1:String sire [1] = .toUpperCase ();

    var str2:String dam [0] = .toUpperCase ();

    var str3:String dam [1] = .toUpperCase ();

    var x: uint = sireLinkedP.length;

    var k: uint = 0;

    var random: Array = new Array();

    x--;

    trace ("randomlinks sirelinked:" + sireLinkedP);

    for (var i: uint = 0; i < = x; i ++) {}

    for (var j: uint = 0; j < = 1; j ++) {}

    random [k] = sireLinkedP [i];

    trace ("random" + k + ":" + random [k]);

    If (str == [0] sire | str1 == sire [1] | str2 == dam [0] | str3 == dam [1]) {}

    random [k] .push (sire [j]);

         }//end if

    trace ("random" + k + ":" + random [k]);

         k++;

    } //end for loop

    } //end for loop

    trace ("randomlinks:" + random);

    return (random);

    { } //end randomlinks function

    function randomlinks ($sire, $dam, $sirelinked) {}

    $x = count ($sirelinked);

    $x--;

    $k = 0;

    for ($i = 0; $i < = $x; $i ++) {}

    for ($j = 0; $j < = 1; $j ++) {}

    $random [$k] = $sirelinked [$i];

    if (ctype_upper($sire[0]) | ctype_upper($sire[1]) | ctype_upper($dam[0]) | ctype_upper($dam[1])) {}

    array_push($random[$k],$sire[$j]) ;}

    $k++;

    }

    }

    Return ($Random);

    }

    You are right to make a copy. In Flex, the tables are references, if this assignment: random [k] = sireLinkedP [i] affects [k] random real behind sireLinkedP [i] matrix instead of a copy. Who is?

    -Kevin

  • PHP and flex

    I'm new to flex and I was wondering if I should spend a lot of time to learn PHP. You can do with php you can not do with action script 3.0 and mxml in flex. Are there things you can do with php and flex, that you can not do with flex and action script only. Sammy

    You cannot use to connect to databases, so that PHP or ColdFusion are good study.

  • [fpga] Faster communication between FPGA and host in real-time

    Hi all

    I received a card FPGA NI FlexRIO (SMU-7965R) installed on a chassis PXI (SMU-8135 embedded controller). I have an FPGA program to 40 MHz, and I use a real-time program to read a particular variable of FPGA on a regular basis. I do not stream. All I need is to get the most recent value during each execution of the loop of the program in real time (hence, DMA FIFO is not a good option). I am aware that you can read the FPGA indicators in the host program (real time) using the FPGA read/write control function. I used this feature to read a certain variable of indicator FPGA, as shown in the screenshot. The RT program takes 100 micro-seconds (10 kHz), which is not fast enough for my application.

    Is there a faster method to read the latest FPGA data, or the program shown in the screenshot can be modified to reduce the time of loop RT? Any help would be greatly appreciated.

    You're talking about an RT target a sitting in the RT himself FPGA card? If so, have you tried without the IP address of the target. See this thread to see why that would make a difference.

  • Communication between virtual and real session

    A virtual session may communicate information to the real machine? In other words, if a virtual session running can I send a message or a text to be saved on the actual computer?

    I'm under v VMWare Workstation 7.1.1 on a PC running Windows XP Pro.

    Sure! I'm not sure what exactly mean you by 'send a message or text' but you have several options:

    By default (depending on how your virtual computer was created) under the virtual machine settings > Options > Guest insulation, Drag and Drop and copy and paste are enabled. This allows you to freely drag and drop and copy and paste between guest and host operating systems. If these are not enabled, you can activate them. It's one of the ways safer and easier to share data.

    You can also create, under the ' Virtual Machine Settings > Options > folders ', a file shared between the two. Although some do not recommend this for reasons of performance and security.

    You can share files over the network by using shared folders, just like any physical PC 2 would be to share files. If you don't know how to do this, there are a lot of tutorials on the web.

    It is a bit more advanced, but you can also share a real physical drive (see the user manual). It is the least secure method, but offers the best performance if you regularly share huge amounts of data (several tens or hundreds of gigabytes).

  • Real-time target - change IP and shared network varables

    Hello

    I create an application for the system in time real (Compact RIO).

    All data between the (current running on a windows PC-based) GUI and the real time system - is transferred via shared network variables.

    Shared variables are hosted on the target.

    I attributed the static IP address to the real-time target.

    Now for the question:

    After the deployment of the application in real time on the Rio target compact

    If I change the IP address of the target: how the shared variables 'know' to connect to the target?

    There is no place in the GUI (running on windows PC based) I set the IP address of the target.

    So I change the IP Address of the target (and for the sake of argument if I change the IP address of the PC, but they are always on the same subnet) - how to 'know' how to connect?

    Looks like a basic question I am absolutely certain I'm missing something to understand shared variable...

    Thnaks

    Hello Hazkel,

    The IP address of your shared time variable real target is located in the *.aliases file when you create an executable file, you will need to change there.  See the example below:

  • Series communication between computer and cRIO

    Hello

    I am not new to Labview or cRIO programming, however, venture in for my first try at the serial communication.  I have a controller (not original NOR) that sends data over a serial RS232 network I want to open a parallel session to the data that I collect with a cRIO.  Before we get to integrate, I try to test with a series, my computer cable and hyperterminal communications and the serial port cRIO.  I followed and validated exploitation and drivers with the following text:

    How to do a loopback Test series
    http://www.NI.com/white-paper/3450/en

    However, when I try to use the following example, I get nothing:

    Transfer data between cRIO and host series
    https://decibel.NI.com/content/docs/doc-3816

    Any ideas on where to start?  I appreciate very much all the advice.

    Thank you.

    I have confirmed that it is a right.  I'll try a null-modem cable.

    Thank you!

  • Communication between Labview and Rn42 Bluetooth

    Hello

    I am currently working on a project that requires communication between a bluetooth equipment and my pc with bluetooth built-in. The bluetooth hardware is verfied working with Blueterm on android. However I'm unable to connect with my laptop blueterm. Is back a unabe to connect error. I use bluetooth vi without series or visa. This method is suggested? Thank you


  • Communication between LabVIEW and MCU based on Modbus Protocol

    Hello

    I am a first year student in the port.and series applications see you, my projiect needs to communicate between LV and MCU based on Modbus Protocol.all configure it are correct, but the lv to send false information which is not suitable for modbus.i do not know how to fix it.

    My programs are:

    Why did you decide to write your own code instead of what is already available? If you had done a search, you would have easily found the modbus library. Just give a try.

  • Switch time delay between 3 and back!

    Hello

    I'm trying to figure out how can I switch between three cases in a case structure for a while between each switch.

    For example: I have three cases in a structure of case (case) {0,1,2} where zero is the default case.

    What I want to do is to start in the case of the value by default 0 wait 1 s switch for case 1, wait 1 second switch case 2, wait 1 second back switch for case 1, wait 1 second back to the 0.  Then repeat the order.

    I used the timer elapsed value of the ramp function Tim from a selection function between true and false, but with the additional case I don't think that this approach works.

    Any ideas?

    Search for the term "State Machine". That's what you're trying to invent (nice work) so feel free to 'Cheat' and look for the wheel as it exists today.

    Ben

  • Difference between oracle and Oracle Application Server Developer's costume?

    Hi all

    If someone please tell me the main difference between the costume of developer and Oracle Application Server.

    I will be very thank ful.

    Thank you

    Hina.

    You would need an application to host the application, but each user could access this application using a browser. So the obligation for each user is simply a browser with an appropriate Sun JRE installed - this JRE (if not already installed) can be configured to be automatically downloaded and installed on the client from the application server.

  • Communication between TNS_Listener and the listener of the Apex

    Hi all
    I how communication between TNS Listener, receiver of the Apex and Apex? For some reason, I got the following error of Apex listener:
    Caused by: oracle.dbtools.rt.web.WebException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource
    .
    .
    .
    Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    I truncated messages Java object.

    This has happened when I tried to connect to the Apex. So I can fix it by going to:
    http://localhost:8080/apex/listenerConfigure
    then everything worked fine.

    My listener.ora file:
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = firefly.snowdrop.com)(PORT = 1521))
        )
      )
    
    ADR_BASE_LISTENER = /usr/local/oracle
    
    ADR_BASE_ORACLE_LISTENER = /usr/local/oracle
    My tnsnames.ora file
    INARA =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = firefly.snowdrop.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = inara.snowdrop.com)
       )
      )
    When inara is the name of the instance and the firefly is the host name.

    Is that the order of start if first the TNS Listener or listener Apex matter first?

    Best regards
    Val

    Published by: Valerie good-natured August 1, 2011 05:47

    Hi Val,

    My tnsnames.ora is configured for an existing server and there is no client configurations like sqlplus, sql or earpiece of the apex developer. However until now the server can connect to customers without problem (I just discover that unreproducible error on 'impossible to find the SID' sometimes occurs at the beginning of the Summit, the kick-off and can be solved by waiting for a while to connect to reconnect), so again I must modify the .ora?

    No, if your database listener is configured properly (i.e., he listens to the SID that you try to connect to the network interface/hostname/ip address /... she must use), there is no need to make any other configuration, especially not on another machine.

    -Udo

  • Error: There is no communication between computer and printer

    Original title;

    printer not printihg after the installation of new updates

    I get messege there is no commacation between computer and printer

    Hello

    1. What is the brand and model of the printer?

    2. What are the updates that have been installed before the show?

    See the Windows updates are installed

    http://Windows.Microsoft.com/en-us/Windows7/see-which-Windows-updates-are-installed

    3. have you checked the status of the printer in Device Manager?

    Open the Device Manager

    http://Windows.Microsoft.com/en-us/Windows7/open-Device-Manager

    4. what operating system is installed on the computer?

    You can Open the printer Troubleshooter and check if it makes a difference:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    You can follow this link and check if it helps.

    Printer in Windows problems

    Let us know the result!

  • LabVIEW FPGA and real-time communication module

    Hi all

    I created a small program in labview FPGA which gets continually distance from the HC - SR04 ultrasonic sensor. The rest of the robot program is written in the time module real Labview. Is it possible that the distance calculated by FPGA module to read in time real module.

    I used the FPGA just because there micro-deuxieme counter, which helps me get the distance from the ultrasonic sensor.

    Thanks in advance.

    There are many ways this can be done, according to your needs.

    See the help article transfer of data between the FPGA and host (Module FPGA) for a breakdown of each method.

  • Speed of communication between workstation and server

    Is there a way when I access my router settings that I can increase the amount of time it takes to run a report on the data of my server?  All I want to do is run a report of 100 emails or more leads is entered in the database today.  But it takes so long for the server to send this info to a spreadsheet on my workstation.  Don't you think that it is a router issue?

    What is the number of your router model. These are settings that you can set your may be this could solve the problem. If you have a firewall or an Antivirus on your computer try turning it off. Login to your configuration page of the router and under configuration tab change the MTU to 1365 size and click on save settings. After that you can try to transfer the files between your computer and check how his work.

Maybe you are looking for

  • Fast LAN speed/low speed WiFi

    I sent a support ticket on it but still have not found a solution so I thought that maybe some forum users might have an idea... I have the WNDR4300 with the latest firmware. I use an Arris cable modem (I have set to bridged so it will not double on

  • access my notes on my imac

    I know that I can access my notes by opening safari will icloud connect etc etc etc etc...  Is it possible to get the notes to simply show up (as they do in my iphone and ipad applications)? Thank you J Jordan

  • How to install and dual boot Os 9 and os 10.4 on ibook g4?

    This came in many ways, and I tried many suggestions out there. But I do not have succeeded. I did two partitions on my ibook g4 hardrive, then installed the Tiger on one. But I can't install (from CD) or boot os 9 (same copy of the system folder a G

  • error of initialization of the local db

    Helloon Siebel 8.1.1.8 I get the following errors when you attempt to initialize the local promoter database:Error: Directory/Fs/att, / Fs2/att, att/Fs3 / does not exist.SBL-DCK-00179: could not establish the synchronization with the server session.B

  • ListBox or TreeView can store dynamic localization of objects/items?

    Example ofThe code below a few lists selected layers and clicking on an element triggers the point name.Below triggers code layer/article name undefined as it does not store the dynamic location of the object.Is it possible to store the dynamic locat