<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Imam Ferianto&#039;s Blog</title>
	<atom:link href="http://iferianto.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iferianto.wordpress.com</link>
	<description>Open Share Idea &#38; Knowledge For Better World</description>
	<lastBuildDate>Mon, 19 Jul 2010 10:08:58 +0000</lastBuildDate>
	<language>id</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iferianto.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Imam Ferianto&#039;s Blog</title>
		<link>http://iferianto.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iferianto.wordpress.com/osd.xml" title="Imam Ferianto&#039;s Blog" />
	<atom:link rel='hub' href='http://iferianto.wordpress.com/?pushpress=hub'/>
		<item>
		<title>database schema for quickcount or election polling</title>
		<link>http://iferianto.wordpress.com/2010/07/19/database-schema-for-quickcount-or-election-polling/</link>
		<comments>http://iferianto.wordpress.com/2010/07/19/database-schema-for-quickcount-or-election-polling/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 10:07:47 +0000</pubDate>
		<dc:creator>iferianto</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gammu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://iferianto.wordpress.com/?p=6</guid>
		<description><![CDATA[This page is described about database schema for quickcount application on election polling event. This is a basic Idea You can go further take advantage development about the database. Please reading on this article: http://iferianto.blogdetik.com/2010/07/19/database-pilkada-gammu-mysql/ Thankyou &#38; Happy programming<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=6&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This page is described about database schema for quickcount application on election polling event. This is a basic Idea You can go further take advantage development about the database. Please reading on this article:</p>
<p><a href="http://iferianto.blogdetik.com/2010/07/19/database-pilkada-gammu-mysql/">http://iferianto.blogdetik.com/2010/07/19/database-pilkada-gammu-mysql/</a></p>
<p>Thankyou &amp; Happy programming</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iferianto.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iferianto.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iferianto.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=6&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iferianto.wordpress.com/2010/07/19/database-schema-for-quickcount-or-election-polling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5381c3186b0f15487f8d74d4f85ca01f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">iferianto</media:title>
		</media:content>
	</item>
		<item>
		<title>test</title>
		<link>http://iferianto.wordpress.com/2006/05/14/test/</link>
		<comments>http://iferianto.wordpress.com/2006/05/14/test/#comments</comments>
		<pubDate>Sun, 14 May 2006 01:34:52 +0000</pubDate>
		<dc:creator>iferianto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://iferianto.wordpress.com/2006/05/14/test/</guid>
		<description><![CDATA[.adHeadline {font: bold 10pt Arial; text-decoration: underline; color: blue;} .adText {font: normal 10pt Arial; text-decoration: none; color: black;}Your Ad Here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=4&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- Begin: AdBrite -->      .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: blue;}  .adText {font: normal 10pt Arial; text-decoration: none; color: black;}<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=103034&amp;afsid=1" class="adHeadline">Your Ad Here</a></p>
<p><!-- End: AdBrite --></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/iferianto.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/iferianto.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iferianto.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iferianto.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iferianto.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=4&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iferianto.wordpress.com/2006/05/14/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5381c3186b0f15487f8d74d4f85ca01f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">iferianto</media:title>
		</media:content>
	</item>
		<item>
		<title>welcome visitor</title>
		<link>http://iferianto.wordpress.com/2006/05/14/welcome-visitor/</link>
		<comments>http://iferianto.wordpress.com/2006/05/14/welcome-visitor/#comments</comments>
		<pubDate>Sun, 14 May 2006 01:14:38 +0000</pubDate>
		<dc:creator>iferianto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://iferianto.wordpress.com/2006/05/14/welcome-visitor/</guid>
		<description><![CDATA[Let&#8217;s make science and knowlege (scpecialy computer knowledge) make our life simple In the first post I will tell you how to find some text inside directories and sub directories using php scripting engine. case: Suddenly i need to replace my script to featin new project that containt new keyword. sadnews that I have more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=3&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Let&#8217;s make science and knowlege (scpecialy computer knowledge) make our life simple</div>
<p>In the first post I will tell you how to find some text inside directories and sub directories<br />
using php scripting engine.</p>
<p>case:</p>
<p>Suddenly i need to replace my script to featin new project that containt new keyword.<br />
sadnews that I have more than 50 file to replace in folder and subfolder.<br />
I think How can I automate this process?</p>
<p>solution:<br />
I have idea to find that file containt keywords then replace text using PHP-script, write new content<br />
and loop inside folder and sub folder</p>
<p>algorithm:<br />
1. opendir folder using default php function opendir()<br />
2. loop readdir using php function readdir()<br />
3. read current entire file using php function fopen(),  fread() , filesize(), fclose()<br />
4. search entire content using php regexp function eregi()<br />
5. if keywords found then i goto next step, if not then I goback loop to step 2<br />
6. if found then i replace keyword string in old content and make new content  using<br />
   php function str_replace()<br />
7. write new content to file using , fopen(), fwrite(), fclose()</p>
<p>practical:</p>
<p>step1  , we need to define which is start folder<br />
and what is keywords and what is replace string</p>
<p>in code above I must replace \ (slash) with /  (backslash) that make php more easy to read folder</p>
<p>step 2, make function my_replace_content</p>
<p>the reason i make this function is if we detect file is folder then we can call this function again<br />
and recursivelly read entire dir.<br />
$folderparam is parameter that we can capture from last call</p>
<p>step 3 and next, add opendir and loop with readdir function to read entire dir and soo on</p>
<p>next step, fullsource code that we can write:</p>
<p>last step, implementation in cmd shell:<br />
clic start-&gt; run -&gt; type :       cmd           , then pres [enter button]</p>
<p>c:\&gt;c:\apache\php\php.exe -q c:\replacestring.php</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/iferianto.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/iferianto.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iferianto.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iferianto.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iferianto.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=3&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iferianto.wordpress.com/2006/05/14/welcome-visitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5381c3186b0f15487f8d74d4f85ca01f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">iferianto</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://iferianto.wordpress.com/2006/05/13/hello-world/</link>
		<comments>http://iferianto.wordpress.com/2006/05/13/hello-world/#comments</comments>
		<pubDate>Sat, 13 May 2006 23:53:04 +0000</pubDate>
		<dc:creator>iferianto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=1&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/iferianto.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/iferianto.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iferianto.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iferianto.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iferianto.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iferianto.wordpress.com&amp;blog=223421&amp;post=1&amp;subd=iferianto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iferianto.wordpress.com/2006/05/13/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5381c3186b0f15487f8d74d4f85ca01f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">iferianto</media:title>
		</media:content>
	</item>
	</channel>
</rss>
