Hi All,
I just posted here about writing to a text file and resolved it, but now I have a new issue.
I am trying to search the text file and match a users IP, from my get IP code and I tried...
$test = ereg($ip, $logread, $regs);
And that will find a match, but then I must figure out what position in the array ($regs[1]) and that will not work as far as I can see.
Then I tried...
$test = preg_match($ip, $logread, $regs);
and I will have the same results.
What I am trying to do is see if the IP is already in the text file, then assign that to $reg and compare it to $ip.
Does someone see a better way or something I missed?
thanks again,
Don