I saw some html that displays the results of a PHP code just by adding {#name}
<html>
<body>
{#name}
</body>
</html>
How can i do that?
I have been looking around and I cant find anything that shows me how to do this. Thanks!
I saw some html that displays the results of a PHP code just by adding {#name}
<html>
<body>
{#name}
</body>
</html>
How can i do that?
I have been looking around and I cant find anything that shows me how to do this. Thanks!
What you saw was probably some sort of template system. If that is the case, the PHP script reads the template, and then replaces all instances of {#name} with the contents of the variable $name.
An example of one such template system would be Smarty.
<?=$name?>
where name is your php variable
short_tags be On in the PHP configuration.