<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#{茶男與藍牌} &#187; Practical Source Code</title>
	<atom:link href="http://www.chentianwen.net/wordpress/category/it/practical-source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chentianwen.net/wordpress</link>
	<description>Life has to be exciting.</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:34:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Parsing a URI Reference with a Regular Expression</title>
		<link>http://www.chentianwen.net/wordpress/2008/10/04/parsing-a-uri-reference-with-a-regular-expression/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=parsing-a-uri-reference-with-a-regular-expression</link>
		<comments>http://www.chentianwen.net/wordpress/2008/10/04/parsing-a-uri-reference-with-a-regular-expression/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 14:52:57 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Practical Source Code]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=95</guid>
		<description><![CDATA[From rfc2396 Appendix B ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? 12 3 4 5 6 7 8 9 For example, matching the above expression to http://www.ics.uci.edu/pub/ietf/uri/#Related results in the following subexpression matches: $1 = http: $2 = http $3 = //www.ics.uci.edu $4 = www.ics.uci.edu $5 = /pub/ietf/uri/ $6 = &#60;undefined&#62; $7 = &#60;undefined&#62; $8 = #Related $9 = Related where [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/10/04/parsing-a-uri-reference-with-a-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP CURL函数模拟浏览器抓取网站信息</title>
		<link>http://www.chentianwen.net/wordpress/2008/09/11/php-curl%e5%87%bd%e6%95%b0%e6%a8%a1%e6%8b%9f%e6%b5%8f%e8%a7%88%e5%99%a8%e6%8a%93%e5%8f%96%e7%bd%91%e7%ab%99%e4%bf%a1%e6%81%af/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-curl%25e5%2587%25bd%25e6%2595%25b0%25e6%25a8%25a1%25e6%258b%259f%25e6%25b5%258f%25e8%25a7%2588%25e5%2599%25a8%25e6%258a%2593%25e5%258f%2596%25e7%25bd%2591%25e7%25ab%2599%25e4%25bf%25a1%25e6%2581%25af</link>
		<comments>http://www.chentianwen.net/wordpress/2008/09/11/php-curl%e5%87%bd%e6%95%b0%e6%a8%a1%e6%8b%9f%e6%b5%8f%e8%a7%88%e5%99%a8%e6%8a%93%e5%8f%96%e7%bd%91%e7%ab%99%e4%bf%a1%e6%81%af/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 17:10:00 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Practical Source Code]]></category>
		<category><![CDATA[CURL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=40</guid>
		<description><![CDATA[<p>set_time_limit(0); </p> <p>function _rand() { </p> <p> $length=26; </p> <p> $chars = &#8220;0123456789abcdefghijklmnopqrstuvwxyz&#8221;; </p> <p> $max = strlen($chars) &#8211; 1; </p> <p> mt_srand((double)microtime() * 1000000); </p> <p> $string = &#8221;; </p> <p> for($i = 0; $i &#60; $length; $i++) { </p> <p> $string .= $chars[mt_rand(0, $max)]; </p> <p> } </p> <p> return $string; </p> <p>} [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/09/11/php-curl%e5%87%bd%e6%95%b0%e6%a8%a1%e6%8b%9f%e6%b5%8f%e8%a7%88%e5%99%a8%e6%8a%93%e5%8f%96%e7%bd%91%e7%ab%99%e4%bf%a1%e6%81%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buffered File Download in PHP</title>
		<link>http://www.chentianwen.net/wordpress/2008/09/11/buffered-file-download-in-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=buffered-file-download-in-php</link>
		<comments>http://www.chentianwen.net/wordpress/2008/09/11/buffered-file-download-in-php/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 16:52:08 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Practical Source Code]]></category>
		<category><![CDATA[File Download]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=46</guid>
		<description><![CDATA[<p>From <a href="http://www.php.net/manual/en/function.fread.php#84115" target="_blank">http://www.php.net/manual/en/function.fread.php#84115</a></p> <p> I couldn't get some of the previous resume scripts to work with Free Download Manager or Firefox. I did some clean up and modified the code a little.</p> <p>Changes:<br /> 1. Added a Flag to specify if you want download to be resumable or not<br /> 2. Some error checking [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/09/11/buffered-file-download-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

