taking my first steps in PHP, I tried to create a website that support 2 languages. The pages of the english version are located at the root of the domain (just like any other site), while I created a subfolder "/NL" for the dutch version of the site.
I then created to headers (header_nl and header_en) and placed them in a folder "includes". So my site looks something like this;
My header includes both have the <head> portion etc included in them, and so reference to the CSS folder for markup. My problem is that I can’t get the NL portion of the site to link correctly to my CSS files! I have no idea what I am doing wrong at this point. I am used to link to absolute paths using "../somefolder/somefile.css", but that does not work in this case (using ../css/style.css in my header_nl).
can someone point out where this goes wrong, PHP-wise? Or maybe point me in the direction of a good tutorial on this? I have looked through the forums, and googled (/BING’ed if you’re a google-hater ;) ) on absolute PHP path tutorials, but to no avail thushar.
It turned out to be much simpler I gues…Am I right in assuming that any file that is referenced to beginning with a "/" is approached from the root directory, while any file that is in the form of, for example "images/some/file.php" is a relative path, depending on the current directory?
I have put up some files on a temp site; you can go here if you’re interested in seeing what I’ve made of it.
(that are undoubtedly some typo’s in there, but bare with me) I have uploaded the bare essentials; CSS file and just one image to see if the link is correct. So if you’re thinking the site looks incredibly ugly; you’re right! ;)