<?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>PHP Trivandrum &#187; php5-cli</title>
	<atom:link href="http://www.php-trivandrum.org/tag/php5-cli/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-trivandrum.org</link>
	<description>Get addicted to PHP</description>
	<lastBuildDate>Fri, 27 Jan 2012 03:19:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Web Spider using php cli</title>
		<link>http://www.php-trivandrum.org/code-snippets/web-spider-using-php-cli/</link>
		<comments>http://www.php-trivandrum.org/code-snippets/web-spider-using-php-cli/#comments</comments>
		<pubDate>Thu, 07 May 2009 03:47:04 +0000</pubDate>
		<dc:creator>jijutm</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[php snippets]]></category>
		<category><![CDATA[php5-cli]]></category>

		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=252</guid>
		<description><![CDATA[Purely on academic basis, I had once helped to cook up a web spider, which is used to build site maps. The spider was written in php and uses a couple of reg-exp matches, and finally writes the full sitemap from the start url. The system is assembled using two classes, WebPage and WebSpider. Then [...]]]></description>
		<wfw:commentRss>http://www.php-trivandrum.org/code-snippets/web-spider-using-php-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User input in php command line</title>
		<link>http://www.php-trivandrum.org/code-snippets/user-input-in-php-command-line/</link>
		<comments>http://www.php-trivandrum.org/code-snippets/user-input-in-php-command-line/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 19:22:35 +0000</pubDate>
		<dc:creator>jijutm</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php command line]]></category>
		<category><![CDATA[php tips]]></category>
		<category><![CDATA[php5-cli]]></category>

		<guid isPermaLink="false">http://www.php-trivandrum.org/2007/01/17/user-input-in-php-command-line/</guid>
		<description><![CDATA[Ever wondered how to capture the user input when writing php command line scripts ?
&#60;?php&#160;function&#160;getInput($msg){&#160;&#160;fwrite(STDOUT,&#160;"$msg:&#160;");&#160;&#160;$varin&#160;=&#160;trim(fgets(STDIN));&#160;&#160;return&#160;$varin;}&#160;?&#62;
The function above is being used by me in certain command line scripts, where I need user responses.
]]></description>
		<wfw:commentRss>http://www.php-trivandrum.org/code-snippets/user-input-in-php-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

