Re: HTML file to a $var: Pls Help
| From: | Marco Tabini | Date: | Fri, 25 Oct 2002 23:58:12 +0000 |
| Subject: | Re: HTML file to a $var: Pls Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121500@lists.php.net to get a copy of this message | ||
Try this:
implode ('', file ($filename));
On Fri, 2002-10-25 at 19:26, Shane wrote:
> Any way to plug an entire HTML file into a variable?
>
> I looked into file_get_contents() but that was CVS format only.
>
> I need to take a simple HTML file and pass it as a string variable to a mail function.
>
> Any help?
> Thanks crew.
>
> - NorthBayShane
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>