Re: Loading a File into Variable - How??
| From: | Analysis & Solutions | Date: | Thu, 18 Jul 2002 22:01:04 +0000 |
| Subject: | Re: Loading a File into Variable - How?? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108345@lists.php.net to get a copy of this message | ||
On Thu, Jul 18, 2002 at 04:28:57PM -0400, Monty wrote:
> > Look 4 implode() in the function list
>
> Implode isn't really what I need, I just want to load an entire file into a
> single string variable.
Yes, it IS what you need. Plus, to work around your other problems
mentioned in later posts...
$string = implode('', file('filename') );
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409