include literal
| From: | Jeremy Reynolds | Date: | Mon, 28 Mar 2005 20:36:10 +0000 |
| Subject: | include literal | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211711@lists.php.net to get a copy of this message | ||
What if I want to include some literal test into a PHP document that I don't want it to interpret as it loads. In particular, I am working with XML but for the example's sake I will say PHP. Example:
--
DocumentA.txt:
-----------
<?php echo 'something here'; ?>
-----------
Document B:
--------------
<?php
include('Document A');
?>
--------------
I would like the output of Document B to be:
<?php echo 'something here'; ?>
instead of something here.
--------------