<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043365" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043365</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Quote:(sic )Once you have</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1287001</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;Quote:&lt;/div&gt;(sic )Once you have mastered the technique you can revisit this tutorial and move on to the next section.&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Very didatic the article.  So that I expected the sequel on the next section as mentioned.&lt;br /&gt;
This method goes well  with repetitive content pages.  However most sites have a landing page with a different layout than the linked pages. That  means I will have to create a 2nd &#039;includes&#039;  for the other pages.&lt;br /&gt;
On 2005 I took a too fast paced PHP maraton course ( 8 hours per day during 5 days ! ).&lt;br /&gt;
I remember the guy who was teaching showed us a way to modify sites with different layouts employing functions.   I haven´t learned too much of course , it was too fast.&lt;br /&gt;
I have tried to find a tutorial on this matter.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
 </description>
     <pubDate>Fri, 13 Sep 2013 19:38:31 +0000</pubDate>
 <dc:creator>Ron Wolpa</dc:creator>
 <guid isPermaLink="false">comment 1287001 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Many thanks for your reply,</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1273601</link>
    <description> &lt;p&gt;Many thanks for your reply, Megan. I have uploaded a quick example of the problem. Please go to &lt;a href=&quot;http://www.anokhi.co.uk/test/header.htm&quot; title=&quot;http://www.anokhi.co.uk/test/header.htm&quot; rel=&quot;nofollow&quot;&gt;http://www.anokhi.co.uk/test/header.htm&lt;/a&gt; and you will see the header and menu as it should appear. If you then go to &lt;a href=&quot;http://www.anokhi.co.uk/test/index&quot; title=&quot;http://www.anokhi.co.uk/test/index&quot; rel=&quot;nofollow&quot;&gt;http://www.anokhi.co.uk/test/index&lt;/a&gt;, you will be able to see the issue I mentioned.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Mar 2012 20:01:22 +0000</pubDate>
 <dc:creator>tonyrome</dc:creator>
 <guid isPermaLink="false">comment 1273601 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This:
&lt;?phpinclude(“header.ht</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1273536</link>
    <description> &lt;p&gt;This:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;“header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;htm”&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;has proper speech marks, instead of the &lt;code&gt;&amp;quot;&lt;/code&gt; characters (that are actually inch marks) everyone usually uses. So, yes, it was a problem with the original article. I&#039;ve fixed it now and thank you very much for pointing this out, hopefully not too many people were hurt by that!&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Feb 2012 15:36:00 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1273536 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>tonyrome wrote:Also, I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1273535</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;tonyrome&lt;/em&gt; wrote:&lt;/div&gt;Also, I noticed that using &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;“header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;htm”&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; doesn&#039;t work for me. I have to use &#039;header.htm&#039; rather than &quot;header.htm&quot;. Is this an error in the article or does it depend on the version of php being used?&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I really don&#039;t know about this. The &lt;a href=&quot;http://be.php.net/manual/en/function.include.php&quot;&gt;official documentation&lt;/a&gt; uses single quotes, but I&#039;ve used double quotes before without a problem ...&lt;/p&gt;
&lt;p&gt;Could you post a link to what you&#039;re working on? Then we can see what&#039;s gong on. If you haven&#039;t already, look for the developer tools that come with your browser. In Firefox you need the add-on &lt;a href=&quot;http://getfirebug.com/&quot;&gt;Firebug&lt;/a&gt;, which can tell you exactly where margins and padding are being applied, and lets you change the values in the browser.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Feb 2012 14:46:28 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1273535 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I followed the instructions</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1273528</link>
    <description> &lt;p&gt;I followed the instructions in the article above but I have a problem with the final result, which I hope someone can troubleshoot.&lt;/p&gt;
&lt;p&gt;I have an index.php file, referencing a header.htm. The header contains a logo, picture and drop-down menu. If the header.htm file is displayed alone, ie. &lt;a href=&quot;http://www.mydomain.com/header.htm&quot; title=&quot;www.mydomain.com/header.htm&quot; rel=&quot;nofollow&quot;&gt;www.mydomain.com/header.htm&lt;/a&gt;, it displays correctly. However, when displayed as part of the index.php file, ie. &lt;a href=&quot;http://www.mydomain.com/index&quot; title=&quot;www.mydomain.com/index&quot; rel=&quot;nofollow&quot;&gt;www.mydomain.com/index&lt;/a&gt;, the header.htm file drops approximately 21px, almost as though there&#039;s a top margin set. However, all the margins are set to 0.&lt;/p&gt;
&lt;p&gt;This causes a problem because the background of the page has a line running through the top (horizontally) and the header contains a continuation of the line. The lines are therefore not correctly aligned.&lt;/p&gt;
&lt;p&gt;Any ideas why this is happening and how to fix it?&lt;/p&gt;
&lt;p&gt;Also, I noticed that using &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;“header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;htm”&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; doesn&#039;t work for me. I have to use &#039;header.htm&#039; rather than &quot;header.htm&quot;. Is this an error in the article or does it depend on the version of php being used?&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Feb 2012 10:27:07 +0000</pubDate>
 <dc:creator>tonyrome</dc:creator>
 <guid isPermaLink="false">comment 1273528 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>hi
can anyone help me with</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1272134</link>
    <description> &lt;p&gt;hi&lt;br /&gt;
can anyone help me with this code?&lt;br /&gt;
i m unable to work this code online.&lt;/p&gt;
&lt;p&gt;index.php is like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$page_title &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;“Indiadiets&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;diets&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Blood type Diets&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Specific Blood Groups&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;”&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;“header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php”&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;-content &lt;/p&gt;
&lt;p&gt;and header.php is like this :&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$page_title&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;...............................&lt;/p&gt;
 </description>
     <pubDate>Fri, 13 Jan 2012 12:57:23 +0000</pubDate>
 <dc:creator>shruti_gupta</dc:creator>
 <guid isPermaLink="false">comment 1272134 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>wow, just tried it. Okay just</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1271513</link>
    <description> &lt;p&gt;wow, just tried it. Okay just did with one page, so the rest must be adjusted... Just Awesome. I&#039;m just a hobbyist and PHP is over my head really. But just following the simple steps and BOOM it worked! Thanks so much for this neat tutorial. What a delight being able to make the changes in just one include page and have it work on the whole site. Magic!!!&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Dec 2011 20:35:05 +0000</pubDate>
 <dc:creator>sherlizz</dc:creator>
 <guid isPermaLink="false">comment 1271513 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Indeed; regardless of what</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1245286</link>
    <description> &lt;p&gt;Indeed; regardless of what you use to simplify the work, I think it&#039;s a lot simpler for the server (and the dev) to focus on the content rather than worry about what they need to include for the whole page to appear correctly. As long as the content doesn&#039;t interfere with the layout it&#039;s included in, I don&#039;t think it should be a big issue the site is entirely viewed from one &#039;index.php&#039; file.&lt;/p&gt;
&lt;p&gt;For smaller or pseudo-dynamic sites, it&#039;s better to use the individual .php file per purpose approach, with included headers and footers as outlined in the article.&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Oct 2009 15:51:56 +0000</pubDate>
 <dc:creator>Quicksolver</dc:creator>
 <guid isPermaLink="false">comment 1245286 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I did this method for a</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1245285</link>
    <description> &lt;p&gt;I did this method for a local college once. The idea was to give the dean the ability to change the main content via Dreamweaver, but not have to worry about the main JS drop down nav, and all the dynamic news/events sections.&lt;/p&gt;
&lt;p&gt;The &quot;pages&quot; he edited had a two column table in them, the left section nav, and the main content. The main template opened up the individual .html files he edited, parsed out the &quot;Last updated Date&quot; that dreamweaver automatically updated, and the two columns from the table to use in the main template. &lt;/p&gt;
&lt;p&gt;It worked really well, allowing him to easily edit content on all pages and now have to worry about the rest of it.&lt;/p&gt;
&lt;p&gt;(Note, some people asked why I didn&#039;t use Dreamweaver&#039;s built in template system that lets you edit a master template and have it update the individual pages. This does work pretty well for small sites, however with over 350 pages, was not practical.)&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Oct 2009 15:21:39 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1245285 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>What about the opposite:</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/apc-article-how-automatically-include-your-header-naviga#comment-1245284</link>
    <description> &lt;p&gt;What about the opposite: Coding the header, footer and navigation into one page, and having the content change according to the URL instead? That&#039;s also a good way of not having to rewrite everything for all pages.&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Oct 2009 15:01:45 +0000</pubDate>
 <dc:creator>Quicksolver</dc:creator>
 <guid isPermaLink="false">comment 1245284 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
