Realtime Auto Article Updater

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
leon_nerd
Forum Commoner
Posts: 25
Joined: Tue Aug 21, 2007 1:20 pm

Realtime Auto Article Updater

Post by leon_nerd »

Hello,

I have been looking for PHP scripts, code or something that can help me in implementing my idea. But, I guess I am not to search it properly due to lack of using proper terminology.

I want to have a smalls section on a website that will display the 5 recent articles and I want them to update in real time (AJAXian type) whenever a user adds an article. Have a look at this: http://www.xbhp.com/talkies/xtracker.php. Whenever someone posts a reply or a thread it is displayed immediately on this page in real time. You don't need to refresh it. It will keep scrolling down as the replies are being posted.

Now this is not something new but unfortunately I don't know the exact terminology for such a thing :banghead: . I googled "article ticker", "article updater", "AJAX article updater"..etc etc but didn't get the desired results.

Any help in implementing this on my website will be highly appreciated.

Thanks,
Anurag
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: Realtime Auto Article Updater

Post by Maugrim_The_Reaper »

Try AJAX polling. The page is probably using AJAX to continually query (or poll) the server for updated article/comment lists, and appending new ones to the page element. Often it's done efficiently by the query containing the last article/comment id received so it only get's back the updated ones, and not the entire list again.
leon_nerd
Forum Commoner
Posts: 25
Joined: Tue Aug 21, 2007 1:20 pm

Re: Realtime Auto Article Updater

Post by leon_nerd »

I am sorry I couldn't realyl grab it. I have not been into a lot of AJAX. The coding is not a problem. The problem is the concept.

Is there anyone who can help me in this?
Post Reply