strpos is dangerous in that context! suppose the following:
Someone attempts to sign up with the username "ack". In the /etc/passwd, there exists the following user:
Code:
jack:*:..... remainder of line
strpos would match on this, but there is no user ack. the following regular expression would be more suited to finding the matches:
/^$username:/, though you would want to make sure username contains no colons first (not that they should be there in a username anyway)