Ok, i have a php chat i am coding 100% from scratch, i am ALMOST done, but i need to get this one LAST code working... the chat window (were the messages are displayed) is an iframe above a text box and submit button... Following? OK, well I have it post new messages to an HTML file in this format:
<b><font color=red>$username: </b></font><font>$message</font><br>
I want the iframe to post the latest message, but i dont want to use the conventional meta refresh... so i came up with this...
The PHP will check the filesize of the messages.html file....
Then it will loop a command that compares the filesize to what the filesize was when it first checked.... If it notices a change in filesize (because a message was saved to the file), it will grab the last line of the HTML file, and put it to a variable, then print "$that_variable'; and then loop to the begining of the file and start all over.... therfore, as soon as a message is sent, it should post.