Posted by Jeremy Reynolds on 03/28/05 23:36
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.
--------------
[Back to original message]
|