B
B
Banny_Boom2015-06-06 07:17:04
PHP
Banny_Boom, 2015-06-06 07:17:04

Why when outputting “< ?php? >" via echo, are the tags commented out?

This is all just an example, in fact, when I replace {% and %} with < ?php ? > outputs
Code:

echo '<?php if(2==2): ?> <div> LOL </div> <?php endif; ?>';

output:
fI91j904jDE.jpg
How to fix (Should work without eval ) ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2015-06-06
@xmoonlight

1. get rid of the template,
or
2. write additional tags for the template engine to recognize the insertion of pure php code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question