<?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>One day at a time &#187; PHP</title>
	<atom:link href="http://www.terencekwan.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.terencekwan.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 14 Mar 2010 18:28:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PPTwo Lines Client-Side JavaScript to Server-Side PHP</title>
		<link>http://www.terencekwan.com/pptwo-lines-client-side-javascript-to-server-side-php</link>
		<comments>http://www.terencekwan.com/pptwo-lines-client-side-javascript-to-server-side-php#comments</comments>
		<pubDate>Sat, 21 Mar 2009 02:45:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=86</guid>
		<description><![CDATA[It is a very useful helper function for PHP and Javascript.
http://phpolait.sourceforge.net/doc/index.html
PHP-O-Lait version 0.5.1 is released, with a bug fix that caused the jsolait.js JavaScript library not to be included correctly in certain circumstances. Many thanks to Olaf Bottek for locating the bug and assisting in correcting it. A few documentation changes have also been made, [...]]]></description>
		<wfw:commentRss>http://www.terencekwan.com/pptwo-lines-client-side-javascript-to-server-side-php/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
		<item>
		<title>setting the user agent in php curl</title>
		<link>http://www.terencekwan.com/setting-the-user-agent-in-php-curl</link>
		<comments>http://www.terencekwan.com/setting-the-user-agent-in-php-curl#comments</comments>
		<pubDate>Sun, 28 Sep 2008 05:41:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://www.terencekwan.com/?p=6</guid>
		<description><![CDATA[I am trying to write a spider to scraoe Google result. Google returns different content for differnet user agent. Here is how to setup the user agent in curl.
$url=&#8217;http://www.google.com/search?hl=en&#38;q=&#8217;.$keyword.&#8217;&#38;start=10&#8242;;
$ch = curl_init($url);
$useragent=&#8221;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1&#8243;;
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
]]></description>
		<wfw:commentRss>http://www.terencekwan.com/setting-the-user-agent-in-php-curl/feed</wfw:commentRss>
		<slash:comments>-1</slash:comments>
		</item>
	</channel>
</rss>
