PDA

View Full Version : logo image not shown: PHP include relative root path?



web88js
04 Oct 2007, 05:36 PM
Hello Everyone:

I am trying to use php include function to include header and footer (both are php files) on my home page (http://www.cuj06.com/home_page/home_page_layout.php) .

For some reason the image in header file did not shown on the home page.
I think the problem maybe caused by the file structure. Please see the image below for the file structure for this project.

file structure image (http://cuj06.com/home_page/homepage-filestructure.gif)

in hompage_layout.php file I called header.php file in includes folder.

I included logo image in global.css file as follows:


div#hdr_logoimg
{
position: relative;
background: url(../images/home_page_logo1.jpg);
width: 650px;
height: 108px;
}


I could not figure out what the problem is. Please help me to trouble shoot the issue. I appreciate your help.

P.S. reference for correct display (http://cuj06.com/home_page_local/home_page_layout.php)

web88js
10/4/07