How to insert PHP script into HTML the best way?
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-06-06T16:35:20Z
Indexed on
2010/06/06
16:42 UTC
Read the original article
Hit count: 379
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
© Stack Overflow or respective owner