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?
directory path
Moderator: General Moderators
Re: directory path
<?= is short for "<?php echo " and the two items you're questioning are constants.
Re: directory path
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
is there anyway you can explain in laymen terms? much appreciated. thanks
Re: directory path
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:
You can view the source of the page using your browser to get the actual values, or search the code for the define statements.
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:
Code: Select all
define('ACTIVE_SITE', 'images')Code: Select all
img src="systems/images/templates/default_template/img/index_05.jpg
Re: directory path
you're a star! million thanks!