hike!
<joke>
yes, i'm also one of those guys that rather use textfiles that mysql for storing data.
</joke>
no, i just need to know how to handle some texfiles, since i don't need mysql for this stuff, since all data in the files are numbers and url, so no need to secure them.
1)
i need to know how i can go to the last entry of a textfile, read that number, add '1' and write the new number under the old one.
2)
now, the script should read a string from the url ( ie: "id=12" ) and now should open a textfile "partnercount.txt" go to line 12 ( the partner-id number), read the number in dat line, add '1'.
thats it. i know that this are lame questions, but i'm new to php, and this is the newbie section, so pleeeeease help me.