I use a variable to set relative links in include files:
eg:
$var = "../../" sets a required relative prefix for [filename] as in: <img src="<?= $var ?>image.gif">
but:
$var = " fails to find the file, presumably because of the // being interpreted as a remark
However, I can't escape these (http:\/\/website.com) because they then all come through as characters.
What should the content of my variable's absolute reference be?
eg:
$var = "../../" sets a required relative prefix for [filename] as in: <img src="<?= $var ?>image.gif">
but:
$var = " fails to find the file, presumably because of the // being interpreted as a remark
However, I can't escape these (http:\/\/website.com) because they then all come through as characters.
What should the content of my variable's absolute reference be?