I hope you're not doing what you say you are doing. Where are you storing the posted information? Not in the .php file itself???
You might be able to get close to what you want by writing to some other log file, but you're going to have all kinds of problems with multiple updates occuring at the same time. Databases have built-in capabilities to handle inserts, updates, deletes, etc. That's why they were invented.