Implode slows down file reading? [was: str_replace performance in large mailing script]
| From: | frederik feys | Date: | Wed, 27 Aug 2003 08:31:50 +0000 |
| Subject: | Implode slows down file reading? [was: str_replace performance in large mailing script] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-160878@lists.php.net to get a copy of this message | ||
Hi all,
I thought str_replace caused slow down of my mailing script, but it
seems to be this line of code:
$fd =
implode("",file("http://www.domain.org/store/min/Mailing_template.html")
);
I first put the mailing template in $fd (only once) and then replace
(str_replace) elements of it to individualize HTML emails.
Btw im using php version 4.0.6.
Are there better(faster) ways to read the contents of a file?
Thanks!
Fré