Jeremy Reynolds wrote: > 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:
FYI, when you have -- on a line by itself most newsreaders think that
the text that follows is your signature. So, please don't put that into
a message unless your signature will follow.
Now to answer your question:
<?php
/** DocumentB.php */
$text = file_get_contents('DocumentA.php');
echo $text;
?>
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature

