Quick PHP question
Quick PHP question
Out of context: Reply #17
- Started
- Last post
- 25 Responses
- surface0
agree with acescence.. you can also try setting a $root variable in your docType or db.php (whatever file is included throughout ALL your pages) and set the variable as the server root's URL.
it's a similar move that acescence went with but the single variable can be used for everything.. ex:
<img src="<?php echo $root; ?>/images/image.gif'>
<a href="<?php echo $root; ?>/../..">