RE: Re[2]: [PHP] Searching for text in a file

2001-09-10 Thread Kelly Barrett
Richard, I just put together a script using that code exactly, and it worked. All I can say is make sure that what you are searching for is actually in the file you are searching. Remember that the string you are searching for needs to match the entire contents of the line, not just a substring

Re[2]: [PHP] Searching for text in a file

2001-09-10 Thread Richard Kurth
Hello Kelly, Yes I noticed the variable after I sent the message Now I have it like this. But If I add something that is in the file it does not find it. $fd = fopen ("virtusertable", "r"); $variable= "[EMAIL PROTECTED]"; $count = 1; while(feof($fd) == false) { $line_text = fgets(