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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.