Saturday, June 25, 2011

PHP require on website not working correctly

PHP require on website not working correctly: "
Hi, i followed alot of tutorials on how to set up php on my website so i can update multiple pages at once with the whole PHP require business but as you can see on my website [ www.uniteapex.com ] it literally shows this:



--------------------


<html>

<head><title>Lost in the World</title>



<link rel="stylesheet" href="/style.css" type="text/css">

</head><body>



<div id="banner">



<!-- Site Title -->



<div id="sitename">

Lost in the World

</div>



<div id="side">



<!-- Navigation -->



<?php require("/includes/navigation.html"); ?>



<!-- End -->





</div>





<div id="content">



<!-- Content -->



<?php require("/includes/content.html"); ?>



<!-- End -->



</div>



</div>

</div>

</body>

</html>



--------------------


I've probably just not understood the instructions properly, i currently have an index file, php files for the content that needs to be updated [ navigation and content ] and a CSS file. I read somewhere that if you have CSS file you can just update the CSS file but i don't know which bits to change, i'm experimented myself and not much luck.



If anyone has msn i can add you on there and send you all the files, index, navigation, content, css and images and see if you can get it to work. I'm using a custom layout so i'm trying to modify it.
"

No comments:

Post a Comment

Thank's!