I need help constructing a text file database.
The database is going to look something like this:
10.0.0.1#1#10#1.0#1263003237
10.0.0.2#0#3#1.0#1263003237
50.283.192.19#0#0#1.0#1263003237
I think you get my point
Anyways, lets say I got a file called server.php
Then for example someone access it with the post server.php?ip=10.0.0.1&pw=1&pl=8&v=1.0
Now the script should go into our database (lets call it serverlist.txt).
First it should check each row to see if the last variable (timestamp) haven't surpassed etc. 10 min, otherwise it should remove the current row.
Next it should check if the ip variable it's providing, already exists in the db, and if so it should update it, otherwise it should just create a new.
So it's basically a server list based on a txt file and a php script to update it
I don't have that much knowledge in PHP, so if anyone is neat with it and could make me at least some of the code, I would be really happy
Thanks alot!