Hi

If $line is == '', you will get an error.  Try @split('|', $line), or add a
test for empty lines like if (empty($line)) continue;

if you var_dump($line);, you'll probably see that there is an empty line in
members.txt

Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org

"Richard Kurth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Way does this give me this error
>
> Warning: REG_EMPTY: in emailusers.php on line 52
>
>
> $lines = file("data/members.txt");
> foreach($lines as $line){
> list ($logged_email,$logged_title,$logged_first_name,$logged_last_name) =
split("|", $line);
> if ($logged_email==$email) {print "<center>This email has already been
registered.</center>";
> exit;}
> }
>
>
> this is what is in the members.txt file
>
> [EMAIL PROTECTED]|Mr.|Richard|Kurth|1046828998|03/04/2003
>
> --
> Best regards,
>  Richard                          mailto:[EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to