Visits counter without database with PHP
问题 I have a single webpage and i would like to track how many times it's visited without using a database. I thought about XML, updating a file every time a user visits the page: <?xml version='1.0' encoding='utf-8'?> <counter>8</counter> Then i thought it could have been a better idea to declare a PHP counter in a separate file and then update it everytime a user visits the page. counter.php <?php $counter = 0; ?> update_counter.php: <?php include "counter.php"; $counter += 1; $var = "<?php\n\t