Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-01-2011, 05:40 AM   PM User | #1
najmul002
New to the CF scene

 
Join Date: Jun 2011
Location: Mymensingh, Dhaka, Bangladesh
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
najmul002 is an unknown quantity at this point
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.
najmul002 is offline   Reply With Quote
Old 06-01-2011, 02:17 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,503
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
php, real time data processing

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:05 PM.


Advertisement
Log in to turn off these ads.