note 61941 deleted from language.basic-syntax by sp
| From: | sp@php.net | Date: | Wed, 15 Feb 2006 17:32:11 +0000 |
| Subject: | note 61941 deleted from language.basic-syntax by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103779@lists.php.net to get a copy of this message | ||
Note Submitter: Chris
Reason: bad code
----
This may be terribly inefficient, but it is the only way I have discovered of echoing
php-parser-breaking text without modifying/escaping the orginal text.
echo(file_get_contents('filename.txt'));
where filename.txt is a text file containing the php-parser-breaking text.
This may be unacceptable for very large strings, but for medium sizes it works at bink-of-an-eye
speeds (tested with a 50k text file)
FYI - My attempts at the "heredocs" and "include" solutions suggested earlier in
the comments did not work. PHP tripped over each occurance of "?>". This might be a
parser version issue.