This may be more of an HTML question, but here goes.
I've been building PHP websites for a while, and I've always built my user interface in a file called ui.php, and I include ui.php from my pages. This works fine, unless I include it from a directory within my root directory, like for example, /admin. The images and css calls are all off because it is trying to look for them in its current directory.
Is there any way I can set the image and css links to go to the root directory and go from there, so that my images will display from no matter what directory I include ui.php from?
Thanks!
I've been building PHP websites for a while, and I've always built my user interface in a file called ui.php, and I include ui.php from my pages. This works fine, unless I include it from a directory within my root directory, like for example, /admin. The images and css calls are all off because it is trying to look for them in its current directory.
Is there any way I can set the image and css links to go to the root directory and go from there, so that my images will display from no matter what directory I include ui.php from?
Thanks!