Hi,
Can anyone help me that I am creating a website and using top.php and bottom.php and the top and bottom of my website. Top and Bottom is my website design code etc and any other file i create will have
<?
include("top.html");
?>
New File Contents
<?
include("bottom.html");
?>Like so.
My problem is however, when i create a new folder, for example "/teams" and create files in there and add the include top and bottom.
I use ../top.php and ../bottom.php and it displays the website, but without the images.
Im not sure what to do or if there is an easier way of doing this?
Thanks in advanced.
Offline
Your Problem Defination Isn't so clear. And may be you are not create any folder that contain the image or copy of the image in your required folder for show in your web page. one thing also may be happened you are not show the write path of the image properly in top.php or bottom.php files.
If you are face problem yet you can write your problem clearly may be I help you.
Thanks..
Rezaul
Offline


If you view the source of the poages with problem, you will understand. You would have given the path to images as relative path from the root directory. Something like img src = "images/logo.gif"
Now when the same get included from say yoursite/team/index.php, the browser will interpret the path as team/images/logo.gif - ie, relative to the current directory - which is wrong.
So you have to code the html so that it works from anywhere img src = "/images/logo.gif" will work from any directory, since it start with a "/", meaning the root dir.
The bottomline is, to debug any HTML issue, view the HTML source of the page in question. That is the way to go. Smae to javascript debugging too.
HTH
Offline