19.11.2016, 19:19
Hey.
Unfortunately, I couldn't think of a suitable title for this problem.
The problem I'm having is putting files in folders, for example, I have a few admin files (which are coded in PHP), and they're in their own admin folder, and I also have a few other php files which are located in a folder called server. The dilemma I'm having is that the stylesheet won't show on some pages.
I use two php files which are called header.php & footer.php so I don't have to edit all the files one by one, I can just edit the header.php or footer.php, so the stylesheet is being fetched from the header.php like this;
but that is also in it's own folder called stylesheets.
How can I make it so it loads correctly?
Unfortunately, I couldn't think of a suitable title for this problem.
The problem I'm having is putting files in folders, for example, I have a few admin files (which are coded in PHP), and they're in their own admin folder, and I also have a few other php files which are located in a folder called server. The dilemma I'm having is that the stylesheet won't show on some pages.
I use two php files which are called header.php & footer.php so I don't have to edit all the files one by one, I can just edit the header.php or footer.php, so the stylesheet is being fetched from the header.php like this;
Код:
<link rel="stylesheet" type="text/css" href=<?php __DIR__ ?> "/sfse/home/stylesheets/style.css" /> <link rel="stylesheet" type="text/css" media="screen" href=<?php __DIR__ ?> "/sfse/home/stylesheets/menu_css.css" />
How can I make it so it loads correctly?