<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: PHP and ASP Includes</title>
	<link>http://www.chickenbeak.com/php/php-and-asp-includes/2006/11/</link>
	<description>Design tutorials for the greater good.</description>
	<pubDate>Tue, 06 Jan 2009 21:20:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: chris</title>
		<link>http://www.chickenbeak.com/php/php-and-asp-includes/2006/11/#comment-8</link>
		<pubDate>Mon, 20 Nov 2006 21:36:41 +0000</pubDate>
		<guid>http://www.chickenbeak.com/php/php-and-asp-includes/2006/11/#comment-8</guid>
					<description>I just wanted to point out the big difference between php and asp includes (because I don't think I can find a better spot for this snippit of info.)

In php, you can assign a dynamic variable as the target of the include function. For example...
&lt;?
$fileName = &quot;header_public.inc&quot;;
include(fileName);
?&gt;

In asp however, since includes are not within the asp tags (  &lt;% and %&gt;  ), the following would NOT work...
&lt;%
fileName = &quot;header_logged.inc&quot;
%&gt;
&lt;!--include file=fileName--&gt;

You have a lot less flexability when using asp includes, but they stil serve their purpose.</description>
		<content:encoded><![CDATA[<p>I just wanted to point out the big difference between php and asp includes (because I don&#8217;t think I can find a better spot for this snippit of info.)</p>
<p>In php, you can assign a dynamic variable as the target of the include function. For example&#8230;<br />
<?<br />
$fileName = "header_public.inc";<br />
include(fileName);<br />
?></p>
<p>In asp however, since includes are not within the asp tags (  <% and %>  ), the following would NOT work&#8230;<br />
<%<br />
fileName = "header_logged.inc"<br />
%><br />
<!--include file=fileName--></p>
<p>You have a lot less flexability when using asp includes, but they stil serve their purpose.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
