PHP Includes folder, now working in sub folder
I have a little question for programmers about PHP includes folder.
I am new to using PHP includes thingy, so what happened was; I setup my website using PHP includes folder and in that folder, I placed few banners and footer navigation files be called on every page.
But when I added a directory/folder on my domain, things started to get all messed up. The directory/folder I made is not fetching any footer and banners I have placed in the root includes folder. So I pasted the same includes folder in every new directory/folder I made for my site. But I am sure this is not the way it works.
Simple example of what I did:
- PHP includes placed on the root domain: www.mydomain.com - Things are working fine here and everything from the includes is showing on web pages.
- When I made a folder on my domain: www.mydomain.com/folder/ - HTML/PHP files in this new folder are not showing/fetching includes files.
Please tell me how this can be used professionally.
Also, is there any possibility that I can use a WEB URL in new folders to show includes folder data; like: "www.mydomain.com/includes/"
-
patey88 -
Thanks - 1 reply
{{ DiscussionBoard.errors[5085420].message }}-
biznics -
Thanks - 1 reply
{{ DiscussionBoard.errors[5085472].message }}-
Brandon Tanner -
[ 1 ] Thanks
Signature{{ DiscussionBoard.errors[5087994].message }} -
-
-