Jump to content

include()


Ninjakreborn

Recommended Posts

[b]SOLVED-problem completely solved thanks.[/b]

I have a question, if you are seeing my posts occasionally then you know that I am trying to lay my site out in Xhtml/css. I have heard of people creating.
footer.php
header.php
content.php
then wiring them together with
<?php
include(header.php)
?>
<?php
include(content.php)
?>
<php
include(footer.php)
?>
not 100% like they do it but you get the picture. Is this one of those alternatives to trying to make everything browser compatible, what is the purpose of this, I have seen this done a lot, and some times not done alot, I have seen different ways in different sites, but is this a good habit to get into, and what's the point.[b][/b]
Link to comment
https://forums.phpfreaks.com/topic/9577-include/
Share on other sites

id say that the purpose is to easily change one file to make site-wide changes. i want to add a copyright to the footer, edit footer.php. i want to remove a link in the header - header.php etc. what is contained in those files, div's links and their properties, is what determines if you'll pass validation
Link to comment
https://forums.phpfreaks.com/topic/9577-include/#findComment-35369
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.