View Single Post
Old 07-01-2009, 07:14 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,324
Thanks: 5
Salathe is on a distinguished road
Default

strpos will only act on strings, so your code is effectively looking for the username in the string user_list.txt and not in the contents of the file! You'll need to get the contents of the file (perhaps with the file_get_contents function) and then look for the username in those contents.
Salathe is offline  
Reply With Quote