Page 1 of 1
directory path
Posted: Mon Feb 11, 2008 12:59 am
by bkm_ho
img src="systems/<?=ACTIVE_SITE?>/templates/<?=SITE_TEMPLATE?>/img/index_05.jpg
can someone tell me where the jpg file should go using the above path?
what does ACTIVE_SITE and SITE_TEMPLATE actually mean?
Re: directory path
Posted: Mon Feb 11, 2008 1:07 am
by Benjamin
<?= is short for "<?php echo " and the two items you're questioning are constants.
Re: directory path
Posted: Mon Feb 11, 2008 1:10 am
by bkm_ho
thanks for your post devnet master, but i dont know anything about php.
is there anyway you can explain in laymen terms? much appreciated. thanks
Re: directory path
Posted: Mon Feb 11, 2008 1:17 am
by Benjamin
echo means display
A constant is defined someplace else in the script. It can be set once and cannot be changed. The code that sets it would look like:
So the browser would receive something like:
Code: Select all
img src="systems/images/templates/default_template/img/index_05.jpg
You can view the source of the page using your browser to get the actual values, or search the code for the define statements.
Re: directory path
Posted: Mon Feb 11, 2008 1:19 am
by bkm_ho
you're a star! million thanks!