How to insert PHP script into HTML the best way?
- by Mike
Hello,
I have to insert full path to every single image/css file of my website, because of url_rewriting and I'm looking for the most officiant way to do it.
Of course I could do:
<img src='<?php echo $full_path; ?>/images/theImg.jpg' alt='alternative text' />
But somewhere I saw people doing it like this, or something:
<img src='{full_path}/images/theImg.jpg' />
Now do you know how the second example is possible, or is it just part of some framework and can't be used in normal document?
Thanks for answers,
Mike