Re: [PHP] Verifying against a file

2001-01-21 Thread Richard Lynch
> $fd=fopen("words.txt", "r"); Check that $fd is not 0. > $words = fread($fd, 100); > > I then convert a string which is passed in a form to this script > > $FirstName=strtolower("$FirstName"); > > And now I check to see if the lowercase version of $FirstName contains any of > the words from

[PHP] Verifying against a file

2001-01-20 Thread Website4S
Hi, I have used the following code to open a file $fd=fopen("words.txt", "r"); $words = fread($fd, 100); I then convert a string which is passed in a form to this script $FirstName=strtolower("$FirstName"); And now I check to see if the lowercase version of $FirstName contains any of the