<?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"
	>
<channel>
	<title>Comments on: Compressing your HTML, CSS and Javascript using simple PHP Code</title>
	<atom:link href="http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/</link>
	<description>Ideas For Sharing</description>
	<pubDate>Thu, 20 Nov 2008 16:59:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: wkarim</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-4281</link>
		<dc:creator>wkarim</dc:creator>
		<pubDate>Wed, 27 Aug 2008 22:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-4281</guid>
		<description>@louis
Thanks for your comment.
I think I need to simplify it a lil yes</description>
		<content:encoded><![CDATA[<p>@louis<br />
Thanks for your comment.<br />
I think I need to simplify it a lil yes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-4279</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Wed, 27 Aug 2008 22:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-4279</guid>
		<description>Hi wkarim, and thanks for sharing these pieces of code. They are interesting.

Though I wonder about your html_compress function. Is it necessary to use so much regex ? I have a function that does the nearly the same :

function compress($string){
	$string = str_replace("\n", "", $string);
	$string = str_replace("\t", "", $string);
	$string = wordwrap($string, 990, "\n");
	
	return $string;
}

The thing that is cleary missing, is a way to preserve the &lt;code&gt;code&lt;/code&gt; and &lt;code&gt;pre&lt;/code&gt; tags. So my function is not complete, but yours seems overkill to me.

There has to be a correct middle.</description>
		<content:encoded><![CDATA[<p>Hi wkarim, and thanks for sharing these pieces of code. They are interesting.</p>
<p>Though I wonder about your html_compress function. Is it necessary to use so much regex ? I have a function that does the nearly the same :</p>
<p>function compress($string){<br />
	$string = str_replace("\n", &#8220;", $string);<br />
	$string = str_replace("\t", &#8220;", $string);<br />
	$string = wordwrap($string, 990, &#8220;\n");</p>
<p>	return $string;<br />
}</p>
<p>The thing that is cleary missing, is a way to preserve the <code>code</code> and <code>pre</code> tags. So my function is not complete, but yours seems overkill to me.</p>
<p>There has to be a correct middle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wkarim</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-373</link>
		<dc:creator>wkarim</dc:creator>
		<pubDate>Thu, 27 Mar 2008 06:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-373</guid>
		<description>@Shawn
there are a lot of ways to speed up static contents of your website, check your server's configuration optimization tutorials for more info. Most common way is to put them on a separate server with a different sub domain like static.gadelkareem.com and use something like lighttpd to serve static contents.</description>
		<content:encoded><![CDATA[<p>@Shawn<br />
there are a lot of ways to speed up static contents of your website, check your server&#8217;s configuration optimization tutorials for more info. Most common way is to put them on a separate server with a different sub domain like static.gadelkareem.com and use something like lighttpd to serve static contents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-372</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Thu, 27 Mar 2008 06:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-372</guid>
		<description>any idea's on how i can get my front portal page to load faster (graphics and animation from frontpage)</description>
		<content:encoded><![CDATA[<p>any idea&#8217;s on how i can get my front portal page to load faster (graphics and animation from frontpage)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walid GadElKarim &#187; Blog Archive &#187; Dynamic Content Caching using Lighty + mod_magnet + lua</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-187</link>
		<dc:creator>Walid GadElKarim &#187; Blog Archive &#187; Dynamic Content Caching using Lighty + mod_magnet + lua</dc:creator>
		<pubDate>Mon, 17 Sep 2007 06:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-187</guid>
		<description>[...] focus on caching your PHP scripts using Lua and mod_magnet under Lighttpd, You should read &#8220;Compressing your HTML, CSS and Javascript using simple PHP Code&#8221; as I will use some functions from [...]</description>
		<content:encoded><![CDATA[<p>[...] focus on caching your PHP scripts using Lua and mod_magnet under Lighttpd, You should read &#8220;Compressing your HTML, CSS and Javascript using simple PHP Code&#8221; as I will use some functions from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogulate</title>
		<link>http://gadelkareem.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-186</link>
		<dc:creator>Blogulate</dc:creator>
		<pubDate>Wed, 08 Aug 2007 14:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://walid.kurtubba.com/2007/06/23/compressing-your-html-css-and-javascript-using-simple-php-code/#comment-186</guid>
		<description>Great post dude .. worked</description>
		<content:encoded><![CDATA[<p>Great post dude .. worked</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.152 seconds -->
