Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Location
    Mymensingh, Dhaka, Bangladesh
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb PHP Real Time Data Processing

    Is it possible to make a real time data processing system using PHP?

    As an example, when a content/layout changed in server by admin, it will make change on all over the clients who were using that content/layout like viewing/editing.

    I don't want to use any AJAX/FLASH technique only using PHP. Is it possible?

    Please share some idea.

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,342
    Thanks
    60
    Thanked 527 Times in 514 Posts
    Blog Entries
    4
    PHP isn't really a real time system. What you can do however is write your code inside a loop and have it loop continually with a 1 second sleep (so it doesn't lock the CPU and freeze the machine).

    Within that loop you can do whatever you want. Just be sure to have some way of stopping it.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •