Truly
-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Truly
-
-
When I decided to learn php I picked a random project to keep me interested. I decided to make an IRC like chat program using primarily php. Im now at the point where I have to deal with refreshing the window to update the text and as I see it I have two options. I wanted to see which one you experts thought I should do or if you have a better way.
Method 1: Divide the page into frames and use the meta refresh command in the header to refresh the frame containing the text.Method 2: Put the mysql query in a countinous loop with a 5 second delay in between and print out any new lines.Although I was originally going to go with method 2 I think I am going to switch and do the first one instead. Any comments or suggestions? And I know the project is a little crazy and outdated but I just wanted something to practice on.Any help would be greatly appreciated!
Loop Vs Refresh
in PHP
Posted
Thanks for the advice! I will go with the meta refresh then since I am trying to keep everything php related and then maybe switch to AJAX down the road if I decide to keep the project going.Thanks again for the help!