Hi! This file will not work for me. I have tried in several ways and I want it to print "Got word" if it find $word. ---- $filename = "test.xml"; $fp = fopen($filename, "r"); $string = fread($fp, filesize($filename)); $string = strip_tags($string); $refined_string = explode(" ", $string); if (in_array ($word, $refined_string)){ print "Got word"; } fclose ($fp); ------ If You know what is wrong I am very thankful for help. Regards Jan -- 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]