It's a bit difficult to explain _
I'm using a database table to store chat messages, and the php script accesses to the table, reads the messages and prints everything to the web page.
Using <meta http-equiv="Refresh" content="xx; URL=xxx.php"> I can refresh the page to load new messages, but the page reloads completely, blinking for a moment... I think it's possibile to append new messages at the end of the page without full reloading the page...