The text file contains a link, |, and a number
eg
http://www.somesite.com|1
http://www.othersite.com|1
it is basically a log file, What I need to do is be able to update this and read it...
So if someone clicks on myscript.php?http://www.somesite.com it will be incremented by 1.
Can someone please get me started on how to do this.
Another thing that I want on a seperate php script is to read it for my admin page.
function read_file() {
$fp=fopen($filename, "r");
etc....
}
function update_file() {
$fp=fopen($filename, "a");
etc....
}
this is all i could figure out so far, can anyone else fill in the rest...thanx!