Jump to content


Photo

include()


  • Please log in to reply
4 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 13 May 2006 - 02:31 AM

SOLVED-problem completely solved thanks.

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 emehrkay

emehrkay
  • Staff Alumni
  • Advanced Member
  • 1,214 posts

Posted 13 May 2006 - 02:47 AM

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

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 13 May 2006 - 02:48 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 emehrkay

emehrkay
  • Staff Alumni
  • Advanced Member
  • 1,214 posts

Posted 13 May 2006 - 02:55 AM

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.

#5 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 13 May 2006 - 02:58 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users