How to show updates like community sites orkut,facebook do when friend uploaded any video or image. Whats the basic idea ? or structure of database.
get theyr API (of fb,orkut)? they usually have premade scripts for this already and you just have to paste it into your code. or do you want to make your own API so that other sites can display your updates?
lolwut? in php? Really, the best is to go to their websites and read info about fetching data, i'm sure they've done some documentations about it
Maybe I'm missing the point, but the guy wants to know how to do something like that, not to get infos from those sites.
Maybe this will be helpful: <html> <head> <script type="text/javascript" src="includes/js/jquery.js"></script> <script type="text/javascript"> function getUpdates() { $("#content").load("http://url-to-php-file", '', callback); } function callback() { $("#content").show("slow"); setTimeout("getUpdates();", 2000); } $(document).ready(getUpdates); </script> </head> <body> <div id="content"> some content </div> </body> </html> Code (markup): and your php file should get updates from your friends.
u can retrieve latest data in data base SELECT name, table FROM row ORDER BY date DESC; Code (markup): put a new row about date