Re: Empty delimiter error - ??
| From: | Michael Virnstein | Date: | Mon, 15 Apr 2002 10:48:31 +0000 |
| Subject: | Re: Empty delimiter error - ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92983@lists.php.net to get a copy of this message | ||
this means in your case, that $email is an empty string
"Rich Pinder" <rpinder@usc.edu> schrieb im Newsbeitrag
news:3CB86ABC.C851BDBA@usc.edu...
> I'm totally unfamiliar with php, and making some slight modificiations
> to Chris Heilmann's nice v 1.1 Newsleterscript.
>
> What exactly is meant by an empty delimiter? This code works just fine,
> but I get the following error:
>
> Warning: Empty delimiter in /home/sites/site56/web/trailcrew.php on line
> 63
>
>
>
> # Put the entries into the array lines
> $lines = explode("%",$content);
> for ($key=1;$key<sizeof($lines);$key++){
> # when the email is not in the list, add the old entries
> if (!stristr($lines[$key], $email)) { <----
> offending line - line 63
> $out .= "%".$lines[$key];
> }
> # when it's already in the list, set found
> else {
> $found=1;
> }
> }
>
>
> Thanks
> Rich Pinder
>
>