| | |
Live updates in browser (without manual refresh/F5)
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2009
Posts: 36
Reputation:
Solved Threads: 0
Hi everyone
I have an idea for something but not sure which method would work best to provide the desired result.
Let's say I have a database up and running, storing data for 2 users (php and mysql). What I want to achieve is: having 2 clients on the page with 2 different machines(different browser), have one user (do something), have the data stored in the database, then have user 2 see what has happened in as close to real time as possible.
Can this be done using JavaScript/Ajax to poll the database and update all browsers with a fast response time (100 ms updates?) is that too much strain for a hosted webserver?
If so, is this something achievable with php sockets?
Thanks!! Posted on my iPhone
I have an idea for something but not sure which method would work best to provide the desired result.
Let's say I have a database up and running, storing data for 2 users (php and mysql). What I want to achieve is: having 2 clients on the page with 2 different machines(different browser), have one user (do something), have the data stored in the database, then have user 2 see what has happened in as close to real time as possible.
Can this be done using JavaScript/Ajax to poll the database and update all browsers with a fast response time (100 ms updates?) is that too much strain for a hosted webserver?
If so, is this something achievable with php sockets?
Thanks!! Posted on my iPhone
Try Comet.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
•
•
Join Date: Aug 2009
Posts: 36
Reputation:
Solved Threads: 0
Tomorrow I will look into this Comet Programming more in-depth.
It appears to be a style of coding that I can use to Google search and find more information about, and not a framework itself. Seems like EXACTLY what I wanted.
Do you think this "comet programming" is what helped created Project APE? http://www.ape-project.org/
Basically exactly what I am trying to achieve; to be able to have me do something (or say something) on one browser, and have everyone else with the browser open view it in as close to real-time as possible!
It appears to be a style of coding that I can use to Google search and find more information about, and not a framework itself. Seems like EXACTLY what I wanted.
Do you think this "comet programming" is what helped created Project APE? http://www.ape-project.org/
Basically exactly what I am trying to achieve; to be able to have me do something (or say something) on one browser, and have everyone else with the browser open view it in as close to real-time as possible!
•
•
Join Date: Apr 2009
Posts: 254
Reputation:
Solved Threads: 37
its possible using ajax. as your user will update records and apply functionality at view area to refresh your page at every second using ajax. but it will take little time as client one is entering data and two is accessing from server. there will be difference of few seconds
•
•
•
•
Do you think this "comet programming" is what helped created Project APE? http://www.ape-project.org/
•
•
•
•
Basically exactly what I am trying to achieve; to be able to have me do something (or say something) on one browser, and have everyone else with the browser open view it in as close to real-time as possible!
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
![]() |
Similar Threads
- Designing for Top Browser/Resolutions Using Fluid Layout (HTML and CSS)
- Is there any Script to clear cookies on every time when the page gets loaded ? (JavaScript / DHTML / AJAX)
- Windows XP Pro Automatic Updates (Windows NT / 2000 / XP)
- What browser are you? (PHP)
- Vista issues incl. Defender and windows updates (Windows Vista and Windows 7)
- live updates (JSP)
- Live Stream Connection problems. (IT Professionals' Lounge)
- Cannot delete file (Windows 95 / 98 / Me)
- SP 2/XP 2 & Norton Live update will not install! (Windows NT / 2000 / XP)
- much slower pc after format (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: Retrieving multiple POST values with the same KEY
- Next Thread: Create file '$tablename'.php
| Thread Tools | Search this Thread |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external fcc file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing pagerank paypal pdf php phpmysql play problem query question radio random recursion remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube





