sjcoder07
January 5th, 2008, 08:24 PM
Hello everyone:
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 the css files.
php include statement in yntour.php file
$page_title = "Yun Nan Tour Gallery";
include('../includes/header.php');
access css file within header.php
<style type="text/css">
@import url(css/global.css);
@import url(css/navbar.css);
</style>
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 (http://www.cuj06.com/home_page/travel/yntour.php)
link to corret navbar fomat (http://www.cuj06.com/home_page/home_page_layout.php)
Link to file structure (http://www.cuj06.com/home_page/hompagefilestructure.gif)
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 the css files.
php include statement in yntour.php file
$page_title = "Yun Nan Tour Gallery";
include('../includes/header.php');
access css file within header.php
<style type="text/css">
@import url(css/global.css);
@import url(css/navbar.css);
</style>
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 (http://www.cuj06.com/home_page/travel/yntour.php)
link to corret navbar fomat (http://www.cuj06.com/home_page/home_page_layout.php)
Link to file structure (http://www.cuj06.com/home_page/hompagefilestructure.gif)