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

2001-09-10 Thread Kelly Barrett
Richard, Then you need to use something like "explode()" to get only the part you want. e.g. If the file is delimited by spaces, then have something like this: $fd = fopen ("virtusertable", "r"); $variable= "[EMAIL PROTECTED]"; $count = 1; while(feof($fd) == false) { $line_text = fgets(

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

2001-09-10 Thread Richard Kurth
Hello Kelly, Your right the script does work but my problem is this the file I am searching looks like this below. And if I search on [EMAIL PROTECTED] alone it does not find it but if I search on [EMAIL PROTECTED] yourns it finds it. I need it to find just the email address not the stuff after