File not found error
Posted: Mon Oct 01, 2007 11:31 am
feyd | Please use
Heres my header.php, basically its a menu
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi
I'm trying to test out my php pages that i have created for a template. Here's my situation: Every page that I've created I copy the below code and put infos that I needed for a particular page between the <?php require('Template/header.php'); ?> and
<?php require('Template/footer.php'); ?> After all the pages are created, when I click on one link and it shows the page info, however when I click on the next link, it gives me "Template/Template/Contact.php was not found on this server" Error. If I go back to index page and then click on the contact page, it will show the content. Anyone knows the reason why im getting this error ? or is it because i use require function too much ?
Here's my Index.phpCode: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Testing Page</title>
<link href="Template/style.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<?php require('Template/header.php'); ?>
<?php require('Template/footer.php'); ?>
</body>
</html>Code: Select all
div id="page_menu">
<ul id="menu">
<li><a href="http://localhost/Cartweaver3PHP/index1.php">Home
</a></li>
<li><a href="Template/Bio.php">Bio
</a></li>
<li><a href="Template/Store.php">Our Store
</a></li>
<li><a href="Template/Gallery.php">Gallery
</a></li>
<li><a href="Template/Contact.php">Contact Us
</a></li>
</ul>
</div>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]