Reply to include literal

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация