<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html" />
  <link rel="self" type="application/atom+xml" href="http://ask-leo.com/atom.xml" />
  <id>tag:ask-leo.com,2009://3/tag:ask-leo.com,2004://3.1891-</id>
  <updated>2009-11-18T17:48:20Z</updated>
  <title>Comments for How do I include one HTML file inside another?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:39553</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c39553" />
    <title>Comment from Gamel on 2009-11-02</title>
    <author>
      <name>Gamel</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p><a href="http://toolboxnet.blogspot.com">Thank you!</a> It works with an URL?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-11-03T02:28:12Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3420</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3420" />
    <title>Comment from cheap propecia on 2009-05-30</title>
    <author>
      <name>cheap propecia</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Excellent site, It was pleasant to me.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-05-30T21:20:11Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3419</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3419" />
    <title>Comment from Bruce A. Julseth on 2008-08-03</title>
    <author>
      <name>Bruce A. Julseth</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Couldn't get the included file to display correctly. Used php require_once("BaseMenu.php"): You can see the problem at URL: <a href="http://medical.julseth.net/disMP.php"><a href="http://medical.julseth.net/disMP.php">http://medical.julseth.net/disMP.php</a></a></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-08-04T02:54:29Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3418</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3418" />
    <title>Comment from Leo on 2008-07-17</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>-----BEGIN PGP SIGNED MESSAGE-----<br />
Hash: SHA1</p>

<p>I've found that ".shtml", while common, is not at all<br />
standard. It definitely pays to understand your specific web<br />
server's configuration.</p>

<p>Also, scanning all .html (and .inc) is definitely possible,<br />
and not a large performance hit at all. This site, for<br />
example, is configured that way.</p>

<p>Leo</p>

<p><br />
-----BEGIN PGP SIGNATURE-----<br />
Version: GnuPG v1.4.7 (MingW32)</p>

<p>iD8DBQFIf33UCMEe9B/8oqERAgHjAJ4vvXyNhWpDmcRM5pHuHK5dp1Hi1ACgiVua<br />
BPNQ1KC/NkFsfqPPBwRR0xI=<br />
=KL4T<br />
-----END PGP SIGNATURE-----</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-07-17T17:14:07Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3417</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3417" />
    <title>Comment from Henry Leparskas on 2008-07-16</title>
    <author>
      <name>Henry Leparskas</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>for apache, when you want to use Server Side Includes, with the default configuration, you will have to have your file 'file.shtml' and not just 'file.html'. This is easy to trip over when you first start.<br />
I believe that you can have apache look at all 'html' files for includes, but there is a penalty for this, which I can't recall -could be efficiency.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-07-16T15:36:03Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3416</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3416" />
    <title>Comment from sezer on 2008-07-13</title>
    <author>
      <name>sezer</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Html Attribute for  -- Marquee Slide Image and Text ---<br />
<a href="http://html-lesson.blogspot.com/2008/06/marquee-slide-image-text.html"><a href="http://html-lesson.blogspot.com/2008/06/marquee-slide-image-text.html">http://html-lesson.blogspot.com/2008/06/marquee-slide-image-text.html</a></a></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-07-13T19:41:50Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3415</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3415" />
    <title>Comment from Volker on 2008-01-24</title>
    <author>
      <name>Volker</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Well, the code didn't show really well.<br />
Here it is again, only with much less</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-01-24T08:53:08Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3414</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3414" />
    <title>Comment from Volker on 2008-01-24</title>
    <author>
      <name>Volker</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I finally got my problem solved, which was not only a client side include, but a client side include where I had to calculate which include to include. (Did I make myself clear or what?  ;-> )<br />
I wanted to include the daily watchwords (see www.ebu.org) in my "Outlook Today" page.</p>

<p>This is my code (I hope it shows well):</p>

<p> <br />
 function fuehrendeNull(wert)<br />
  {<br />
  if (wert")<br />
 </p>

<p><br />
If the cite-tags are showed, they are the ones which shouldn't show...<br />
If it doesn't show at all or only very strange, my trick is to do a "document.write" that writes ANOTHER "script"-Statement, in which the variable is inserted.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2008</a>.</p>
    </content>
    <published>2008-01-24T08:43:25Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3413</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3413" />
    <title>Comment from HELPFUL on 2007-11-23</title>
    <author>
      <name>HELPFUL</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I READ THIS ARTICLE,  IT DOESN'T HELP AT ALL FOR CLIENT SIDE SCRIPTS aka INCLUDING A FILE IN ANOTHER FILE...</p>

<p>HERE IS A VERY HELPFUL ARTICLE:</p>

<p><a href="http://www.moock.org/webdesign/javascript/client-side-include/index.html"><a href="http://www.moock.org/webdesign/javascript/client-side-include/index.html">http://www.moock.org/webdesign/javascript/client-side-include/index.html</a></a></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-11-24T04:22:43Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3412</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3412" />
    <title>Comment from David Smith on 2007-07-29</title>
    <author>
      <name>David Smith</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Thank-you for the helpful info on %includes.<br />
I've used them in programming in other non-web languages (PL1, JCL PL/SQL etc), but not in web context.</p>

<p>Text at top/left of web pages often contributes to a page's ranking for search engines. If this text is removed, a menu for example, to a seperate document (by any of the described methods) will this likely mean the page has a lower ranking with such keyword text omitted?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-07-29T09:19:52Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3411</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3411" />
    <title>Comment from jfk on 2007-05-25</title>
    <author>
      <name>jfk</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Hi Leo, thanks for this informative article.</p>

<p>Suggestion to all those who want to include html in html and don't know much about servers, php and or ssi: Use the client-side method described here. It's easy and it works as long as Javascript is not disabled on the visitors browser. For this case you still can add this:<br />
&lt;noscript&gt;Please enable Javascript in your Browsersettings!&lt;/noscript&gt;</p>

<p>cheers</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-05-25T14:29:59Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3410</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3410" />
    <title>Comment from T.ashok kumar on 2007-05-12</title>
    <author>
      <name>T.ashok kumar</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I've idea about how to write include syntax in a html file. <a href="http://www.seobbsr.com/"><a href="http://www.seobbsr.com/">http://www.seobbsr.com/</a></a></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2007</a>.</p>
    </content>
    <published>2007-05-12T11:30:38Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3409</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3409" />
    <title>Comment from Leo Notenboom on 2006-09-07</title>
    <author>
      <name>Leo Notenboom</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>That type of include (&lt;?) needs to happen in a PHP file, you have it in an HTML file. You probably need to use SSI include. The style of include needs to match the type of source file, not the type of file being included.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-09-07T18:36:13Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3408</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3408" />
    <title>Comment from Kris on 2006-09-07</title>
    <author>
      <name>Kris</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>dear Leo</p>

<p>i have got three files help.htm ,contact.php and ..inc<br />
i have called the inc file inside teh php file<br />
now i want to call this php file inside teh htm file , i.e when i click help.htm the contents of contact.php should called <br />
i tried the below mentioned php tag on help.htm but all in vain. apprecaite your invaluable assistance</p>

<p></p>

<p>AXIS Engineering Consultants</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-09-07T13:29:03Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3407</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3407" />
    <title>Comment from Mahesh on 2006-09-03</title>
    <author>
      <name>Mahesh</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I use the code <br />
 as u mensioned. and also <br />
 tested.<br />
in my main html page. but it doesn't work.<br />
I want to include my common header in to all pages.<br />
Please help me.<br />
Thanks</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-09-04T04:56:12Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3406</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3406" />
    <title>Comment from Leo on 2006-06-11</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Check with your host - it may need to be enabled, or it may only be enabled for certain file extensions (like .shtml).</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-11T22:24:59Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3405</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3405" />
    <title>Comment from skimaster18 on 2006-06-11</title>
    <author>
      <name>skimaster18</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>i can't ge this to work.  i am using apache, i admit fairly new with apache, but i have followed the steps numerous times to use SSI on apache, and everytime, it just completely ignores my include statement.  using the correct context also.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-11T17:41:17Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3404</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3404" />
    <title>Comment from Leo on 2006-05-31</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>a) you have a space between the "-" and the "#" - that's enough to have it fail.</p>

<p>b) the server must be configured to support SSI. You should check.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-01T05:48:18Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3403</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3403" />
    <title>Comment from Naseer on 2006-05-31</title>
    <author>
      <name>Naseer</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Hi All,</p>

<p>Well i read all the solutions provided but i could'nt find any solution to my problem. i have two html files ie index.html and menu.html , i want to include the menu.html in my index.html. i used &lt;!-- #include FILE="menu.html --&gt; but its not working.. please provide me the better solution </p>

<p>regards <br />
Naseer</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-06-01T05:43:56Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3402</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3402" />
    <title>Comment from qixsilver on 2006-05-26</title>
    <author>
      <name>qixsilver</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Shraddhan, </p>

<p>If you're following the guidelines listed in this article, then technically everything should be ok. I was just fiddling around with this, and had some issues getting the includes to display properly. But by simply renaming my file from curious.html to curious.asp, the include then worked flawlessly. The include didn't care what the file extension was (html, asp, dat etc) for the file I used to hold the included data, it simply took what was in the included file and flowed it into the .asp file.</p>

<p>As an overview, I used 2 files:<br />
- curious.asp<br />
- content.dat</p>

<p>curious.asp holds:<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
  &lt;title&gt;include test&lt;/title&gt;<br />
  &lt;/head&gt;<br />
&lt;body bgcolor= "#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"&gt;</p>

<p>&lt;!--#include FILE="content.dat" --&gt; </p>

<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>

<p>content.dat holds:<br />
&lt;table width=764 BORDER=0 CELLSPACING=0 CELLPADDING=0&gt; <br />
&lt;tr valign=top&gt; <br />
&lt;td align=left valign=top&gt; <br />
Stuff I wanna say and images I want to include etc.<br />
&lt;/td&gt; <br />
&lt;/tr&gt; <br />
&lt;/table&gt; </p>

<p>A stumbling block that could be messing things up for you is: is the server that's hosting your files .asp compatible? if it's not, then your includes will not work. (using the format of: &lt;!--#include FILE="content.dat" --&gt; ). Hope that helps you out. To my knowledge, the framesets should not be causing a problem.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-05-26T20:11:34Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3401</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3401" />
    <title>Comment from Paul Evans on 2006-05-22</title>
    <author>
      <name>Paul Evans</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Try using CSS and putting images as backgrounds to <div> within the HTML code.<br />
Have a look at www.promotion-croisieres.com to see how this is done. Its a php file calling an include for the navbar, but the background image is tucked away in the CSS...</div></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-05-22T16:12:54Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3400</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3400" />
    <title>Comment from Dave on 2006-01-17</title>
    <author>
      <name>Dave</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>and again <br />
obviously no tags allowed<br />
#include VIRTUAL="/cgi-bin/GetRemote.pl?http://www.colosoccer.com.au/pentire.html"</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2006</a>.</p>
    </content>
    <published>2006-01-17T23:49:07Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3399</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3399" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Hey, it looks like I got it to work with this:</p>

<p>#!/usr/bin/perl<br />
use LWP::Simple;<br />
print "Content-type:text/html\n\n";<br />
print get("http://www.comptonmfg.com/page1.txt");</p>

<p>Does that make sense?  There's no getprint involved.  I was just goofing around and, poof, it worked.  Second question:  If this DOES make sense, should that same script work with other Apache configurations (I'm assuming that people with ASP and PHP will be able to simply pull in the content from my page with just the appropriate include, skipping the script)?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T06:06:43Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3398</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3398" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Here is how I'm hard coding the URL into the script:</p>

<p>#!/usr/bin/perl5.00405<br />
use LWP::Simple;<br />
print "Content-type:text/html\n\n";<br />
getprint (http://www.comptonmfg.com/page1.txt);</p>

<p>And I'm referencing it like this in the shtml page file:</p>

<p>&lt;!--#include VIRTUAL="/cgi-bin/proxy.pl" --&gt;</p>

<p>and it returns an error.  Is this correct or am I missing something?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T05:40:32Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3397</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3397" />
    <title>Comment from Leo on 2005-12-18</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Form the command line you have to specify the parameter using environment variables (set QUERY_STRING) and so on.</p>

<p>But yes, hard code a URL into the perl script instead of attempting to use the parameter and see if you can get that working.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T05:05:41Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3396</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3396" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Well, running it from Telnet (if I'm even doing it correctly) yields the following error message:</p>

<p>No such file or directory</p>

<p>...as if it's looking for a file named proxy.pl?http://www.comptonmfg.com/page1.txt rather than actually going to the address in the query string.</p>

<p>I've adjusted the path to perl to a later version of perl.  No help there.  I'm an HTML guru, not a perl guru, so I am admittedly ignorant of a lot of this.  How do I test getprint?</p>

<p>Also, I'm wondering if as small as this script is, it might not be overkill for my needs.  What I mean is, if everyone who I want to use this script is going to be referencing the same page, is there an even simpler way; for example, embedding the actual URL in the proxy.pl script.  That may be what we've achieved with the extra line of code, in which case we still have a getprint issue, but I thought it worth mentioning.  The bottom line is if people will need to install the script anyway, and if the only thing I want them pulling data from is a pre-determined text file, is there a way to do that and bypass the query string altogether?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T04:48:17Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3395</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3395" />
    <title>Comment from Leo on 2005-12-18</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>It's possible that LWP is an issue, but then other things could be as well. I'd look at your error logs, and if you have shell access, telnet in or ssh in to the server and run the perl script directly from a command line and see if it does what you expect. See if you can get ANY "getprint" to work.</p>

<p>An alternative might be to try PHP if your server has it. A test.php in your regular (not cgi-bin) directory that has this will tell you if it would work:</p>

<p>&lt;? include ("http://whatever"); &gt;</p>

<p>This *may* work, if your PHP configuration has it enabled.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T04:20:34Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3394</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3394" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Okay, that pulls in the URL, but not the contents of the URL.</p>

<p>The script now looks like this:</p>

<p>#!/usr/bin/perl<br />
use LWP::Simple;<br />
print "Content-type:text/html\n\n";<br />
print $ENV{'QUERY_STRING'} . "\n";<br />
getprint ($ENV{'QUERY_STRING'});</p>

<p>Using the <a href="http://www.tcconcepts.com/pagetest4.shtml"><a href="http://www.tcconcepts.com/pagetest4.shtml"><a href="http://www.tcconcepts.com/pagetest4.shtml">http://www.tcconcepts.com/pagetest4.shtml</a></a></a> link now pulls in text that reads "http://www.tcconcepts.com/page1.txt", rather than the HTML code that resides in that file.</p>

<p>Just curious.  Could the fact that my version of LWP is 5.53 have anything to do with it?  By the way, thanks for your help; I really appreciate it.</p>

<p>For what it's worth, what I'm trying to do is find a way to allow others (remote sites) to be able to insert an include (and perhaps a small cgi script like proxy.pl) that pulls actual code from a page on a site that I control.  IF you have some other idea, I'm all for it.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T04:15:12Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3393</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3393" />
    <title>Comment from Leo on 2005-12-18</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>So just running <a href="http://tcconcepts.com/cgi-bin/proxy.pl?http://www.comptonmfg.com/page1.txt"><a href="http://tcconcepts.com/cgi-bin/proxy.pl?http://www.comptonmfg.com/page1.txt">http://tcconcepts.com/cgi-bin/proxy.pl?http://www.comptonmfg.com/page1.txt</a></a> will test it outside of the SSI environment. It should just print the contents of the referenced file.</p>

<p>Obviously yours doesn't, and I'm not sure I see an obvious reason why. I would add a print statement before the getprint:</p>

<p>print $ENV{'QUERY_STRING'} . "\n";</p>

<p>That should simply ensure that the QUERY_STRING is coming in correctly. If it is (and I'd guess it is) then I would suspect some kind of configuration issue on your server that's preventing getprint from working.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T03:20:46Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3392</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3392" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Understood.  But when that didn't work, I thought I'd try local.  In any event, see:</p>

<p><a href="http://www.tcconcepts.com/pagetest4.shtml"><a href="http://www.tcconcepts.com/pagetest4.shtml"><a href="http://www.tcconcepts.com/pagetest4.shtml">http://www.tcconcepts.com/pagetest4.shtml</a></a></a> where I'm using the following:</p>

<p>&lt;!--#include virtual="/cgi-bin/proxy.pl?http://www.comptonmfg.com/page1.txt" --&gt;</p>

<p>Again, the space is created, but no content fills it.  To my non-Perl brain, this implies that it's seeing the need to insert something, but not what that something is.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T02:58:36Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3391</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3391" />
    <title>Comment from Leo on 2005-12-18</title>
    <author>
      <name>Leo</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>It's expecting a URL. So you'd want proxy.pl?http://whatever.... - that's the point of proxy.pl.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T01:48:30Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3390</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3390" />
    <title>Comment from Joe Formtester on 2005-12-18</title>
    <author>
      <name>Joe Formtester</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>I cannot seem to get proxy.pl to work at all, even locally.  Am I correct that the script file should simply be as follows:</p>

<p>#!/usr/bin/perl<br />
use LWP::Simple;<br />
print "Content-type:text/html\n\n";<br />
getprint ($ENV{'QUERY_STRING'});</p>

<p>Can someone please help?  SSI is working fine locally, CGI is enabled, the script is chmod'd to 755 (as is the directory), and I've tried every variant thinkable for the links on the shtml pages.  Please see the following examples:</p>

<p>At <a href="http://www.tcconcepts.com/pagetest1.shtml"><a href="http://www.tcconcepts.com/pagetest1.shtml"><a href="http://www.tcconcepts.com/pagetest1.shtml">http://www.tcconcepts.com/pagetest1.shtml</a></a></a> I'm using a normal include like so:</p>

<p>&lt;!--#include virtual="page1.txt" --&gt;</p>

<p>...which is pulling in the sample text (everything below the line) just fine from the referenced .txt file.</p>

<p>At <a href="http://tcconcepts.com/pagetest2.shtml"><a href="http://tcconcepts.com/pagetest2.shtml"><a href="http://tcconcepts.com/pagetest2.shtml">http://tcconcepts.com/pagetest2.shtml</a></a></a> I'm using:</p>

<p>&lt;!--#include virtual="/cgi-bin/proxy.pl?page1.txt" --&gt;</p>

<p>At <a href="http://tcconcepts.com/pagetest3.shtml"><a href="http://tcconcepts.com/pagetest3.shtml"><a href="http://tcconcepts.com/pagetest3.shtml">http://tcconcepts.com/pagetest3.shtml</a></a></a> I'm using:</p>

<p>&lt;!--#include virtual="/cgi-bin/proxy.pl?/page1.txt" --&gt;<br />
(note additional slash)</p>

<p>Neither of these latter pages (using proxy.pl) works.  Nor do any other variants of the link including "./", "../" etc.  I've also tried referencing different (later) versions of Perl.  I'm not even getting error messages.  The space is created, it's just not populated with the content.  Any ideas?</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-12-19T00:58:03Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3389</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3389" />
    <title>Comment from MetaNeko on 2005-11-20</title>
    <author>
      <name>MetaNeko</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>for people<br />
require_once("./file.ext"); // Requires File only once<br />
Require("./file.ext"); // Requires File<br />
include("./file.ext"); // Includes file</p>

<p>Now I am learning php and im quite good at it so ill drop a few php methods.<br />
 I always have a tons of files.. i spread my code everywere and its neatly sorted. but sometimes like lets say you wanna make a dice script you would put<br />
ReRoll";<br />
?></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-11-21T02:13:32Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3388</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3388" />
    <title>Comment from Roland on 2005-09-18</title>
    <author>
      <name>Roland</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Glad I found this,  I make extensive use of ssi includes I have spent ages trying to figure how to pass VARS to ssi, I see this can't be done. </p>

<p>I would like to have a page with a number of link to static pages like /product/1001.html and /product/1002.html and  have them appear in the current page (without frames) when clicked</p>

<p>The closest I can get to this is by modifying your script proxy.pl, I'm am sure there is a more elegant way, especialy since the pages I am linking to are on the same website?  <br />
Regards Roly  </p>

<p>#!/usr/bin/perl<br />
use LWP::Simple;<br />
print "Content-type:text/html\n\n";</p>

<p>open (FILE, "header.txt") || die "cannot open file: $!";<br />
  undef $/;           # read in file all at once<br />
  print ;<br />
close FILE;</p>

<p>getprint ($ENV{'QUERY_STRING'});</p>

<p>open (FILE, "footer.txt") || die "cannot open file: $!";<br />
  undef $/;           # read in file all at once<br />
  print ;<br />
close FILE;</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-09-19T01:14:49Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3387</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3387" />
    <title>Comment from sindergoth on 2005-03-29</title>
    <author>
      <name>sindergoth</name>
      <uri>http://www.steinscape.uk.tc</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.steinscape.uk.tc">
      <![CDATA[<p>this is just another more reliable verion of a previous post for php...</p>

<p><br />
or</p>

<p>by doing it this way, you are  making sure that the webserver no matter what brand will understand it, because >> alone is asp style.. </p>

<p><br />
the second choice >> include_once ensure that if a file being included to the page is already present it doesn't include it agaiin</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-03-30T01:38:35Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2004://3.1891-comment:3386</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2004://3.1891" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html#c3386" />
    <title>Comment from Robert Persig on 2005-02-11</title>
    <author>
      <name>Robert Persig</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>The local IT guru said: "It is not possible to include HTML code to an existing html file. You have to edit all these 500 files and change the header manually." <br />
No comment! Of course it is possible to edit 500 files at once and change strings in them, provided your local IT hero has not decided to have Micro$oft as OS and Livelink as web server.<br />
Anyway, this hint helped me solving the problem, the local IT superman gave me week to finish the job. I had a lot of fun during this week ;o)</p>

<p>Cheers.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/how_do_i_include_one_html_file_inside_another.html">How do I include one HTML file inside another?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2005</a>.</p>
    </content>
    <published>2005-02-11T15:42:40Z</published>
  </entry>

</feed>
