And by best I mean most efficient, right now placing this on my post.php file is the only thing I can think of:
$query = mysql_query(\" UPDATE posts SET view
You can also check these lines of code. I think it will be helpful because you can achieve your goal with just a text file. It does not require any database activity.