Hi all, very glad to find you here. I have what may be a silly question, but all the same, I can not for the life of me solve this issue.
It is going to be a little tricky to explain I think, but I will try. I am brand new to PHP, quite handy with html/css.
So what I want to do:
I have my index.php, from there I have a link to a page (educational.php), which contains all of my educational links, one of which is a dictionary with separate pages for each letter.
I want my “path” for the letter “A” to be:
alexrowsell.com/educational/dictionary/a.php
but all of my includes (header, advertising, footer) break as soon as I try to build the hierarchy. They broke as soon as I tried to build the first level down (ie: alexrowsell.com/educational/dictionary.php).
This domain is my test-bed. In order to make everything work, I put every file in the root, with a “scripts” folder containing the files I use in my includes, and a “styles” folder containing my css. With everything in the root it works, but I don’t want it to be alexrowsell.com/a.php, nor alexrowsell.com/dictionary.php, but instead I want a sensible path.
In my header.php include is my stylesheet link, my doctype etc etc, and my footer.php closes my container div and body. I really don’t wanna put all of the redundant information on every page…
Am I reaching? Is it do-able? Please let me know if you need more info or anything else.