Organizational Research By

Surprising Reserch Topic

Question:how to convert text to php or use php in .tpl files


 

how to convert text to php or use php in .tpl files?
 
i have this php file
 
$a = "";
 
?>
is there eny way to run ?
 
or in .tpl write php code like 
 
 
without smarty

asked Sep 13, 2013 in PHP by anonymous
edited Sep 12, 2013
0 votes
15 views



Related Hot Questions

2 Answers

0 votes

 

Use single quotes:
 
$a = '';
Content in single quotes is mostly non-parsed and is outputted as-is.
 
Edit then if you want to execute $a you would use http://www.php.net/manual/en/function.eval.php:
 
eval($a);
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes

 

Use single quotes:
 
$a = '';
Content in single quotes is mostly non-parsed and is outputted as-is.
 
Edit then if you want to execute $a you would use http://www.php.net/manual/en/function.eval.php:
 
eval($a);
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...