I want to some Ideas about how can we create chat application using PHP ???
Because you asked so nicely…
Create an input form/display window,
create and save the text to a file/database
read the file/database back to the display window,
have a function that strips a line from the file when adding a new line.
IE: once the text file has 10 lines, remove the oldest line when adding the latest line (stops the screen displaying too many lines.
It’s not really too difficult once you decide how your going to do it, write down a step by step plan what you want to achieve.
Happy coding ;D