Use <?php as plain text in a .php file? -


i have this.php:

<?php  //some code  ?> here goes text plain text. whenever use <?php in .php file precedes php code parsed , interpreted php. 

as may have guessed, file gives error , refuses run correctly. don't want use html entities result file isn't used html. options other storing string <?php in variable?

generate programatically using string literal.

<?php echo "<?php"; ?> 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -