file structure and php include statement
I created photo gallery page with php extension - yntour.php. I want to access the header.php file located in the includes folder by using php include satement. Header file has access to css files.
php include statement in yntour.php file
access css file within header.php
$page_title = "Yun Nan Tour Gallery";
when user browsed yntour.php page the navigation bar fomat is not correct.
the browser complained that global.css and navbar.css can't be found.
the file navbar.css controls navigation bar format is in css folder.
photo-gallery.css (is in css folder) controls the format for yntour.php page
I think I am confused with the file structure and don't know how to access specific file by using php include statement. Please take look at my code and file structure image to help me troubleshoot the problem. Thanks!
link to yntour.php page
link to corret navbar fomat
Link to file structure
Last edited by webdev077; 01-05-2008 at 08:30 PM.
what is @import!!!!!
<link rel="stylesheet" href="css/global.css" type="text/css">
<link rel="stylesheet" href="css/navbar.css" type="text/css">
Use an absolute path instead of a relative path. Either of these options should do the job:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)