Re: HOWTO read PHP source code into a textarea
| From: | John Holmes | Date: | Sun, 27 Feb 2005 05:10:52 +0000 |
| Subject: | Re: HOWTO read PHP source code into a textarea | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209526@lists.php.net to get a copy of this message | ||
Tim Burgan wrote:
I was trying to use file(), with some problems.. thank you for your suggestions to use file_get_contents(). Perfect! You're all right, it works really well.I hope you didn't miss the mention of htmlentities(), also. If you did, then you'll figure it out the first time you try to load a file with the string "</textarea>" in it, I guess. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com