Hi,
I have used the following code to open a file
$fd=fopen("words.txt", "r");
$words = fread($fd, 1000000);
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 the $words
if ($FirstName=="$words")
{
echo "Bad";
}
But it doesn`t seem to want to work, anyone give me a pointer as to where I
am going wrong with this??
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]