Jump to content

Archived

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

Ninjakreborn

include()

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]

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Is doing it that way going to help with a lot of the browser alignment issues as well, without me having to implement all those tons of hacks to try and get everything right in that wide array of browsers, and screen resolution.

Share this post


Link to post
Share on other sites
no. including files have nothing to do with the layout. the actual html output and css will define the layout. i say get it right in firefox then make fixes for ie.

Share this post


Link to post
Share on other sites
I know, the hack for ie, is working, but I have it off in opera, but I can't go any further on this, it's the wrong forum, thanks for all the help.

Share this post


Link to post
Share on other sites

×

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.