split/join error
| From: | mailing_list at gmx dot at | Date: | Wed, 19 Dec 2001 19:47:25 +0000 |
| Subject: | split/join error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78241@lists.php.net to get a copy of this message | ||
Hi,
I have saved an email as text-file, and want to get header and body out of
the file!
(header and body are seperated by the first empty line!)
so I do:
list($header,$body)=split("\n\n",join('',file($FILE)),2);
then I need the body's lines as array:
$body=split("\n",$body);
but this line gives me a timeout for large files!!!
(I also tried $x=split("\n",$body);$body=$x;)
But I don't understand why!!!
because file($FILE) doesn't return an error, although there are more
array-elements created as with the split of $body!
any ideas???
thanks
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net