I got an idea and i want to know if its possible!
i got a php file with ajax script that calling other php file to display it in a div ,the file size is 7 KB ,in this file there is a code that count posts and code that display the posts !
what i was thinking is instead of refreshing the file that is 7 KB every 4 second ,i want to make a little file of the counter ,that it can be 700 bytes ,and if some thing as changed it will excute the 7 KB file and display the new posts ,so if i can do that ,im saveing 90 precent of band width to the server!!!
can some help me do that?
thanx!!!
i got a php file with ajax script that calling other php file to display it in a div ,the file size is 7 KB ,in this file there is a code that count posts and code that display the posts !
what i was thinking is instead of refreshing the file that is 7 KB every 4 second ,i want to make a little file of the counter ,that it can be 700 bytes ,and if some thing as changed it will excute the 7 KB file and display the new posts ,so if i can do that ,im saveing 90 precent of band width to the server!!!
can some help me do that?
thanx!!!
Comment