phrozenflame Posted January 1, 2007 Share Posted January 1, 2007 I have been a long time user with using Dynamic SSI Iframes, but I am looking for an easier way to make a layout work. How can I make a layout with ease without having todo php includes? I want it to function like an iframe, but not actually be one Link to comment https://forums.phpfreaks.com/topic/32447-solved-php-layout/ Share on other sites More sharing options...
onlyican Posted January 1, 2007 Share Posted January 1, 2007 Without includes, and no frames, not even iframes?Personally, I do the followingAnything above the content area, that is the same on each page (or a little bit dynamic) I add in inc_header.phpAnything below the content, I add in inc_footer.phpIncluding the Div for contentSO my layout is something like this[b]inc_header.php[/b][code]<html><head><title><?=$page_title; ?></title></head><body><div id='header'></div><div id='Links'><a href='/'>Home</a></div><div id='content'>[/code][b]inc_footer.php[/b][code]</div><div id='footer'>Copyright to me</div></body></html>[/code][b]Any Page[/b][code]<?php$page_title = "Page Name";require("inc_header.php");?>This is my website<?phprequire("inc_footer.php");[/code] Link to comment https://forums.phpfreaks.com/topic/32447-solved-php-layout/#findComment-150768 Share on other sites More sharing options...
phrozenflame Posted January 1, 2007 Author Share Posted January 1, 2007 Thanks it helps Link to comment https://forums.phpfreaks.com/topic/32447-solved-php-layout/#findComment-150773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.