Commit graph

15 commits

Author SHA1 Message Date
2de8e98417 Merge pull request 'feature/nodejs_implementation' (#1) from zeyus/hit-counter:feature/nodejs_implementation into main
Reviewed-on: revengeday/hit-counter#1
2024-11-07 15:30:00 +00:00
a08c8616d1
Readability. 2024-11-07 16:07:13 +01:00
5d1d67836c
remove no longer relevaant attribution. 2024-11-07 16:02:15 +01:00
a2e698d2f6
Made config first constructor arg, no longer necessary to pass any arguments. 2024-11-07 15:59:14 +01:00
51cd15aa4f
Comments! 2024-11-07 14:03:03 +01:00
0c744f0883
Made it a bit nicer, fixed a bug with the initial hit count. 2024-11-07 13:35:00 +01:00
b6f83af72e PHPN'T 2024-11-07 11:21:25 +00:00
654eaa5c59
README 2024-11-06 17:33:17 +01:00
b08f259447
Done and done. 2024-11-06 17:21:05 +01:00
477301157e
WIP, pretty much there with serving image, just some layout stuff. 2024-11-03 21:58:43 +01:00
e3e483e40b
dont need the sqlite db. 2024-11-03 17:34:33 +01:00
dc932eded7
almost done, overengineered hit counter 2024-11-03 17:33:05 +01:00
2eda6e11a1 Add file locking to counter update process to ensure data integrity
- Implement file locking with `flock()` to synchronize access to the counter file.
- Use `ftruncate()` and `rewind()` to ensure correct file writes after incrementing the counter.
- Add detailed inline comments explaining each step and functionality in the script for better maintainability and clarity.
2024-11-03 13:11:44 +00:00
0d821e9b9d Add script.php 2024-07-06 16:13:13 +00:00
388a4dfeef Add README.md 2024-07-06 16:09:22 +00:00