Php posting

guys, i need some kind of tutorial of how to make a sort of php script that allows me to write into a text file, and it gets embedded in a webpage, like a news poster thing…