1:07:00 AM

(0) Comments

Using the PHP Include Command

design

This tutorial will teach you the very basics on how to use a PHP #include command. The #include command is used to insert the content of an external HTML page into an existing PHP page. For example, the header and footer of this page you are reading right now are actually external files which are loaded into the page when you request the server to display the page. Using this technique makes it easier to update the header of all the pages of our website by simple updating a single included header file without having to update any code in any of our pages.

This technique can be used anyone without having any advanced PHP knowledge. This tutorial will teach you how to use this command.

Our tutorial is divided into two main sections:

  • Server Requirements
  • Code Implementation

Server Requirements

In order to run this command you will need to have PHP installed on your server. You can check this with your hosting service provider. Any modern version of PHP will be sufficient to execute this command. Other than that, there are no specific server requirements.

Code Implimentation

We are going to create a very simple example in which a HOME page includes a HEADER into it. This means that we are going to need two pages the HOME page and teh HEADER page.

We will start off with the header page. Using any web editing tool, simply create an HTML page with the following content:

Oman3D - The Creative Adventure!

Note that you do not need to create a proper HTML file with ,

, or tags, simply because our header page will not be displayed by the browser by itself and instead it will be included as part of our HOME page.

Save this file as header.html.

It is now time to create our HOME page. Using any web editing tool, create an HTML page with the following code:



My Oman3D Homepage/title> <br /> </head> <br /> <br /> <body> <br /> <br /> </body> <br /> <br /> </html> </div> <p>Our page does not have anything in it yet other than the page title tag. We are now going to add our #include command in the body of the page:</p> <div class="code"><html> <br /> <head> <br /> <title>My Oman3D Homepage/title> <br /> </head> <br /> <br /> <body> <br /> <strong><?php include("header.php"); ?></strong> <br /> </body> <br /> <br /> </html> </div> <p>That should insert our header at the start of our body when our page is displayed on the server. If you want to have other content in your page you can simply insert it below that tag.</p> <div class="code"><html> <br /> <head> <br /> <title>My Oman3D Homepage/title> <br /> </head> <br /> <br /> <body> <br /><?php include("header.php"); ?> <br /> <strong><h2>Welcome!</h2> <br /> <p>Thanks for visiting my website, I hope that you have a great time here!</p></strong> <br /> </body> <br /> <br /> </html> </div> <p>That should do it. You now have to save this file as <em>home.php</em>. You file <strong>MUST END WITH THE .PHP EXTENSION FOR THE SERVER TO PROCESS THE COMMAND. DO NOT FORGET THIS.</strong></p> <p>That should do it, you will not be able to test this command on your computer unless if you have a PHP server installed. The easiest way to try this is to upload it to your server. Simply upload both files to the same directory and then access <em>home.php</em> to see the content of your <em>header.html</em> file displayed in there along with your home page content!</p> <p>This concludes our tutorial. I hope that you learnt something new from it. If you have any questions or comments feel free to post them at <span style="text-decoration: underline;">the forum</span>.</p> <p>- End of Tutorial</p></span> <br /><span class="fullpost"> <br /> <br /> </span></p> <script type="text/javascript"><!-- google_ad_client = "pub-5214706474963894"; google_ad_host = "pub-1556223355139109"; google_ad_host_channel="00000"; /* 250x250, created 12/25/08 */ google_ad_slot = "8300414808"; google_ad_width = 250; google_ad_height = 250; //--> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> </div> <div style='clear: both;'></div> <div class='bottom'></div> </div> </div> <div class='block center'> <div class='header'><h5> 0 Responses to "Using the PHP Include Command" </h5></div> <div class='wrap'> <div class='top'></div> <div class='content'> </div> <div class='bottom'></div> </div> <p class='comment-footer'> <div class='comment-form'> <a name='comment-form'></a> <h3>Post a Comment</h3> <p> </p> <iframe allowtransparency='true' frameborder='0' height='275' id='comment-editor' scrolling='auto' src='https://www.blogger.com/comment/frame/3015585304565072082?po=8720236739941645172&hl=en' width='100%'></iframe> </div> </p> <div id='backlinks-container'> <div id='Blog1_backlinks-container'> </div> </div> </div> <!--Can't find substitution for tag [adEnd]--> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='http://blogerdesign.blogspot.com/2009/01/posix-regular-expressions-in-php.html' id='Blog1_blog-pager-newer-link' title='Newer Post'>Newer Post</a> </span> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='http://blogerdesign.blogspot.com/2009/01/using-codeigniter-for-php-application.html' id='Blog1_blog-pager-older-link' title='Older Post'>Older Post</a> </span> <a class='home-link' href='http://blogerdesign.blogspot.com/'>Home</a> </div> <div class='clear'></div> </div></div> </div> <!-- /content --> <div id='sidebar_right'> <div class='block right rss_search'> <div class='sidebar-right section' id='sidebar-right10'><div class='widget HTML' data-version='1' id='HTML1'> <h2 class='title'>TRANSLATE THIS BLOG</h2> <div class='widget-content'> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cen&hl=en'); return false;"><img border="0" alt="English" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqYxzc2jWF-fLUa1LNia2ZTw7TP89p7b_t_oaaHoEYs5Ry8C37ljN4FWbTXihA82MiWyRXNijb31F0wZqLfq4Qw43DP_W4eLdMl-cITsvyqllc1Pvee7JqmpMosQdcd_C3eUu8iT8Jtqg/s320/english.jpeg" height="30" title="English" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cfr&hl=en'); return false;"><img border="0" alt="French" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB8xCpDV1304zeMFZcoaQ9fQWx8X9K6_BuiDcnLmUmVDksafv9nsLOTGdVF-HGbceYFRIdnMw-s0Lp3gGSuXmeh7rMj5gvZ5ciKJIvIE7Ag3ikwz-L7ecx1Xmm8sOvV1i3Gj5syMTJTdg/s320/french.jpg" height="30" title="French" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cde&hl=en'); return false;"><img border="0" alt="German" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ndk1lWvi4cC7GepX2uDrs6lRlIEHC-TtZgyVPhWLnbeCh8iYG3wePWRN9M3id2bP9aQBIcon9qzG4IZpZ5cZDNRkvgW48U28-gh7prku-HpgvG9Wvmv7c3tD0N9f3U2EuCyuly62p-M/s320/german.jpg" height="30" title="German" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Ces&hl=en'); return false;"><img border="0" alt="Spain" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrmlef1w5hpTKsX1FUH2SBfJpoEv7Yz0rDGExSvax-gzrGRQOM9mZSFzhFJY6crM8nTkSG1gD_Rl0W1UoXQamADNjvKJKkYuqS2MfuS50TsXQtOUz3Eag5QNO0EZxo6uVGpi-dDC6zcns/s320/spanish.jpg" height="30" title="Spain" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cit&hl=en'); return false;"><img border="0" alt="Italian" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWdsgTJP9iNay51cp_2hYg0hTwG-Ud0JWTscj7nkIRvqoS6t_qk_38YBgcinoLB_RMaa6KHP6iSW3KO0nIog00ReN1bNtPTe9RA3_9blfj_jkczRRXRkweD-lblH0ngRVpUd-_OAlK71Q/s320/italian.jpg" height="30" title="Italian" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cnl&hl=en'); return false;"><img border="0" alt="Dutch" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyaJNrzitNE-afLKv2ePO-axZMFCkth8qY8T6eJ4Ff8ISqEx6FW1d7HFFIMtEs3LUaoCp0r8dqGRKXai_DfiiNzxUDm0YlPASg32_mgi4GdDRd2VXtoYdr8ql2wZCTUHNpVnylO-NF_ZA/s320/dutch.jpeg" height="30" title="Dutch" align="absbottom"/></a><br/><br/><a style="cursor: pointer;" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;"><img border="0" alt="Russian" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggt6D7-LGx9wkrSWk1ivljkmTd3R9IabK7n7QM1aVb92A0K_WUS2bDTqQ3y5kW4tBGOJe_tgmQFDNDIpg5ys6Hpbj_hEJEqCY671_dNOQUyvsDtpdjjaI8QbtmWut_mNVgU-NQLk8fXQ8/s320/russian.jpeg" height="30" title="Russian" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img border="0" alt="Portuguese" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidt_LXAB-Tq3tSTaPS6AKnobn8zYPnsdSb0N6JW5GN4s3s_M9ytMDB0-KfursohiHFCYH90FMk3VsrwSjnDG9m8Dwv0mA0WEohgmkgMfU3xkUn8nGdEXjyuPOO1CTKzv6dGy0p04bD0zk/s320/brazilian.jpg" height="30" title="Portuguese" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cja&hl=en'); return false;"><img border="0" alt="Japanese" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2epsRMZfRgohN1MqTmO84NL77fuHgM1zUEOd1lI49DvRnRmmAYqdfEN8PWWPRuryjqH7HDsHJqQeDCbd8mGjdzrmp5NLaR74G1gGTuACFV9GyaoqYxA5b-GPWaH9qrLd4znUhaJUIQOk/s320/japan.jpg" height="30" title="Japanese" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cko&hl=en'); return false;"><img border="0" alt="Korean" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTGA4eH_GGiRyXajjB4JcS8mgcltbmqESuz24a5DSDKdlRXfI6CKCKly1Lo1lTnWsZHuS9-wh2IrS1qhUGwQ_pDqLViloYNFMZbypRfCBesjCDnqBU1zjIMJsy5Gsd1d0QdYAEpUsT9Co/s320/korean.jpg" height="30" title="Korean" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Car&hl=en'); return false;"><img border="0" alt="Arabic" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaYs2H5FQvtaYQI2_SIgrofncWM_OYJhiU42p920RKh-KrYvy6e9JHn1mufHRU1WpW078BFyVE1kja2vLIM8Y8gSlOX4NWoeF8FVCOYGBZ7ivvi9Z9fKThl96hdZfvNk2DYpD0kNT5zp8/s320/arab.jpeg" height="30" title="Arabic" align="absbottom"/></a> <a style="cursor: pointer;" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Czh-CN&hl=en'); return false;"><img border="0" alt="Chinese Simplified" style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgqK0XttXZaT8hJ6jfqgzMhpR420aMGE_rocTHIZgflvGYkBWLyTRlUmcrW4X26SHatrjRqKENiGrhCvzM3oaM8lBYbKNpA8qMRA9jmLVTzIUE_jELEsrwQ1-GbrGYe_V5DISqrImJXYo/s320/china.jpg" height="30" title="Chinese Simplified" align="absbottom"/></a><br/><br/><span style="font-size: 80%"></span> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML12'> <h2 class='title'>check pagerank</h2> <div class='widget-content'> <table border="0" cellspacing="1" cellpadding="5" bgcolor="#C0C0C0" align="center"> <form action="http://www.prchecker.info/check_page_rank.php" target="_blank" method="post"> <tr bgcolor="#ffffff"><td><input value="docheck" name="action" type="hidden"/> <input maxlength="300" value="http://" name="urlo" size="31" type="text"/> <input value=" Check PR " name="do_it_now" type="submit"/> </td></tr></form><tr bgcolor="#ffffff"><td></td></tr></table> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML9'> <div class='widget-content'> <iframe align="middle" frameborder="0" marginheight="0" marginwidth="0" height="250" src="http://banners.friendfinder.com/go/page/banner_24368?size=300x250&ad=001&pid=g1109325-pmem&no_click=1〈=english&page=reg" scrolling="no" width="300"></iframe> </div> <div class='clear'></div> </div><div class='widget Label' data-version='1' id='Label99'> <h2>Labels</h2> <div class='widget-content'> <script src='http://halotemplates.s3.amazonaws.com/wp-cumulus-example/swfobject.js' type='text/javascript'></script> <div id='flashcontent'>Blogumulus by <a href='http://www.roytanck.com/'>Roy Tanck</a> and <a href='http://www.bloggerbuster.com'>Amanda Fazani</a></div> <script type='text/javascript'> var so = new SWFObject("http://halotemplates.s3.amazonaws.com/wp-cumulus-example/tagcloud.swf", "tagcloud", "240", "300", "7", "#ffffff"); // uncomment next line to enable transparency //so.addParam("wmode", "transparent"); so.addVariable("tcolor", "0x333333"); so.addVariable("mode", "tags"); so.addVariable("distr", "true"); so.addVariable("tspeed", "100"); so.addVariable("tagcloud", "<tags><a href='http://blogerdesign.blogspot.com/search/label/3ds%20MAX' style='12'>3ds MAX</a><a href='http://blogerdesign.blogspot.com/search/label/3gp' style='12'>3gp</a><a href='http://blogerdesign.blogspot.com/search/label/Animations' style='12'>Animations</a><a href='http://blogerdesign.blogspot.com/search/label/Busines' style='12'>Busines</a><a href='http://blogerdesign.blogspot.com/search/label/Corel%20Draw' style='12'>Corel Draw</a><a href='http://blogerdesign.blogspot.com/search/label/Design' style='12'>Design</a><a href='http://blogerdesign.blogspot.com/search/label/DRAWING' style='12'>DRAWING</a><a href='http://blogerdesign.blogspot.com/search/label/Games' style='12'>Games</a><a href='http://blogerdesign.blogspot.com/search/label/General%2FBasics' style='12'>General/Basics</a><a href='http://blogerdesign.blogspot.com/search/label/LAYOUT' style='12'>LAYOUT</a><a href='http://blogerdesign.blogspot.com/search/label/Photo%20Effects' style='12'>Photo Effects</a><a href='http://blogerdesign.blogspot.com/search/label/Photo%20Manipulation' style='12'>Photo Manipulation</a><a href='http://blogerdesign.blogspot.com/search/label/Photoshop' style='12'>Photoshop</a><a href='http://blogerdesign.blogspot.com/search/label/Php' style='12'>Php</a><a href='http://blogerdesign.blogspot.com/search/label/Programming' style='12'>Programming</a><a href='http://blogerdesign.blogspot.com/search/label/Software' style='12'>Software</a><a href='http://blogerdesign.blogspot.com/search/label/Special%20Effects' style='12'>Special Effects</a><a href='http://blogerdesign.blogspot.com/search/label/TECHNICAL' style='12'>TECHNICAL</a><a href='http://blogerdesign.blogspot.com/search/label/Text%20Effects' style='12'>Text Effects</a></tags>"); so.addParam("allowScriptAccess", "always"); so.write("flashcontent"); </script> <div class='clear'></div> </div> </div><div class='widget HTML' data-version='1' id='HTML6'> <div class='widget-content'> <script type="text/javascript"><!-- google_ad_client = "pub-5214706474963894"; google_ad_host = "pub-1556223355139109"; google_ad_host_channel="00000"; /* 250x250, created 6/26/09 */ google_ad_slot = "6129593068"; google_ad_width = 250; google_ad_height = 250; //--> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML3'> <h2 class='title'>Visit Indonesia Year 2008</h2> <div class='widget-content'> <center><a href="http://my-indonesia.info/"><img alt="Visit Indonesia Year 2008" src="http://i301.photobucket.com/albums/nn78/btakeshy/visit_indonesia_2008.gif"/></a></center> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML11'> <h2 class='title'>Articles</h2> <div class='widget-content'> <script src="http://anas.ku93.googlepages.com/post-terakhir.js"></script> <script>var numposts = 40; var showpostdate = false; var showpostsummary = false; var numchars = 100; </script> <script src="http://blogerdesign.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=rp"> </script> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML10'> <h2 class='title'>Chat</h2> <div class='widget-content'> <!-- Begin ShoutMix - http://www.shoutmix.com --> <iframe scrolling="auto" width="300" frameborder="0" src="http://www5.shoutmix.com/?tobor212" height="450" title="tobor212"> <a href="http://www5.shoutmix.com/?tobor212">View shoutbox</a> </iframe> <br/><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!"></a> <!-- End ShoutMix --> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML13'> <h2 class='title'>Recent Coment</h2> <div class='widget-content'> <script style="text/javascript" src="http://www.geocities.com/oom_directory/recentcomments.txt"></script><script style="text/javascript">var numcomments = 5;var showcommentdate = true;var showposttitle = true;var numchars = 100;var standardstyling = true;</script><script src="http://blogerdesign.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script> </div> <div class='clear'></div> </div></div> </div> <div class='block right'> <div class='sidebar-right no-items section' id='sidebar-right2'></div> </div> <div class='block right'> <div class='sidebar-right no-items section' id='sidebar-right7'> </div> </div> <div class='block right'> <div class='sidebar-right no-items section' id='sidebar-right3'></div> </div> <div class='block right'> <div class='sidebar-right no-items section' id='sidebar-right4'> </div> </div> </div> <!-- /sidebar right --> <div class='c'></div> </div> <!-- /main --> <!-- Maggo magazine Blogger Template comes under a Creative Commons License. This means it is free to use on your blog as long as the credit link in the footer is kept intact ThemeLib.com --> <div id='footer'> <span class='left'>Copyright 2008 <strong><a href='http://blogerdesign.blogspot.com/'>BlogDesign</a></strong></span> <span class='right'>Theme <a alt='WordPress Designer' href='http://blogerdesign.blogspot.com'> Theme Designer</a> | Converted to <a href='http://blogerdesign.blogspot.com/2008/07/maggo-magazine-blogger-template/'>Blogger Template</a> by <a href='http://blogerdesign.blogspot.com' title='ThemeLib - Unique Blogger Templates'>blogerdesign</a></span> </div> </div> <!-- /wrap --> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/745881458-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AOuZoY79aeAP7ewNI5IMYfYpAH8NIKG2Nw:1734854184963';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d3015585304565072082','//blogerdesign.blogspot.com/2009/01/using-php-include-command.html','3015585304565072082'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '3015585304565072082', 'title': 'BlogDesign', 'url': 'http://blogerdesign.blogspot.com/2009/01/using-php-include-command.html', 'canonicalUrl': 'http://blogerdesign.blogspot.com/2009/01/using-php-include-command.html', 'homepageUrl': 'http://blogerdesign.blogspot.com/', 'searchUrl': 'http://blogerdesign.blogspot.com/search', 'canonicalHomepageUrl': 'http://blogerdesign.blogspot.com/', 'blogspotFaviconUrl': 'http://blogerdesign.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22BlogDesign - Atom\x22 href\x3d\x22http://blogerdesign.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22BlogDesign - RSS\x22 href\x3d\x22http://blogerdesign.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22BlogDesign - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/3015585304565072082/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22BlogDesign - Atom\x22 href\x3d\x22http://blogerdesign.blogspot.com/feeds/8720236739941645172/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-5214706474963894', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': false, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/361ce9cf7a112c52', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '8720236739941645172', 'pageName': 'Using the PHP Include Command', 'pageTitle': 'BlogDesign: Using the PHP Include Command'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': 'Custom', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'Using the PHP Include Command', 'description': 'This tutorial will teach you the very basics on how to use a PHP #include command. The #include command is used to insert the content of an ...', 'url': 'http://blogerdesign.blogspot.com/2009/01/using-php-include-command.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 8720236739941645172}}]); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML8', 'topcolumn', document.getElementById('HTML8'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'sidebar-left', document.getElementById('HTML2'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label1', 'sidebar-left', document.getElementById('Label1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML7', 'sidebar-left', document.getElementById('HTML7'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML5', 'sidebar-left4', document.getElementById('HTML5'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive2', 'sidebar-left4', document.getElementById('BlogArchive2'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LinkListView', new _WidgetInfo('LinkList1', 'sidebar-left3', document.getElementById('LinkList1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML4', 'sidebar-left3', document.getElementById('HTML4'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'themelib', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/3846405171-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/1964470060-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'sidebar-right10', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML12', 'sidebar-right10', document.getElementById('HTML12'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML9', 'sidebar-right10', document.getElementById('HTML9'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label99', 'sidebar-right10', document.getElementById('Label99'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML6', 'sidebar-right10', document.getElementById('HTML6'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML3', 'sidebar-right10', document.getElementById('HTML3'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML11', 'sidebar-right10', document.getElementById('HTML11'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML10', 'sidebar-right10', document.getElementById('HTML10'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML13', 'sidebar-right10', document.getElementById('HTML13'), {}, 'displayModeFull')); </script> </body> </html>