I’ve only been using .php-script since today, so I very much hope you’ll forgive me for not immediately grasping the way it all works.
I’ve set up a website capable of using .php-script and it all checks out, it works.
However, I find it very confusing as to which functions to use to read and write variables, any guide I check seem to use different ones and are written differently, copy pasting it often doesn’t work.
So could somebody please show and explain to me the basics of writing and reading a text file with multiple saved variables? Let’s imagine a fictional site that whenever somebody loads a certain page, variable X gets increased by 1. I think I’ll be able to pick it up from there.
Thanks in advance