<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Converting CGI Movable Type Templates to PHP</title>
	<atom:link href="http://www.mikeindustries.com/blog/archive/2004/06/mt-cgi-to-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP</link>
	<description>A running commentary of occasionally interesting things.</description>
	<lastBuildDate>Wed, 17 Mar 2010 21:39:03 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave S.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-166</link>
		<dc:creator>Dave S.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-166</guid>
		<description>I&#039;ll be writing up my PHP comment preview template when it&#039;s stable; it&#039;s about 95% there, and it appears to be working like a charm.

My method was adapted from &lt;a href=&quot;http://www.shauninman.com/mentary/past/mt_search_and_php_includes.php&quot; rel=&quot;nofollow&quot;&gt;this write-up&lt;/a&gt; by Shaun Inman. It seems Shaun is quietly solving all the world&#039;s problems while no one is looking.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll be writing up my PHP comment preview template when it&#8217;s stable; it&#8217;s about 95% there, and it appears to be working like a charm.</p>
<p>My method was adapted from <a href="http://www.shauninman.com/mentary/past/mt_search_and_php_includes.php" rel="nofollow">this write-up</a> by Shaun Inman. It seems Shaun is quietly solving all the world&#8217;s problems while no one is looking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-167</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-167</guid>
		<description>Interestingly, the readfile() solution referenced in Shaun&#039;s article does not work on my hosting provider. The CGI output gets included properly, but the PHP doesn&#039;t fire during page draw. I&#039;m thinking the reason for this may be that I have my PHP code in the trackback template itself, which is a CGI page. This could be bad form... I don&#039;t know... but it seems to work great using the include() function and it lets me continue to use the built-in trackback template in MT.

A commenter on Shaun&#039;s thread mentioned that some ISPs may have readfile() functionality turned off as apparently it takes up some amount of memory. The virtual() command also did not work for me and the error message I got indicated that function definitely wasn&#039;t supported.  But then again, I&#039;m no PHP expert so user error is a distinct possibility.

The include() function was the only way I found to get the cgi and the php firing together.  Any of you PHP-heads out there care to comment on the use of include() vs. virtual() vs. readfile() ? &lt;a href=&quot;http://www.shauninman.com&quot; rel=&quot;nofollow&quot;&gt;Wolf&lt;/a&gt;?</description>
		<content:encoded><![CDATA[<p>Interestingly, the readfile() solution referenced in Shaun&#8217;s article does not work on my hosting provider. The CGI output gets included properly, but the PHP doesn&#8217;t fire during page draw. I&#8217;m thinking the reason for this may be that I have my PHP code in the trackback template itself, which is a CGI page. This could be bad form&#8230; I don&#8217;t know&#8230; but it seems to work great using the include() function and it lets me continue to use the built-in trackback template in MT.</p>
<p>A commenter on Shaun&#8217;s thread mentioned that some ISPs may have readfile() functionality turned off as apparently it takes up some amount of memory. The virtual() command also did not work for me and the error message I got indicated that function definitely wasn&#8217;t supported.  But then again, I&#8217;m no PHP expert so user error is a distinct possibility.</p>
<p>The include() function was the only way I found to get the cgi and the php firing together.  Any of you PHP-heads out there care to comment on the use of include() vs. virtual() vs. readfile() ? <a href="http://www.shauninman.com" rel="nofollow">Wolf</a>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Simmons</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-168</link>
		<dc:creator>Michael Simmons</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-168</guid>
		<description>&lt;a href=&quot;http://www.php.net/curl&quot; rel=&quot;nofollow&quot;&gt;CURL&lt;/a&gt; will also work, but then again it&#039;s up to your host if you can.</description>
		<content:encoded><![CDATA[<p><a href="http://www.php.net/curl" rel="nofollow">CURL</a> will also work, but then again it&#8217;s up to your host if you can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave S.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-169</link>
		<dc:creator>Dave S.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-169</guid>
		<description>&quot;I&#039;m thinking the reason for this may be that I have my PHP code in the trackback template itself, which is a CGI page.&quot;

There&#039;s your problem. PHP doesn&#039;t execute within a .cgi page, not even if you addtype it in your .htaccess -- it has to be a .php file.

Again, more once I get the last few kinks worked out. :)</description>
		<content:encoded><![CDATA[<p>&#8220;I&#8217;m thinking the reason for this may be that I have my PHP code in the trackback template itself, which is a CGI page.&#8221;</p>
<p>There&#8217;s your problem. PHP doesn&#8217;t execute within a .cgi page, not even if you addtype it in your .htaccess &#8212; it has to be a .php file.</p>
<p>Again, more once I get the last few kinks worked out. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-170</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-170</guid>
		<description>Okay, well that makes sense then.  I wonder why PHP executes just fine if you use the include() function though. Still seems like bad form though to have PHP code in a CGI file... I&#039;ll change that pronto.

Anybody have any insights on which is better to use from a processor standpoint, readfile(), include(), implode(), or virtual()?</description>
		<content:encoded><![CDATA[<p>Okay, well that makes sense then.  I wonder why PHP executes just fine if you use the include() function though. Still seems like bad form though to have PHP code in a CGI file&#8230; I&#8217;ll change that pronto.</p>
<p>Anybody have any insights on which is better to use from a processor standpoint, readfile(), include(), implode(), or virtual()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geof</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-171</link>
		<dc:creator>Geof</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-171</guid>
		<description>Mike, I don&#039;t know why you&#039;re persisting in trying to use the wrench-like MT as a hammer when there&#039;s a hammer that does more of what you seem to say you want in &lt;a href=&quot;http://wordpress.org/&quot; rel=&quot;nofollow&quot;&gt;WordPress&lt;/a&gt;.

&lt;strong&gt;Before&lt;/strong&gt; someone accuses me of trying to suck another MT user over to WP, let me just note that I only am making this comment because Mike wrote, &quot;The first is that it doesnâ€™t offer dynamic page serving, so I must recompile my entire site after making a change. I can live with this problem as recompiling is just a question of hitting a button and waiting awhile.&quot;  I grew to hate dynamic page-serving while I was a Greymatter user, and that&#039;s why I never switched to MT.

There are many reasons not to use WP and to use MT; I&#039;m just throwing the idea out there.</description>
		<content:encoded><![CDATA[<p>Mike, I don&#8217;t know why you&#8217;re persisting in trying to use the wrench-like MT as a hammer when there&#8217;s a hammer that does more of what you seem to say you want in <a href="http://wordpress.org/" rel="nofollow">WordPress</a>.</p>
<p><strong>Before</strong> someone accuses me of trying to suck another MT user over to WP, let me just note that I only am making this comment because Mike wrote, &#8220;The first is that it doesnâ€™t offer dynamic page serving, so I must recompile my entire site after making a change. I can live with this problem as recompiling is just a question of hitting a button and waiting awhile.&#8221;  I grew to hate dynamic page-serving while I was a Greymatter user, and that&#8217;s why I never switched to MT.</p>
<p>There are many reasons not to use WP and to use MT; I&#8217;m just throwing the idea out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike D.</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-172</link>
		<dc:creator>Mike D.</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-172</guid>
		<description>Geof,

Personally, I&#039;m totally cool with you trying to suck people over to WordPress. I&#039;m interested in using whatever tool is best for the job, and the only reason I used MT to begin with is that I had some experience with it, so it was easy to implement.  Perhaps I should do an audit of WordPress before this blog gets too big.

You did mention however that you didn&#039;t switch to MT because you don&#039;t like dynamic page-serving. MT doesn&#039;t have dynamic page serving.  It requires you to compile everything when you republish.</description>
		<content:encoded><![CDATA[<p>Geof,</p>
<p>Personally, I&#8217;m totally cool with you trying to suck people over to WordPress. I&#8217;m interested in using whatever tool is best for the job, and the only reason I used MT to begin with is that I had some experience with it, so it was easy to implement.  Perhaps I should do an audit of WordPress before this blog gets too big.</p>
<p>You did mention however that you didn&#8217;t switch to MT because you don&#8217;t like dynamic page-serving. MT doesn&#8217;t have dynamic page serving.  It requires you to compile everything when you republish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Porter</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-173</link>
		<dc:creator>Porter</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-173</guid>
		<description>&lt;blockquote&gt;&lt;p&gt;The first is that it doesnâ€™t offer dynamic page serving...&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This is not strictly true. For some time now Movable Type&#039;s been shipping with &lt;a href=&quot;http://www.nonplus.net/software/mt/CustomDynamicPages.htm&quot; rel=&quot;nofollow&quot;&gt;a script that allows you to dynamically generate pages&lt;/a&gt;. It&#039;s not officially supported and it&#039;s not terribly well documented, even unofficially, but it&#039;s there.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<blockquote><p>The first is that it doesnâ€™t offer dynamic page serving&#8230;</p>
</blockquote>
<p>This is not strictly true. For some time now Movable Type&#8217;s been shipping with <a href="http://www.nonplus.net/software/mt/CustomDynamicPages.htm" rel="nofollow">a script that allows you to dynamically generate pages</a>. It&#8217;s not officially supported and it&#8217;s not terribly well documented, even unofficially, but it&#8217;s there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: orange haired boy</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-174</link>
		<dc:creator>orange haired boy</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-174</guid>
		<description>Glad you like the script! :)</description>
		<content:encoded><![CDATA[<p>Glad you like the script! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-175</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-175</guid>
		<description>As Porter mentioned, we do have a dynamic script available for people that want to go that route, but i shudder to think how much more work it would have taken to generate 50,000 pageviews with every one having to hit a database. I&#039;m a PHP guy myself, so I know why people like dynamic stuff, but the reality is, very few people have anything that&#039;s changing, and I&#039;d rather wait 10 seconds to post myself than have 10,000 people each wait a second. Now, then...

&quot;With the release of Movable Type 3.0, Iâ€™m not sure why Six Apart didnâ€™t get rid of the default popup commenting system.&quot; We have. We made lots of nice changes like that (such as yyyy/mm/dd/dirified_title.html post archives) but we don&#039;t enforce them on existing site&#039;s templates because, well, you know why.  We also move comments inline on individual archives, but there&#039;s a question about whether we should &lt;em&gt;require&lt;/em&gt; individual archives for users who might otherwise opt not to have them.

Personally, I&#039;d recommend Shaun&#039;s readfile solution, that seems most robust, at least for now. Finally, I think we&#039;re in a position to smooth out a lot of these little niggling things that (honest to god) probably bother us even more than they bother you. Thanks for doing all the work of documenting this, though, I&#039;m glad to pass the link on to people.</description>
		<content:encoded><![CDATA[<p>As Porter mentioned, we do have a dynamic script available for people that want to go that route, but i shudder to think how much more work it would have taken to generate 50,000 pageviews with every one having to hit a database. I&#8217;m a PHP guy myself, so I know why people like dynamic stuff, but the reality is, very few people have anything that&#8217;s changing, and I&#8217;d rather wait 10 seconds to post myself than have 10,000 people each wait a second. Now, then&#8230;</p>
<p>&#8220;With the release of Movable Type 3.0, Iâ€™m not sure why Six Apart didnâ€™t get rid of the default popup commenting system.&#8221; We have. We made lots of nice changes like that (such as yyyy/mm/dd/dirified_title.html post archives) but we don&#8217;t enforce them on existing site&#8217;s templates because, well, you know why.  We also move comments inline on individual archives, but there&#8217;s a question about whether we should <em>require</em> individual archives for users who might otherwise opt not to have them.</p>
<p>Personally, I&#8217;d recommend Shaun&#8217;s readfile solution, that seems most robust, at least for now. Finally, I think we&#8217;re in a position to smooth out a lot of these little niggling things that (honest to god) probably bother us even more than they bother you. Thanks for doing all the work of documenting this, though, I&#8217;m glad to pass the link on to people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-176</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-176</guid>
		<description>Err, I meant to recommend virtual, not readfile. Pity the poor suit, pretending to be a real geek.</description>
		<content:encoded><![CDATA[<p>Err, I meant to recommend virtual, not readfile. Pity the poor suit, pretending to be a real geek.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-177</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-177</guid>
		<description>Oh, then you definitely need to check out Brad Choate&#039;s &lt;a href=&quot;http://bradchoate.com/weblog/2002/10/12/smart-templating-with-movable-type&quot; rel=&quot;nofollow&quot;&gt;Smart Templating&lt;/a&gt; System.  It combines MT with The PHP Smarty Template System.  Wicked sick...as the kids say these days.  Don&#039;t they?</description>
		<content:encoded><![CDATA[<p>Oh, then you definitely need to check out Brad Choate&#8217;s <a href="http://bradchoate.com/weblog/2002/10/12/smart-templating-with-movable-type" rel="nofollow">Smart Templating</a> System.  It combines MT with The PHP Smarty Template System.  Wicked sick&#8230;as the kids say these days.  Don&#8217;t they?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-178</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-178</guid>
		<description>Whenever you include a file using a http:// path whatever the web server executes that page with -- be it Perl, Python, or whatever -- is run and you just get the output. It&#039;s the same as if you included &lt;a href=&quot;http://www.google.com/,&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/,&lt;/a&gt; it opens the page just like a browser would and reads the content. However this means at least one other Apache process is spawned for every page load. virtual() does the same thing. Ouch! Be nice to your web server.

The cost of dynamic pages is highly exaggerated. I speak from experience of running a service (Ping-O-Matic) that generates well over a hundred thousand queries per day. MySQL is incredibly fast, and it gets better with every release. I also run a few other high traffic fully dynamic sites (based on WordPress) and nearly every page is generated in under a tenth of a second, most under a twentieth. Google reports a few random searches as taking 0.11-0.41 seconds. If my pages are as fast or faster than Google and cause no perceptible load on the server then I&#039;m not worried about anything.</description>
		<content:encoded><![CDATA[<p>Whenever you include a file using a http:// path whatever the web server executes that page with &#8212; be it Perl, Python, or whatever &#8212; is run and you just get the output. It&#8217;s the same as if you included <a href="http://www.google.com/," rel="nofollow"></a><a href="http://www.google.com/" rel="nofollow">http://www.google.com/</a>, it opens the page just like a browser would and reads the content. However this means at least one other Apache process is spawned for every page load. virtual() does the same thing. Ouch! Be nice to your web server.</p>
<p>The cost of dynamic pages is highly exaggerated. I speak from experience of running a service (Ping-O-Matic) that generates well over a hundred thousand queries per day. MySQL is incredibly fast, and it gets better with every release. I also run a few other high traffic fully dynamic sites (based on WordPress) and nearly every page is generated in under a tenth of a second, most under a twentieth. Google reports a few random searches as taking 0.11-0.41 seconds. If my pages are as fast or faster than Google and cause no perceptible load on the server then I&#8217;m not worried about anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-179</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-179</guid>
		<description>Good info Mike.

I&#039;ve implemented techniques very similar to these for the recent redesign of Stopdesign for search/results pages. The thing I most like (now that a majority of the site is powered by MT) is the ability to filter out or include certain sections of the site. The fact that most of the template is now driven by my own PHP and HTML means much more customization, and the ability to make the content look less like a default MT search (no offense to Jay).

I had comment preview pages rendering in the same fashion, but comment error pages were another beast that I couldn&#039;t figure out. Actually, it was determining whether to show an error page, or to redirect back to the entry page with the new comment added. So instead, I&#039;ve masked the ugly URLs (my cgiwrap URLs are even longer than the standard MT paths) via mod_rewrite.</description>
		<content:encoded><![CDATA[<p>Good info Mike.</p>
<p>I&#8217;ve implemented techniques very similar to these for the recent redesign of Stopdesign for search/results pages. The thing I most like (now that a majority of the site is powered by MT) is the ability to filter out or include certain sections of the site. The fact that most of the template is now driven by my own PHP and HTML means much more customization, and the ability to make the content look less like a default MT search (no offense to Jay).</p>
<p>I had comment preview pages rendering in the same fashion, but comment error pages were another beast that I couldn&#8217;t figure out. Actually, it was determining whether to show an error page, or to redirect back to the entry page with the new comment added. So instead, I&#8217;ve masked the ugly URLs (my cgiwrap URLs are even longer than the standard MT paths) via mod_rewrite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sosa</title>
		<link>http://www.mikeindustries.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.mikeindustries.com%2Fblog%2Farchive%2F2004%2F06%2Fmt-cgi-to-php&amp;seed_title=Converting+CGI+Movable+Type+Templates+to+PHP/comment-page-1#comment-180</link>
		<dc:creator>sosa</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-180</guid>
		<description>I&#039;ve implemented that anti-popup technique on my blog and included comments and trackback directly upon individual entries. But once somebody post a comment the cgi was executed then redirected to somekind of limbo with no way back. My first tought was of a php-redirect but it silmply didn&#039;t work, so i&#039;ve made a lo-fi javascript solution that is working very well.


window.location.replace(&#039;#comments&#039;);


where  #comments is the div&#039;s id where i had my comments

Â¿any better idea?

sorry for my bad-english.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve implemented that anti-popup technique on my blog and included comments and trackback directly upon individual entries. But once somebody post a comment the cgi was executed then redirected to somekind of limbo with no way back. My first tought was of a php-redirect but it silmply didn&#8217;t work, so i&#8217;ve made a lo-fi javascript solution that is working very well.</p>
<p>window.location.replace(&#8216;#comments&#8217;);</p>
<p>where  #comments is the div&#8217;s id where i had my comments</p>
<p>Â¿any better idea?</p>
<p>sorry for my bad-english.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
