include literal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux