Posts: 115
Location: Kathmandu,Nepal
|
I am building a new site which uses php includes in the home page. In the other pages which are in some other subfolders, I want to use the same navigation and header includes. But if I use the same includes in the index.php and other files in other folders, the images, animation etc. will not work.
For eg., the image topleft is the logo. It is in the image sfolder. So in the logo.php file the code will be <img src="images/topleft.gif"> which will work for the home page well. But in other pages, the code will simply not worl because hte folder images is not in the folder where the files are.
Could someone please help me out with this. I think I had read something about $_server['http_host'] a long time age which was related to this.
|