When I define a constant, like:
define("imageUrl","http://url/images/");
How can I access it from within an echo(" "); statement?
For example, i would like to be able to do:
echo("<img src=\"imageUrl/$filename.jpg\">");
but it just prints out imageUrl instead of the constant's value.
if I do :
$imageUrl = imageUrl;
I can then use $imageUrl in the echo and it works as expected. I just dont wanna have to do this everytime I want to use a constant, it seems awfully redundant.
Thanks!