<?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>dijexi.com &#187; Windows</title>
	<atom:link href="http://www.dijexi.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijexi.com</link>
	<description>free programming tutorial, tips and tricks on php, codeigniter, delphi, dotnet, ajax and more..</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:21:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Beautiful Firefox Desktop Wallpaper to Jazz Up your Computer</title>
		<link>http://www.dijexi.com/2009/07/beautiful-firefox-desktop-wallpaper-to-jazz-up-your-computer/</link>
		<comments>http://www.dijexi.com/2009/07/beautiful-firefox-desktop-wallpaper-to-jazz-up-your-computer/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 01:48:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[firefox desktop wallpaper]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/07/beautiful-firefox-desktop-wallpaper-to-jazz-up-your-computer/</guid>
		<description><![CDATA[Feeling bored with your plain old desktop wallpaper? Then this list is worth to take a look. Listed here are the most beautiful Firefox-themed desktop wallpaper that you can download and set it as your desktop wallpaper. It will make your computer, in Indonesian term “Firefox banget!”. &#160; &#160; &#160; Technorati Tags: firefox desktop wallpaper [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Feeling bored with your plain old desktop wallpaper? Then this list is worth to take a look. Listed here are the most beautiful Firefox-themed desktop wallpaper that you can download and set it as your desktop wallpaper. It will make your computer, in Indonesian term “Firefox banget!”.</p>
<p><a href="http://www.flickr.com/photos/danielomx/3269988290/"><img title="Firefox on Flames xD" alt="Firefox on Flames xD" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox-on-Flames-xD.jpg" width="500" height="375" /></a></p>
<p> <span id="more-1044"></span>
<p>&#160;</p>
<p><a href="http://changlisheng.deviantart.com/art/firefox-61219087"><img title="Firefox Wallpaper by changlisheng" alt="Firefox Wallpaper by changlisheng" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox_by_changlisheng.jpg" width="500" height="375" /></a></p>
<p><a href="http://raz17.deviantart.com/art/FireFox-Entangled-90475860"><img title="Firefox Wallpaper by Raz17" alt="Firefox Wallpaper by Raz17" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/FireFox_Entangled_by_Raz17.jpg" width="500" height="375" /></a></p>
<p><a href="http://weboso.deviantart.com/art/FireFOX-2005-wallpaper-14770191"><img title="Firefox Wallpaper by weboso" alt="Firefox Wallpaper by weboso" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/FireFOX_2005_wallpaper_by_weboso.jpg" width="500" height="400" /></a></p>
<p><a href="http://tank90.deviantart.com/art/Firefox-Dark-Edition-14080157"><img title="Firefox Dark Edition by tank90" alt="Firefox Dark Edition by tank90" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_Dark_Edition_by_tank90.png" width="500" height="400" /></a></p>
<p><a href="http://changlisheng.deviantart.com/art/firefox-2-61219390"><img title="firefox 2 by changlisheng" alt="firefox 2 by changlisheng" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox_2_by_changlisheng.jpg" width="500" height="375" /></a></p>
<p><a href="http://matthewok.deviantart.com/art/Firefox-wallpaper-35714097"><img title="Firefox wallpaper by matthewOK" alt="Firefox wallpaper by matthewOK" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_wallpaper_by_matthewOK.jpg" width="500" height="375" /></a></p>
<p><a href="http://hotmag.deviantart.com/art/Firefox-wallpaper-66019610"><img title="Firefox wallpaper by hotmag" alt="Firefox wallpaper by hotmag" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_wallpaper_by_hotmag.jpg" width="500" height="400" /></a></p>
<p><a href="http://beyondaphotic.deviantart.com/art/Spread-Firefox-Hallowe-en-11689733"><img title="Spread Firefox Halloween by BeyondAphotic" alt="Spread Firefox Halloween by BeyondAphotic" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Spread_Firefox__Hallowe__en__by_BeyondAphotic.jpg" width="500" height="375" /></a></p>
<p><a href="http://michaelmknight.deviantart.com/art/Firefox-3-Globe-Wallpaper-76313932"><img title="Firefox 3 Globe Wallpaper by michaelmknight" alt="Firefox 3 Globe Wallpaper by michaelmknight" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_3_Globe_Wallpaper_by_michaelmknight.jpg" width="500" height="400" /></a></p>
<p><a href="http://maxtorade.deviantart.com/art/Firefox-rules-Wallpaper-76225352"><img title="Firefox rules Wallpaper by Maxtorade" alt="Firefox rules Wallpaper by Maxtorade" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_rules_Wallpaper_by_Maxtorade.png" width="500" height="375" /></a></p>
<p><a href="http://codemyster.deviantart.com/art/Fractal-Firefox-Wallpaper-98410900"><img title="Fractal Firefox Wallpaper by codemyster" alt="Fractal Firefox Wallpaper by codemyster" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Fractal_Firefox_Wallpaper_by_codemyster.png" width="500" height="375" /></a></p>
<p><a href="http://darkmagic1an.deviantart.com/art/Mozilla-Firefox-art-version-112966942"><img title="Mozilla Firefox art version by darkmagic1an" alt="Mozilla Firefox art version by darkmagic1an" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Mozilla_Firefox_art_version_by_darkmagic1an.jpg" width="500" height="375" /></a></p>
<p><a href="http://greiker.deviantart.com/art/Wallpaper-Firefox-114109836"><img title="Wallpaper Firefox by Greiker" alt="Wallpaper Firefox by Greiker" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Wallpaper_Firefox_by_Greiker.jpg" width="500" height="375" /></a></p>
<p><a href="http://caiobeltrao.deviantart.com/art/Nova-Mozilla-Firefox-31382299"><img title="Nova Mozilla Firefox by caiobeltrao" alt="Nova Mozilla Firefox by caiobeltrao" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Nova___Mozilla_Firefox_by_caiobeltrao.jpg" width="500" height="375" /></a></p>
<p><a href="http://nextexile.deviantart.com/art/What-did-you-expect-69349326"><img title="What did you expect by nextexile" alt="What did you expect by nextexile" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/What_did_you_expect__by_nextexile.jpg" width="500" height="312" /></a></p>
<p><a href="http://leesized.deviantart.com/art/Firefox-Wallpaper-55682721"><img title="Firefox Wallpaper by leesized" alt="Firefox Wallpaper by leesized" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox_Wallpaper_by_leesized.png" width="500" height="375" /></a></p>
<p><a href="http://pandalegacy.deviantart.com/art/Mozilla-Firefox-Blue-Wallpaper-53813795"><img title="Mozilla Firefox Blue Wallpaper by PandaLegacy" alt="Mozilla Firefox Blue Wallpaper by PandaLegacy" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Mozilla_Firefox_Blue_Wallpaper_by_PandaLegacy.jpg" width="500" height="375" /></a></p>
<p><a href="http://steam10.deviantart.com/art/Abstract-Firefox-Wallpaper-44585228"><img title="Abstract Firefox Wallpaper by SteaM10" alt="Abstract Firefox Wallpaper by SteaM10" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Abstract_Firefox_Wallpaper_by_SteaM10.jpg" width="500" height="400" /></a></p>
<p>&#160;</p>
<p><a href="http://www.flickr.com/photos/flod/2319233390/"><img title="Firefox wallpaper just a matter of perspective" alt="Firefox wallpaper just a matter of perspective" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox-wallpaper-just-a-matter-of-perspective.jpg" width="500" height="353" /></a></p>
<p><a href="http://www.flickr.com/photos/mrtopf/67984062/"><img title="Firefox on the rise" alt="Firefox on the rise" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox-on-the-rise.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2907886416/"><img title="firefox wallpaper 1" alt="firefox wallpaper 1" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-1.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/umuthan/2382848983/"><img title="100% Organic Software Firefox Wallpaper" alt="100% Organic Software Firefox Wallpaper" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/100-Organic-Software-Firefox-Wallpaper.jpg" width="500" height="400" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2908402836/"><img title="firefox wallpaper 2" alt="firefox wallpaper 2" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-2.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2910049360/"><img title="firefox wallpaper 3" alt="firefox wallpaper 3" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-3.jpg" width="500" height="400" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909198775/"><img title="firefox wallpaper 4" alt="firefox wallpaper 4" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-4.jpg" width="500" height="400" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2910049370/"><img title="firefox wallpaper 5" alt="firefox wallpaper 5" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-5.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox74.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox74.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2908402820/"><img title="firefox wallpaper 6" alt="firefox wallpaper 6" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-6.jpg" width="500" height="312" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2908402864/"><img title="firefox wallpaper 7" alt="firefox wallpaper 7" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-7.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909198805/"><img title="firefox wallpaper 8" alt="firefox wallpaper 8" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-8.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.femfox.com/wp/ep2/800e.php"><img title="femfox ep2 800" alt="femfox ep2 800" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/femfox_ep2_800.jpg" width="500" height="375" /></a></p>
<p>&#160;</p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox57.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox57.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox150.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox150.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox2.jpg"><img alt="firefox2" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox2.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox6.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox6.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.fileden.com/files/2007/10/27/1545031/wallpapers/wall_ff_1.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/wall_ff_1.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.mostlysavingmoney.com/wallpapers/download/firefox9.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox9.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.fileden.com/files/2007/10/27/1545031/wallpapers/wall_ff_355.jpg"><img alt="" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/wall_ff_355.jpg" width="500" height="312" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909198793/"><img title="firefox wallpaper 10" alt="firefox wallpaper 10" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-10.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2984211722/"><img title="firefox wallpaper 20" alt="firefox wallpaper 20" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-20.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909198803/"><img title="firefox wallpaper 11" alt="firefox wallpaper 11" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-11.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909198783/"><img title="firefox wallpaper 12" alt="firefox wallpaper 12" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-12.jpg" width="500" height="313" /></a></p>
<p><a href="http://www.flickr.com/photos/byassir/2909271183/"><img title="firefox wallpaper 9" alt="firefox wallpaper 9" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-9.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2984208382/"><img title="firefox wallpaper 16" alt="firefox wallpaper 16" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-16.jpg" width="500" height="313" /></a></p>
<p><a href="http://www.flickr.com/photos/gacget/3246036022/"><img title="firefox wallpaper 13" alt="firefox wallpaper 13" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-13.jpg" width="500" height="400" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2983353005/"><img title="firefox wallpaper 19" alt="firefox wallpaper 19" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-19.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/flod/3092381868/"><img title="Firefox is everywhere" alt="Firefox is everywhere" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/Firefox-is-everywhere.jpg" width="500" height="333" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2983355947/"><img title="firefox wallpaper 14" alt="firefox wallpaper 14" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-14.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2983355039/"><img title="firefox wallpaper 15" alt="firefox wallpaper 15" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-15.jpg" width="500" height="375" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2983354895/"><img title="firefox wallpaper 17" alt="firefox wallpaper 17" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-17.jpg" width="500" height="400" /></a></p>
<p><a href="http://www.flickr.com/photos/projectarchive/2984207816/"><img title="firefox wallpaper 18" alt="firefox wallpaper 18" src="http://www.webdesignbooth.com/wp-content/uploads/2009/07/firefox-wallpaper-18.jpg" width="500" height="375" /></a></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0a1e483c-a9c2-461f-9c87-910000d7766e" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/firefox+desktop+wallpaper" rel="tag">firefox desktop wallpaper</a></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/07/best-free-utilities-software/" rel="bookmark">Best Free Utilities Software</a></li><li><a href="http://www.dijexi.com/2009/07/list-of-free-downloadable-wordpress-themes/" rel="bookmark">List of Free Downloadable WordPress Themes</a></li><li><a href="http://www.dijexi.com/2009/09/tips-for-using-the-rite-keywords-for-marketing-your-website/" rel="bookmark">Tips for using the rite keywords for marketing your website</a></li><li><a href="http://www.dijexi.com/2009/07/how-to-browse-internet-anonymously/" rel="bookmark">How To Browse Internet Anonymously</a></li><li><a href="http://www.dijexi.com/2010/06/how-to-use-tor-project-anonymous-ip-with-curl-php-on-linux/" rel="bookmark">How to Use Tor Project Anonymous IP with Curl PHP on Linux</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F07%2Fbeautiful-firefox-desktop-wallpaper-to-jazz-up-your-computer%2F&amp;linkname=Beautiful%20Firefox%20Desktop%20Wallpaper%20to%20Jazz%20Up%20your%20Computer"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/07/beautiful-firefox-desktop-wallpaper-to-jazz-up-your-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft and Yahoo got deal for 10-year pact on search engine</title>
		<link>http://www.dijexi.com/2009/07/microsoft-and-yahoo-got-deal-for-10-year-pact-on-search-engine/</link>
		<comments>http://www.dijexi.com/2009/07/microsoft-and-yahoo-got-deal-for-10-year-pact-on-search-engine/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 23:16:19 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/07/microsoft-and-yahoo-got-deal-for-10-year-pact-on-search-engine/</guid>
		<description><![CDATA[LONDON (MarketWatch) &#8212; Microsoft (MSFT) and Yahoo (YHOO) struck a long-awaited deal on Internet search in which Microsoft will power Yahoo&#8217;s search tool while Yahoo will become the exclusive sales force for both firms&#8217; premium search advertisers. Terms are for 10 years, in which Microsoft will license Yahoo&#8217;s core search technologies, and Microsoft&#8217;s Bing will [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p><img style="border-bottom: medium none; border-left: medium none; display: inline; margin-left: 0px; border-top: medium none; margin-right: 0px; border-right: medium none" alt="Image representing Yahoo! as depicted in Crunc..." align="right" src="http://www.crunchbase.com/assets/images/resized/0001/0836/10836v3-max-450x450.png" width="95" height="23" />LONDON (MarketWatch) &#8212; Microsoft (<a href="http://www.marketwatch.com/investing/stock/MSFT">MSFT</a>) and Yahoo (<a href="http://www.marketwatch.com/investing/stock/YHOO">YHOO</a>) struck a long-awaited deal on Internet search in which Microsoft will power Yahoo&#8217;s search tool while Yahoo will become the exclusive sales force for both firms&#8217; premium search advertisers. </p>
<p> <span id="more-1045"></span>
<p>Terms are for 10 years, in which Microsoft will license Yahoo&#8217;s core search technologies, and Microsoft&#8217;s Bing will become the exclusive algorithmic search and paid search platform for Yahoo sites. Microsoft will pay traffic acquisition costs at an initial rate of 88% of search revenue generated on Yahoo sites for the first five years. Yahoo sees the deal lifting annual operating income by around $500 million and capital expenditure savings of $200 million. Yahoo sees an annual operating cash flow benefit of $275 million.</p>
</p>
<div style="margin-top: 10px; height: 15px" class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/033e8f40-4848-4d63-aaaa-e05b783cf496/"><img style="border-bottom-style: none; border-right-style: none; border-top-style: none; float: right; border-left-style: none" class="zemanta-pixie-img" alt="Reblog this post [with Zemanta]" src="http://img.zemanta.com/reblog_e.png?x-id=033e8f40-4848-4d63-aaaa-e05b783cf496" /></a></div>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8d8babbb-86a2-4bce-9b83-5221da9f021b" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/yahoo" rel="tag">yahoo</a>,<a href="http://technorati.com/tags/Microsoft" rel="tag">Microsoft</a></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/10/google-does-not-use-the-keywords-meta-tags-in-web-ranking/" rel="bookmark">Google does not use the keywords meta tags in web ranking</a></li><li><a href="http://www.dijexi.com/2009/09/techniques-to-improve-your-google-search-rankings-today/" rel="bookmark">Techniques to improve your Google search rankings today</a></li><li><a href="http://www.dijexi.com/2009/09/search-engine-optimisation-the-basics/" rel="bookmark">Search Engine Optimisation - The Basics</a></li><li><a href="http://www.dijexi.com/2009/09/microsoft-excel-for-online-marketers/" rel="bookmark">Microsoft Excel For Online Marketers</a></li><li><a href="http://www.dijexi.com/2009/10/white-hat-vs-black-hat-seo-techniques/" rel="bookmark">White Hat vs Black Hat SEO Techniques</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F07%2Fmicrosoft-and-yahoo-got-deal-for-10-year-pact-on-search-engine%2F&amp;linkname=Microsoft%20and%20Yahoo%20got%20deal%20for%2010-year%20pact%20on%20search%20engine"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/07/microsoft-and-yahoo-got-deal-for-10-year-pact-on-search-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Disable C$ Sharing on Windows Operating System</title>
		<link>http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/</link>
		<comments>http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 03:18:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Security]]></category>
		<category><![CDATA[windows operating system]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/</guid>
		<description><![CDATA[By default all Microsoft Windows NT based operating system exposes hidden administrative shares options, which allowing the administrator of a machine to access the machine via the network. The administrative shares are: C$: To access to a partition or root directory. Other partitions available on your computer are also accessible via their letter, followed by [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>By default all Microsoft Windows NT based operating system exposes hidden administrative shares options, which allowing the administrator of a machine to access the machine via the network. The administrative shares are:</p>
<ul>
<li><b>C$:</b> To access to a partition or root directory. Other partitions available on your computer are also accessible via their letter, followed by the character &quot;$&quot;, for example D$, E$, etc</li>
<li><b>ADMIN$:</b> To access to% systemroot%, to manage a machine on the network</li>
<li><b>IPC$:</b> Allowing the communication network between processes</li>
<li><b>PRINT$:</b> Remote access to printers.</li>
</ul>
<p>So by default you can access all files in drive C: by simple connecting it by typing <a href="file://\\yourcomputer\C$">\\yourcomputer\C$</a> on Start &#8211; Run… menu or Windows Explorer.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/07/Enteringtheadministrativesharing.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Entering the administrative sharing" border="0" alt="Entering the administrative sharing" src="http://www.dijexi.com/wp-content/uploads/2009/07/Enteringtheadministrativesharing_thumb.png" width="244" height="133" /></a></p>
<p> For some security constraints, it may be necessary to remove access to administrative shares. </p>
<p> <span id="more-1030"></span>
<p>To do this, we must edit the registry, by type the following command in the Start &#8211; Run&#8230; menu:</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:40f65207-8526-4459-99ff-d298de078f0e" class="wlWriterEditableSmartContent">
<div class="dean_ch" style="white-space: wrap;">regedit</div>
</div>
<p>Then go to this item: </p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:c5613438-b065-4a23-8cc6-d082295989fd" class="wlWriterEditableSmartContent">
<div class="dean_ch" style="white-space: wrap;">HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters</div>
</div>
<p>Then, create a new<b> DWORD</b> value named<b> AutoShareWks</b> and set it to 0. To activate it again set the value to 1. </p>
<p>Your registry will looks like this:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/07/Modifiedregistry.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Modified registry" border="0" alt="Modified registry" src="http://www.dijexi.com/wp-content/uploads/2009/07/Modifiedregistry_thumb.png" width="504" height="337" /></a> </p>
<p>Modifications made will still be persistent even after restarting your PC.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:30b8ace9-ba46-4d0d-b56c-dad5fb7db61a" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/windows+operating+system" rel="tag">windows operating system</a></div>
</p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com" target="_blank">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com" target="_blank">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/07/microsoft-warns-of-serious-computer-security-hole/" rel="bookmark">Microsoft Warns of Serious Computer Security Hole</a></li><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2009/07/best-free-system-management-file-management-system-maintenance-anti-virus-anti-spyware-and-firewalls-software/" rel="bookmark">Best Free System Management, File Management, System Maintenance, Anti-virus, Anti-spyware and Firewalls Software</a></li><li><a href="http://www.dijexi.com/2009/07/reload-editor-installation/" rel="bookmark">Reload Editor Installation</a></li><li><a href="http://www.dijexi.com/2009/07/daftar-situs-penyedia-e-book-it/" rel="bookmark">Daftar Situs Penyedia E-Book IT</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F07%2Fhow-to-disable-c-sharing-on-windows-operating-system%2F&amp;linkname=How%20to%20Disable%20C%24%20Sharing%20on%20Windows%20Operating%20System"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backup to Email</title>
		<link>http://www.dijexi.com/2009/07/mysql-backup-to-email/</link>
		<comments>http://www.dijexi.com/2009/07/mysql-backup-to-email/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 08:52:55 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mdaemon]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/07/mysql-backup-to-email/</guid>
		<description><![CDATA[Image via CrunchBase This simple PHP script can be used to backup MySQL databases and then send the zipped backup file to email addresses. The backup file can then be restored by any MySQL front end program like the mysql command line, Navicat MySQL, or phpMyAdmin. The logic of the script is really simple: initialization [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><div style="margin: 1em; width: 210px; display: block; float: right" class="zemanta-img"><img style="border-bottom: medium none; border-left: medium none; display: block; border-top: medium none; border-right: medium none" alt="Image representing MySQL as depicted in CrunchBase" src="http://www.crunchbase.com/assets/images/resized/0000/1681/1681v1-max-450x450.png" width="162" height="84" />
<p style="font-size: 0.8em" class="zemanta-img-attribution">Image via <a href="http://www.crunchbase.com/">CrunchBase</a></p>
</p></div>
<p>This simple <a class="zem_slink" title="PHP" href="http://php.net/" rel="homepage">PHP</a> script can be used to backup <a class="zem_slink" title="MySQL" href="http://www.mysql.com/" rel="homepage">MySQL</a> databases and then send the zipped backup file to email addresses. The backup file can then be restored by any MySQL front end program like the mysql command line, <a class="zem_slink" title="Navicat" href="http://www.navicat.com/" rel="homepage">Navicat</a> MySQL, or <a class="zem_slink" title="PhpMyAdmin" href="http://www.phpmyadmin.net/" rel="homepage">phpMyAdmin</a>.</p>
<p>The logic of the script is really simple:</p>
<ol>
<li>initialization </li>
<li>create backup sql file </li>
<li>zip the file </li>
<li>send email </li>
</ol>
<p> <span id="more-505"></span>To do the backup automatically you can run the script through cron (*nix) or <a class="zem_slink" title="Task Scheduler" href="http://en.wikipedia.org/wiki/Task_Scheduler" rel="wikipedia">Task Scheduler</a> (<a class="zem_slink" title="Windows" href="http://www.microsoft.com/WINDOWS" rel="homepage">Windows</a>) as described in next section.
</p>
<p>This script uses PHP PEAR library so you need PEAR installed with the Mail and Mail_Mime packages. Read more about PEAR here: <a href="http://pear.php.net/">http://pear.php.net</a>.</p>
<p>This script utilize a ZIP.exe command line program to do the compressing which can be downloaded from <a href="http://stahlforce.com/dev/index.php?tool=zipunzip">http://stahlforce.com/dev/index.php?tool=zipunzip</a>. In *nix environtment you can use tar command line instead to create a tgz file.</p>
<p>Make sure you have write access to the $tmpDir directory.</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 500px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #0000ff">&lt;?</span>php
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">/*********************************************************************\
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">initialization
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">\*********************************************************************/</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #ffa500" href="http://www.php.net/ini_set">ini_set</a>('<span style="color: #8b0000">SMTP</span>','<span style="color: #8b0000">smtp.telkom.net</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/require_once">require_once</a>('<span style="color: #8b0000">Mail.php</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/require_once">require_once</a>('<span style="color: #8b0000">Mail/mime.php</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">// mysql &amp; minor details..</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$mysqlbinpath    = &quot;<span style="color: #8b0000">c:/xampp/mysql/bin</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$tmpDir        = &quot;<span style="color: #8b0000">c:/temp</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$zip        = &quot;<span style="color: #8b0000">c:/xampp/zip/zip.exe</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$user        = &quot;<span style="color: #8b0000">root</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$password    = &quot;<span style="color: #8b0000">pwd</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$dbName        = &quot;<span style="color: #8b0000">db</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$sqlFiles    = &quot;<span style="color: #8b0000"></span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">//databases to backup</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$dbs        = <a style="color: #ffa500" href="http://www.php.net/array">array</a> ('<span style="color: #8b0000">cibpdb</span>', '<span style="color: #8b0000">mysql</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">// email settings...</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$to            = &quot;<span style="color: #8b0000">anemail@gmail.com</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$from        = &quot;<span style="color: #8b0000">anemail@gmail.com</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$subject    = &quot;<span style="color: #8b0000">db - backup</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$attachment    = $tmpDir.'<span style="color: #8b0000">/backup-</span>'.<a style="color: #ffa500" href="http://www.php.net/date">date</a>('<span style="color: #8b0000">Y_M_d-H_i_s</span>') . &quot;<span style="color: #8b0000">.zip</span>&quot;; <span style="color: #008000">// or tgz in *nix</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">/*********************************************************************\
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">create backup sql file and the zip
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">\*********************************************************************/</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/foreach">foreach</a> ($dbs <a style="color: #0000ff" href="http://www.php.net/as">as</a> $dbname)
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">{
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$sqlFile    = $tmpDir.'<span style="color: #8b0000">/</span>'.$dbname.'<span style="color: #8b0000">-</span>'.<a style="color: #ffa500" href="http://www.php.net/date">date</a>('<span style="color: #8b0000">Y_m_d</span>').&quot;<span style="color: #8b0000">.sql</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/echo">echo</a> &quot;<span style="color: #8b0000">creating $sqlFile\n</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$creatBackup    = $mysqlbinpath . &quot;<span style="color: #8b0000">/mysqldump --add-drop-table -u </span>&quot;.$user.&quot;<span style="color: #8b0000"> --password=</span>&quot;.$password.&quot;<span style="color: #8b0000"> </span>&quot;.$dbname.&quot;<span style="color: #8b0000"> &gt; </span>&quot;.$sqlFile;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #ffa500" href="http://www.php.net/exec">exec</a>($creatBackup);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$sqlFiles    .= '<span style="color: #8b0000"> </span>' . $sqlFile;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">}
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">/*********************************************************************\
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">create the zip file
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">\*********************************************************************/</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/echo">echo</a> &quot;<span style="color: #8b0000">creating $attachment\n</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">//use this command in *nix environment</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">//$createZip    = &quot;tar cvzf $attachment $sqlFiles&quot;;</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">//use this command in windows, must have zip.exe</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$createZip    = &quot;<span style="color: #8b0000">$zip $attachment $sqlFiles</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #ffa500" href="http://www.php.net/exec">exec</a>($createZip);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #008000">/*********************************************************************\
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">send zip to email
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">\*********************************************************************/</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/echo">echo</a> &quot;<span style="color: #8b0000">sending $attachment to $to\n</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$headers = <a style="color: #ffa500" href="http://www.php.net/array">array</a>('<span style="color: #8b0000">From</span>' =&gt; $from, '<span style="color: #8b0000">Subject</span>' =&gt; $subject);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$textMessage = $attachment;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$htmlMessage = &quot;<span style="color: #8b0000"></span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$mime = new Mail_Mime(&quot;<span style="color: #8b0000">\n</span>&quot;);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$mime-&gt;setTxtBody($textMessage);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$mime-&gt;setHtmlBody($htmlMessage);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$mime-&gt;addAttachment($attachment, '<span style="color: #8b0000">text/plain</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$body = $mime-&gt;get();
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$hdrs = $mime-&gt;headers($headers);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$<a style="color: #ffa500" href="http://www.php.net/mail">mail</a> = &amp;<a style="color: #ffa500" href="http://www.php.net/Mail">Mail</a>::factory('<span style="color: #8b0000">mail</span>');
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$<a style="color: #ffa500" href="http://www.php.net/mail">mail</a>-&gt;<a style="color: #ffa500" href="http://www.php.net/send">send</a>($to, $hdrs, $body);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #ffa500" href="http://www.php.net/unlink">unlink</a>($sqlFile);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #ffa500" href="http://www.php.net/unlink">unlink</a>($attachment);
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><a style="color: #0000ff" href="http://www.php.net/echo">echo</a> &quot;<span style="color: #8b0000">done.</span>&quot;;
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #0000ff">?&gt;</span>
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
</pre>
<p>Please note on the $header above. I&#8217;ve found that PHP mail function failed to send email to a MDaemon SMTP server. If you encounter the same problem, here is the solution that works for me, to change the $header like the following:</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 500px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">$headers = array(
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'From'            =&gt; $from,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'Reply-To'        =&gt; $from,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-Mailer'        =&gt; 'Microsoft Outlook Express 6.00.2900.5512',
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-Rcpt-To'        =&gt; $to,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-MDRcpt-To'        =&gt; $to,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-MDRemoteIP'        =&gt; '10.5.68.249',
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-Return-Path'        =&gt; $from,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-Envelope-From'    =&gt; $from,
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">'X-MDaemon-Deliver-To' =&gt; $to
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">);</pre>
</pre>
<p>Save the script above to a file for example backup-script.php and save it to a folder for example c:\xampp\</p>
<h2>Setting up Windows Task Scheduler</h2>
<p align="left">
<div style="padding-right: 20px; float: left"><iframe style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" height="600" marginheight="0" border="0" src="http://rcm.amazon.com/e/cm?t=vitrainingcom-20&amp;o=1&amp;p=14&amp;l=st1&amp;mode=books&amp;search=mysql&amp;fc1=000000&amp;lt1=&amp;lc1=3366FF&amp;bg1=FFFFFF&amp;f=ifr" frameborder="0" width="160" marginwidth="0" scrolling="no"></iframe></div>
<p><!-- Adsense End --></p>
<p>If you need to run the backup script periodically using the Windows Task Scheduler, do the following steps:</p>
<p>Click on Start – Settings – Control Panel – Scheduled Tasks</p>
<p>Double click Add Scheduled Task</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image8.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb8.png" width="244" height="181" /></a></p>
<p>Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image9.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb9.png" width="244" height="181" /></a></p>
<p>Click Browse… and locate the PHP.EXE executable file, for example C:\<a class="zem_slink" title="XAMPP" href="http://www.apachefriends.org/en/xampp.html" rel="homepage">XAMPP</a>\PHP\PHP.EXE.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image10.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb10.png" width="244" height="181" /></a></p>
<p>Select the execution period of Daily, Weekly, Monthly, etc depending on your backup need. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image11.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb11.png" width="244" height="181" /></a></p>
<p>Select the start time and Date of the task. Also select the daily operation for the task, eg Every Day, Weekdays only, or Every x days. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image12.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb12.png" width="244" height="181" /></a></p>
<p>Next, Enter the username and password that will run the program as. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image13.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb13.png" width="244" height="181" /></a></p>
<h2>Refine the Scheduled Task</h2>
<p>On the dialog, the task periodic schedule is shown, you can refine it by checking “Open advanced properties for this task when I click Finish”. Then click Finish.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/07/SettingupPHPparameterinTaskScheduler.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Setting up PHP parameter in Task Scheduler" border="0" alt="Setting up PHP parameter in Task Scheduler" src="http://www.dijexi.com/wp-content/uploads/2009/07/SettingupPHPparameterinTaskScheduler_thumb.png" width="218" height="244" /></a></p>
<p>You need to change the Run field from</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 500px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">c:\xampp\php\php.exe</pre>
</pre>
<p>to</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 500px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">C:\xampp\php\php.exe c:\xampp\htdocs\backup-script.php</pre>
</pre>
<p>You may need to put a double quote on the command line parameter if your script resides on a folder that contains spaces, for example:</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 500px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">C:\xampp\php\php.exe  “C:\Documents <span style="color: #0000ff">and</span> Settings\Toshiba\My Documents\backup-script.php”</pre>
</pre>
<p>This will run php program with an argument, which is our backup script created before.</p>
<p>If you need to adjust the period, you can click on the Schedule tab.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image15.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb15.png" width="410" height="459" /></a></p>
<p>and then click Advanced button</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image16.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb16.png" width="372" height="304" /></a></p>
<p>On the above example, we check on Repeat task, which means we will run the backup program every 6 hours for 24 hours a day, starting from 29 June 2009. Click OK.</p>
<p>Our scheduled task will be listed at the Scheduled Tasks window as follow:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image26.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb26.png" width="504" height="261" /></a></p>
<h2>Run the Scheduled Task</h2>
<p>When you are done, just wait until the schedule for the task to run, or you can right-click on it and click Run to run it now.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image18.png"><img title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb18.png" width="404" height="324" /></a></p>
<p>Backup file created by this periodic backup task can be restored using mysql command line, phpMyAdmin, Navicat MySQL, or other MySQL front end programs.</p>
<p>References:</p>
<ul>
<li>ZIP.EXE download <a href="http://stahlforce.com/dev/index.php?tool=zipunzip">http://stahlforce.com/dev/index.php?tool=zipunzip</a> </li>
<li>PEAR manual <a href="http://pear.php.net/">http://pear.php.net</a> </li>
</ul>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<p>&#160;</p>
<p>Related articles by Zemanta</p>
<div class="zemanta-related">
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.mt-soft.com.ar/2009/06/27/how-to-set-up-php-5-with-curl-and-mysql-support-on-windows/">How to set up PHP 5 with Curl and MySQL support on Windows </a>(mt-soft.com.ar) </li>
<li class="zemanta-article-ul-li"><a href="http://oreilly.com/catalog/9780980576818/">Build Your Own Database Driven Web Site Using PHP &amp; MySQL, 4th Edition </a>(oreilly.com) </li>
<li class="zemanta-article-ul-li"><a href="http://www.alistapart.com/articles/indexing-the-web-its-not-just-googles-business/">Indexing the Web &#8211; It&#8217;s Not Just Google&#8217;s Business </a>(alistapart.com) </li>
<li class="zemanta-article-ul-li"><a href="http://themactrack.com/2009/06/25/premiumsoft-introduces-navicat-premium-cross-db-admin-migration-gui/">PremiumSoft introduces Navicat Premium &#8211; Cross DB Admin &amp; Migration GUI </a>(themactrack.com) </li>
</ul>
</div>
<div style="margin-top: 10px; height: 15px" class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/9b05260b-33a1-4b01-9e33-bf191cd2ed8f/"><img style="border-bottom-style: none; border-right-style: none; border-top-style: none; float: right; border-left-style: none" class="zemanta-pixie-img" alt="Reblog this post [with Zemanta]" src="http://img.zemanta.com/reblog_e.png?x-id=9b05260b-33a1-4b01-9e33-bf191cd2ed8f" /></a></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/" rel="bookmark">MySQL Backup with phpMyBackupPro</a></li><li><a href="http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/" rel="bookmark">Me-Restore database PostgreSQL dari Windows ke Linux</a></li><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2010/07/how-to-send-email-on-java-application-using-javamail-api/" rel="bookmark">How to Send Email on Java Application using JavaMail API</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F07%2Fmysql-backup-to-email%2F&amp;linkname=MySQL%20Backup%20to%20Email"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/07/mysql-backup-to-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle XE Installation</title>
		<link>http://www.dijexi.com/2009/06/oracle-xe-installation/</link>
		<comments>http://www.dijexi.com/2009/06/oracle-xe-installation/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 10:02:56 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/oracle-xe-installation/</guid>
		<description><![CDATA[Oracle XE is a database server provided by Oracle. Download the installation and setup program from this address. Run the setup program that will show up a dialog like this: A welcome message appear, click Next A license agreement appear, click I accept the term .. , and click Next Choose the destination location for [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Oracle XE is a database server provided by Oracle.</p>
<p>Download the installation and setup program<a href="http://www.oracle.com/technology/software/products/database/xe/index.html" target="_blank"> from this address</a>. Run the setup program that will show up a dialog like this:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora1" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora1_thumb.png" border="0" alt="ora1" width="244" height="188" /></a></p>
<p><span id="more-365"></span></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora2" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora2_thumb.png" border="0" alt="ora2" width="244" height="188" /></a></p>
<p>A welcome message appear, click Next</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora3" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora3_thumb.png" border="0" alt="ora3" width="244" height="188" /></a></p>
<p>A license agreement appear, click I accept the term .. , and click Next</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora4" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora4_thumb.png" border="0" alt="ora4" width="244" height="188" /></a></p>
<p>Choose the destination location for the Oracle database, which is defaulted to C:\Oraclexe. You can change the location by clicking Browse button. Click Next when you are done.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora5.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora5" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora5_thumb.png" border="0" alt="ora5" width="244" height="188" /></a></p>
<p>Choose the HTTP listener port, which is defaulted to 8081. You can change it to any available port on your system. Click Next to continue.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora6" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora6_thumb.png" border="0" alt="ora6" width="244" height="188" /></a></p>
<p>Next you must set the password for the user SYSTEM. This is the super user for the database, so please do not forget the password you set at this step. Click Next to continue.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora7.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora7" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora7_thumb.png" border="0" alt="ora7" width="244" height="188" /></a></p>
<p>Next, an installation summary will show up. Please confirm it again before committing the installation process. Click Next to continue.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora8" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora8_thumb.png" border="0" alt="ora8" width="244" height="188" /></a></p>
<p>Wait until the process is done. Click Next to continue.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora9.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora9" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora9_thumb.png" border="0" alt="ora9" width="244" height="188" /></a></p>
<p>A complete wizard appear. Check on Launch the Database homepage and click Finish to continue. Web browser will be launched to go to the database homepage.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora10.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora10" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora10_thumb.png" border="0" alt="ora10" width="244" height="141" /></a></p>
<p>Enter the System username and the password for the user you have set in the previous step.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/ora11.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ora11" src="http://www.dijexi.com/wp-content/uploads/2009/06/ora11_thumb.png" border="0" alt="ora11" width="244" height="226" /></a></p>
<p>Now you are on the database homepage. You can explore the Administration menu, Object Browser, SQL, and the Utilities. For now your database setup is finished, and the database can be used for application that is running using Oracle like <a href="http://www.dijexi.com/2009/06/adempiere-opensource-erp-installation/">Adempiere</a> or Compiere.</p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a><br />
<a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/adempiere-opensource-erp-installation/" rel="bookmark">001 Adempiere Opensource ERP Installation</a></li><li><a href="http://www.dijexi.com/2009/07/reload-editor-installation/" rel="bookmark">Reload Editor Installation</a></li><li><a href="http://www.dijexi.com/2009/07/how-to-browse-internet-anonymously/" rel="bookmark">How To Browse Internet Anonymously</a></li><li><a href="http://www.dijexi.com/2009/07/codeigniter-tutorial-creating-accounting-application-part-1-setting-up-the-environment/" rel="bookmark">CodeIgniter Tutorial: [Creating Accounting Application] Part 1 Setting Up the Environment</a></li><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li></ul></div><!--INFOLINKS_OFF--><p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7773800616131770";
/* horizontal */
google_ad_slot = "1931057994";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Foracle-xe-installation%2F&amp;linkname=Oracle%20XE%20Installation"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/oracle-xe-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalasi SQL Ledger di Windows</title>
		<link>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/</link>
		<comments>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 02:00:21 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SQL Ledger]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[akunting]]></category>
		<category><![CDATA[apache http server]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[network domain]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/</guid>
		<description><![CDATA[Persyaratan Windows 2000, Windows XP, Windows Server 2000 atau Windows Server 2003 WinZip mengerti DOS commands prompt, i.e. CD, DIR, MKDIR, COPY, REN Langkah-langkah Instal Apache HTTP Server 2.0.55 (alternatif Apache melalui XAMPP) Instal ActivePerl 5.6.1 Instal DBD-Pg and DBI Instal PostgreSQL 8.0.4 (Part 1) Instal PostgreSQL 8.0.4 (Part 2) Instal SQL-Ledger 2.8.17 Updating HTTPD.CONF [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><h2>Persyaratan</h2>
<ul>
<li>Windows 2000, Windows XP, Windows Server 2000 atau Windows Server 2003</li>
<li>WinZip</li>
<li>mengerti DOS commands prompt, i.e. CD, DIR, MKDIR, COPY, REN</li>
</ul>
<h2>Langkah-langkah</h2>
<ul>
<li>Instal Apache HTTP Server 2.0.55 (alternatif Apache melalui XAMPP)</li>
<li>Instal ActivePerl 5.6.1</li>
<li>Instal DBD-Pg and DBI</li>
<li>Instal PostgreSQL 8.0.4 (Part 1)</li>
<li>Instal PostgreSQL 8.0.4 (Part 2)</li>
<li>Instal SQL-Ledger 2.8.17</li>
<li>Updating HTTPD.CONF</li>
<li>Set Administrator Password dan membuat Dataset</li>
</ul>
<p><span id="more-229"></span></p>
<h2>Instalasi Apache</h2>
<p>Download versi terbaru program apache dari httpd.apache.org. misalnya apache_2.0.55-win32-x86-no_ssl.msi. Jalankan program tersebut sehingga muncul wizard instalasi apache.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar1.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar1" src="http://akhdaniel.files.wordpress.com/2008/10/gambar1.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Pada dialog box berikut ini, contreng radio button &#8220;I accept the terms &#8230; &#8221; dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar2.jpg"><img class="alignnone size-full wp-image-96" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar2" src="http://akhdaniel.files.wordpress.com/2008/10/gambar2.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Dialog box berikutnya berisi infromasi README information untuk versi Apache HTTP server.<br />
Klik tombo Next untuk melanjutkan.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar3.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar3" src="http://akhdaniel.files.wordpress.com/2008/10/gambar3.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Pada dialog box Server Information , masukkan infromasi berikut (asumsi tidak ada setting DNS di jaringan anda):</p>
<ul>
<li>Network Domain: localhost</li>
<li>Server Name: localhost</li>
<li>Admin Email: email address anda</li>
<li>Contrne radio button &#8220;for All Users, on Port 80, as a Service&#8221;, dan klik tombol Next.</li>
</ul>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar4.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar4" src="http://akhdaniel.files.wordpress.com/2008/10/gambar4.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Dialog box berikutnya meminta anda menentukan jenis setup. Boleh pilih Typical atau Custom.<br />
Lalu klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar5.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar5" src="http://akhdaniel.files.wordpress.com/2008/10/gambar5.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Jika pada dialog box sebelumnya dipilih setup type Custom maka program setup meminta anda untuk menentukan item yang hendak diinstall. Secara default, semuanya dipilih untuk diinstall. Lalu klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar6.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar6" src="http://akhdaniel.files.wordpress.com/2008/10/gambar6.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Akhirnya anda diminta untuk memulai proses installasi Apache HTTP server. Klik pada tombol Install.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar7.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar7" src="http://akhdaniel.files.wordpress.com/2008/10/gambar7.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Ketika muncul dialog box Installation Wizard Completed klik tombol Finish.</p>
<p>Selanjutnya lihat pada bagian bawah kanan layar komputer. Pada System Tray anda akan melihat icon yang baru sudah installed. Gambarnya adalah bulu merah dengan panah hijau didalamnya. Panah hijau menandakan bahwa installasi sukses.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar8.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar8" src="http://akhdaniel.files.wordpress.com/2008/10/gambar8.jpg" border="0" alt="" width="336" height="52" /></a></p>
<p>Jika anda letakkan mouse cursor diatas icon tersebut lalu right click dan memilih Open Apache<br />
Monitor, anda dapat dengan mudah untuk Start/Stop/Restart Apache HTTP server melalui applet ini.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar9.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar9" src="http://akhdaniel.files.wordpress.com/2008/10/gambar9.jpg" border="0" alt="" /></a></p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar10.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar10" src="http://akhdaniel.files.wordpress.com/2008/10/gambar10.jpg" border="0" alt="" width="240" height="152" /></a></p>
<p>Untuk melakukan test installasi Apache HTTP Server , buka Internet web browser dan masukkan alamat http://127.0.0.1 atau http://localhost. Anda akan melihat halaman yang berisi pesan mengenai software yang sudah berhasil di instal.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar11.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar11" src="http://akhdaniel.files.wordpress.com/2008/10/gambar11.jpg" border="0" alt="" width="240" height="184" /></a></p>
<p align="left"><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-7773800616131770"; /* horizontal2 468x60 */ google_ad_slot = "7758919137"; google_ad_width = 468; google_ad_height = 60;
// ]]&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<h2>Instalasi ActivePerl 5.6.1</h2>
<p>Download program bundle untuk sistem operasi Win32 pada alamat http://www.activestate.com/Products/ActivePerl/, misalnya (pada saat tulisan ini dibuat) ActivePerl-5.6.1.638-MSWin32-x86.msi</p>
<p>Jalankan program msi install file tersebut.</p>
<blockquote><p>Note: Version 5.6.1 digunakan dengan alasan untuk kemudahan install driver DBD-Pg and DBI.<br />
Note: Jika anda melihat dialog box security warning , klik tombol Run untuk melanjutkan</p></blockquote>
<p>Pada dialog box ActivePerl Welcome , klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar12.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar12" src="http://akhdaniel.files.wordpress.com/2008/10/gambar12.jpg" border="0" alt="" width="240" height="184" /></a></p>
<p>Pada dialog box berikutnya, klik radio button &#8220;I accept the terms &#8230; &#8221; dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar13.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar13" src="http://akhdaniel.files.wordpress.com/2008/10/gambar13.jpg" border="0" alt="" width="240" height="187" /></a></p>
<p>Pada dialog box Custom Setup , anda melihat semua items sudah dipilih secara default untuk installasi. Klik tombol Next untuk melanjutkan</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar14.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar14" src="http://akhdaniel.files.wordpress.com/2008/10/gambar14.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>next dialog box berikutnya memberi infromasi tentang fitur PPM3. Anda boleh pilih pilihan ini jika diinginkan. Klik tombol Next untuk melanjutkan.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar15.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar15" src="http://akhdaniel.files.wordpress.com/2008/10/gambar15.jpg" border="0" alt="" width="240" height="187" /></a></p>
<p>Items setup pilihan akan ditampilkan pada dialog box berikutnya. Biarkan nilai default dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar16.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar16" src="http://akhdaniel.files.wordpress.com/2008/10/gambar16.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>Akhirnya proses installasi akan dimulai ketika anda klik tombol Install.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar17.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar17" src="http://akhdaniel.files.wordpress.com/2008/10/gambar17.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>Ketikan anda melihat dialog box Installation Wizard Completed klik tombol Finish.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar18.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar18" src="http://akhdaniel.files.wordpress.com/2008/10/gambar18.jpg" border="0" alt="" width="240" height="186" /></a></p>
<h2>Installing DBD-Pg and DBI</h2>
<p>Untuk instalasi DBD-Pg dan DBI, download module perl yang sudah dikompilasi dari<br />
http://www.edmund-mergl.de/export/ . Nama filenya masing-masing adalah DBD-Pg.zip. File paket DBD-Pg dan DBI diperlukan untuk menyediakan mekanisme database interface antara sql-ledger dan Postgres.</p>
<p>Note: MCSPAN tidak dapat digunakan di Windows sehingga kita perlu module yang telah dikompilasi.<br />
Note: Modul DBD-Pg tersebut diatas tidak bisa digunakan di ActivePerl versi 5.8. Nanti setelah berhasil diinstall di versi 5.6 anda boleh upgrade ActivePerl 5.8.</p>
<p>Unzip file DBD-Pg.zip ke sembarang directory temporary pada komputer anda.</p>
<p>Dengan Command prompt, masuk ke directory DBD-Pg.</p>
<p>Pada command prompt, ketik: ppm install &#8211;location=. DBD-Pg lalu tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar19.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar19" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar19_thumb.jpg" border="0" alt="gambar19" width="504" height="129" /></a></p>
<p>Setelah installing DBD-Pg modul ketik pada command prompt: ppm dan tekan tombol    Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar20.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar20" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar20_thumb.jpg" border="0" alt="gambar20" width="244" height="81" /></a></p>
<p>Pada PPM prompt, ketik install DBI dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar21.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar21" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar21_thumb.jpg" border="0" alt="gambar21" width="244" height="84" /></a></p>
<p>Ketika diminta untuk menginstall DBI package, ketikkan huruf y pada prompt dan tekan tombol<br />
Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar22.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar22" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar22_thumb.jpg" border="0" alt="gambar22" width="244" height="86" /></a></p>
<p>Untuk keluar dari PPM command prompt, ketik exit dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar23.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar23" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar23_thumb.jpg" border="0" alt="gambar23" width="244" height="84" /></a></p>
<p>temporary directory yang tadi dibuat boleh dihapus.</p>
<h2>Instalasi PostgreSQL</h2>
<p>Untuk meng-install PostgreSQL server, download file terakhir untuk Win32 system dari http://wwwmaster.postgresql.org/download/mirrors-ftp/.  Pada saat buku ini ditulis, file install yang digunakan adalah: postgresql-8.0.4.zip. Anda boleh menggunaan file dengan versi yang lebih tinggi jika sudah ada. Kemudian, unzip file diatas dan jalankan program installasi postgresql-8.0.msi.</p>
<p>Catatan: jika anda melihat kotak dialog security warning, klik pada tombol Run untuk melanjutkan</p>
<p>Kemudian, anda akan melihat kotak dialog PostgreSQL Installation Wizard. Pilih bahasa yang inginkan pada instruksi installation dan klik tombol Start untuk memulai.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar24.jpg"><img class="alignnone size-full wp-image-92" title="gambar24" src="http://akhdaniel.files.wordpress.com/2008/10/gambar24.jpg" alt="" width="240" height="183" /></a></p>
<p>Kemudian anda akan melihat Welcome to the PostgreSQL Installation Wizard. Klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar25.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar25" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar25_thumb.jpg" border="0" alt="gambar25" width="244" height="187" /></a></p>
<p>Kotak dialog berikutnya akan berisi catatan installation. Klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar26.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar26" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar26_thumb.jpg" border="0" alt="gambar26" width="244" height="187" /></a></p>
<p>Kotak dialog selanjutnya menunjukkan pilihan apa saja yang akan di-instal. Selain dari pilihan default, anda dapat memilih PostgreSQL dan &#8220;Entire Feature will be installed on local hard drive .&#8221; Kemudian klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar27.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar27" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar27_thumb.jpg" border="0" alt="gambar27" width="244" height="186" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar28.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar28" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar28_thumb.jpg" border="0" alt="gambar28" width="244" height="100" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar29.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar29" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar29_thumb.jpg" border="0" alt="gambar29" width="244" height="187" /></a></p>
<p>Selanjutnya, buka user management applet pada Window dan buat satu user baru. Contohnya pada Windows XP Professional, masuk ke Computer Management MMC dan pilih Users. Lalu, buka bagian Action/New User.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar30.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar30" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar30_thumb.jpg" border="0" alt="gambar30" width="244" height="150" /></a></p>
<p>Buat User baru sebagai berikut:</p>
<blockquote><p>User Name: postgres<br />
Password: postgres<br />
Un-check: &#8220;User must change password at next logon&#8221;</p></blockquote>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar31.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar31" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar31_thumb.jpg" border="0" alt="gambar31" width="244" height="242" /></a></p>
<p>Lalu, klik tombol Create.</p>
<blockquote><p>Catatan: Account ini tidak boleh di-setup dengan administrator privileges. Postgres tidak dapat berjalan sebagai user admin.</p></blockquote>
<p>Selanjutnya, pada proses instalasi PostgreSQL, ketikkan user tersebut diatas pada kolom Account Name: postgres dan passwordnya pada kotak dialog Service Configuration. Klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar32.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar32" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar32_thumb.jpg" border="0" alt="gambar32" width="244" height="185" /></a></p>
<p>Kotak dialog Initialize database cluster akan muncul. Masukkan nama superuser dari postgres dan password account ini. Lalu, klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar33.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar33" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar33_thumb.jpg" border="0" alt="gambar33" width="244" height="189" /></a></p>
<p>Kotak dialog selanjutnya memberikan pilihan jika anda ingin meng-install PL/pgsql. Biarkan saja seperti setting default dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar34.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar34" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar34_thumb.jpg" border="0" alt="gambar34" width="244" height="186" /></a></p>
<p>Lalu, anda akan diminta modul tambahan apa saja yang ingin diinstal. Biarkan saja apa adanya dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar35.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar35" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar35_thumb.jpg" border="0" alt="gambar35" width="244" height="187" /></a></p>
<p>Kotak dialog Enable PostGIS akan muncul. Biarkan saja apa adanya dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar36.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar36" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar36_thumb.jpg" border="0" alt="gambar36" width="244" height="187" /></a></p>
<p>Akhirnya, kotak dialog Ready to install muncul. Klik tombol Next untuk memulai proses instalasi.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar37.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar37" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar37_thumb.jpg" border="0" alt="gambar37" width="244" height="187" /></a></p>
<p>Ketika proses installation selesai, klik tombol Finish.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar38.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar38" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar38_thumb.jpg" border="0" alt="gambar38" width="244" height="186" /></a></p>
<p>Masuk ke menu Windows Start/Run dan ketik perintah: runas /user:postgres cmd.exe lalu tekan tombol Enter. Ini akan memunculkan command prompt yang dijalankan oleh user postgres.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar39.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar39" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar39_thumb.jpg" border="0" alt="gambar39" width="244" height="135" /></a></p>
<p>Ketika diminta password, ketikkan password postgres dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar40.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar40" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar40_thumb.jpg" border="0" alt="gambar40" width="244" height="106" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar41.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar41" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar41_thumb.jpg" border="0" alt="gambar41" width="244" height="112" /></a></p>
<p>Jika tadinya adan memilih lokasi default untuk semua program, pindahlah dari C:\Windows\system32 ke direktori C:\Program Files\PostgreSQL\8.0\bin.</p>
<p>Pada prompt anda harus mengetikkan perintah berikut ini untuk membuat user PostgreSQL baru:</p>
<blockquote><p>createuser -d -a sql-ledger</p></blockquote>
<p>dan tekan tombol Enter. Anda akan diminta untuk memasukkan password untuk account PostgreSQL ini. Masukkan password postgres dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar42.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar42" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar42_thumb.jpg" border="0" alt="gambar42" width="244" height="86" /></a></p>
<p>Selanjutnya, buka file pg_hba.conf file yang ada di C:\Program Files\PostgreSQL\8.0\data directory dengan Notepad.exe. Scroll ke bagian bawah file dan update baris-baris ini:</p>
<blockquote><p>host all all 127.0.0.1/32 md5</p></blockquote>
<p>menjadi:</p>
<blockquote><p>host all all 127.0.0.1/32 trust</p></blockquote>
<p>Simpan perubahan dan keluar dari Notepad.exe.</p>
<h2>Install SQL Ledger</h2>
<p>Untuk meng-install SQL-Ledger, download file production release terbaru dari:</p>
<p>http://www.sql-ledger.org/cgi-bin/nav.pl?page=source/index.html&#038;title=Download</p>
<p>Pada saat buku ini ditulis file install yang digunakan adalah: sql-ledger-8.5.1.tar.gz</p>
<p>Catatan: Ketika men-download file tersebut, Windows akan membuat nama file tersebut sebagai sql-ledger-2.8.5.tar.tar. Mohon di-rename menjadi to: sql-ledger-2.8.5.tar.gz sebelum melakukan unzip.</p>
<p>Unzip file tersebut ke direktori Apache HTTP server, misalnya<br />
C:\Program Files\Apache Group\Apache2. Direktori ini dipilih untuk memudahkan instalasi dan proses backup nantinya. Ketika anda membuka file sql-ledger-2.8.5.tar.gz, maka anda akan diminta untuk men-decompress file tersebut ke suatu temporary folder. Klik pada tombol Yes untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar43.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar43" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar43_thumb.jpg" border="0" alt="gambar43" width="244" height="105" /></a></p>
<p>Lalu, klik pada tombol Extract pada aplikasi Winzip.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr44.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr44" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr44_thumb.jpg" border="0" alt="gbr44" width="244" height="144" /></a></p>
<p>Lalu, arahkan ke direktori program Apache server, misalnya<br />
C:\Program Files\Apache Group\Apache2 atau ketikkan direktori tujuan pada kolom Extract to. Kemudian klik pada tombol Extract.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr45.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr45" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr45_thumb.jpg" border="0" alt="gbr45" width="244" height="154" /></a></p>
<p>Kemudian, download lagi file program SHEBANG. Program ini diperlukan untuk meng-update files agar menyesaikan dengan lokasi perl di Windows. Untuk mendownload nya:</p>
<ul>
<li>Buka web page dengan alamat http://www.sql-ledger.org/source/windows/shebang</li>
<li>Buka menu File/Simpan As.</li>
<li>Arahkan ke direktori SQL-Ledger. Directory ini seharusnya ada di C:\Program Files\Apache Group\Apache2\sql-ledger</li>
<li>Pastikan bahwa Simpan as type adalah Text File</li>
<li>klik tombol Simpan</li>
</ul>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr46.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr46" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr46_thumb.jpg" border="0" alt="gbr46" width="244" height="192" /></a></p>
<p>Selanjutnya, buka Command Prompt dan arahkan ke direktori<br />
C:\Program Files\Apache Group\Apache2\sql-ledger .</p>
<p>Pada prompt, ketikkan perintah: type admin.pl |more<br />
Perintah ini akan menampilkan ini file admin.pl pada console. Perhatikan bahwa pada baris paling pertama dari script ini adalah lokasi program Perl yang tidak benar untuk Windows. Ini adalah lokasi direktori untuk UNIX/Linux.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr47.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr47" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr47_thumb.jpg" border="0" alt="gbr47" width="244" height="116" /></a></p>
<p>Kemudian, tekan tombol CTRL dan C key bersamaan.</p>
<p>Pada command prompt, ketikkan: ren shebang.txt shebang dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr48.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr48" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr48_thumb.jpg" border="0" alt="gbr48" width="244" height="62" /></a></p>
<p>Pada command prompt, ketikkan: perl shebang dan tekan tombol Enter.</p>
<p>Pada commange prompt, ketikkan sekali lagi perintah ini: type admin.pl |more<br />
Perhatikan pada baris paling pertama dari script ini bahwa lokasi program Perl sekarang sudah valid.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr49.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr49" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr49_thumb.jpg" border="0" alt="gbr49" width="244" height="103" /></a></p>
<h2>Meng-update HTTPD.CONF</h2>
<p>Buka file httpd.conf di Notepad.exe. Klik menu Start/Run dan ketikkan<br />
notepad C:\Program Files\Apache Group\Apache2\conf\httpd.conf pada kolom Open. Lalu tekan tombol OK.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr50.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr50" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr50_thumb.jpg" border="0" alt="gbr50" width="244" height="134" /></a></p>
<p>Lalu, scroll ke bawah sampai akhir file httpd.conf dan tambahkan directive di bawah ini:</p>
<blockquote>
<pre>Alias /sql-ledger "C:/Program Files/Apache Group/Apache2/sql-ledger/"
&lt;Directory "C:/Program Files/Apache Group/Apache2/sql-ledger/"&gt;
AllowOverride All
AddHandler cgi-script .pl
Options +ExecCGI
Order Allow,Deny
Allow from All
&lt;/Directory&gt;
&lt;Directory "C:/Program Files/Apache Group/Apache2/sql-ledger/users/"&gt;
Order Deny,Allow
Deny from All
&lt;/Directory&gt;</pre>
</blockquote>
<p>Sekarang simpan file httpd.conf dan keluar dari Notepad.exe. Masuk melalui menu File/Simpan lalu File/Exit.</p>
<p>Restart  Apache HTTP server seperti pada langkah 11 pada bagian Instalasi Apache HTTP Server 2.0.55.</p>
<p>Buka web browser dengan URL http://localhost/sql-ledger. Selanjutnya akan muncul halaman seperti di bawah ini.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr51.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr51" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr51_thumb.jpg" border="0" alt="gbr51" width="244" height="148" /></a></p>
<h2>Setting Password Administrator dan Database</h2>
<p>Buka URL http://localhost/sql-ledger/admin.pl dan klik tombol Login.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr52.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr52" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr52_thumb.jpg" border="0" alt="gbr52" width="244" height="159" /></a></p>
<p>Lalu, klik tombol Change Admin Password . Default password adalah kosong.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr53.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr53" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr53_thumb.jpg" border="0" alt="gbr53" width="244" height="41" /></a></p>
<p>Jika anda sudah mengisikan password baru, klik tombol Change Password .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr54.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr54" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr54_thumb.jpg" border="0" alt="gbr54" width="244" height="182" /></a></p>
<p>Lalu, anda akan dimintai password. Masukkan password anda yang baru dan klik tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr55.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr55" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr55_thumb.jpg" border="0" alt="gbr55" width="244" height="47" /></a></p>
<p>Selanjutnya, klik pada tombol Pg Database Administration.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr56.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr56" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr56_thumb.jpg" border="0" alt="gbr56" width="244" height="46" /></a></p>
<p>Karena anda menggunakan PostgreSQL pada Windows, ketikkan localhost pada kolom Host name dan nomor port 5432 pada kolom Port .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr57.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr57" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr57_thumb.jpg" border="0" alt="gbr57" width="244" height="103" /></a></p>
<p>Ketikkan nama dataset yang anda inginkan, misalnya toko. Masukkan nama tersebut semua dalam huruf kecil. Pilih Bahasa-Indonesia_default pada pilihan Create Chart of Account. Lalu, klik tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr58.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr58" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr58_thumb.jpg" border="0" alt="gbr58" width="244" height="129" /></a></p>
<p>Jika dataset berhasil dibuat, anda akan melihat pesan seperti dibawah. Lalu, klik pada tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr59.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr59" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr59_thumb.jpg" border="0" alt="gbr59" width="244" height="49" /></a></p>
<h2>Administrasi User</h2>
<p>Langkah selanjutnya adalah membuat user yang akan menggunakan SQL-Ledger.</p>
<p>Lakukan hal ini dengan men-klik tombol Add User pada menu Administrator.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr60.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr60" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr60_thumb.jpg" border="0" alt="gbr60" width="244" height="34" /></a></p>
<p>Halaman isian data user akan muncul seperti berikut ini:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr61.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr61" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr61_thumb.jpg" border="0" alt="gbr61" width="244" height="137" /></a></p>
<p>Pada halaman ini, pada bagian SQL-LEdger Accounting Administration/ Edit Usr:</p>
<ol>
<li>Isikan pada kolom Login : kode login user yang anda inginkan, misalnya admin</li>
<li>Isikan pada kolom Password: password untuk login di atas misalnya admin.</li>
<li>Isikan pada kolom Name: nama lengkap user misalhya administrator</li>
<li>Isikan pada kolom Signature:</li>
<li>Isikan pada kolom Phone: nomor telephone</li>
<li>Isikan pada kolom Fax: nomor Fax</li>
<li>Isikan pada kolom Company: nama perusahaan</li>
<li>Pilih pada kolom Date Format: format tanggal yang akan digunakan</li>
<li>Pilih pada kolom Number format: format angka yang akan digunakan</li>
<li>Isikan pada kolom Drop Down Limit: jumlah item pilihan yang akan dimunculkan untuk semua jenis pilihan pada form isian</li>
<li>Isikan pada kolom Menu Width: lebar frame menu</li>
<li>Pilih pada kolom Language: bahasa yang akan digunakan, misalnya Bahasa Indonesia</li>
<li>Isikan pada kolom Session Timeout: berapa lama sistem akan otomatis logout jika tidak ada aktifitas selama waktu tersebut</li>
<li>Pilih pada kolom Stylesheet: model kombinasi warna</li>
<li>Isikan pada kolom Use Template: template yang akand digunakan</li>
<li>Jika perlu isikan pada kolom New Template: nama template baru</li>
</ol>
<p>Pada bagian Database:</p>
<ol>
<li>klik pada Driver Pg</li>
<li>Isikan pada kolom Dataset: nama dataset yang telah anda buat pada langkah sebelumnya yaitu toko</li>
<li>Isikan pada kolom User dan Password: nama username dan password PostgreSQL yang telah anda buat pada langkah 2.4 Instalasi PostgreSQL point 9, yaitu postgres dan password postgres</li>
<li>Isikan pada kolom Host dan Port: nama komputer dimana PostgreSQL jalan yaitu localhost dan post 5432.</li>
</ol>
<p>Pada bagian Access Control: pilih jenis user dan akses menu-menu yang diperbolehkan untuk user ini.</p>
<p>Ketika selesai, klik tombol Simpan di bagian bawah halaman ini. Jika user berhasil dibuat maka akan muncul pada halaman SQL-Ledger Administrator seperti berikut ini:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr62.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr62" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr62_thumb.jpg" border="0" alt="gbr62" width="244" height="54" /></a></p>
<p>Untuk meng-edit user , klik pada login user tersebut, sehingga muncul kembali halaman yang menampilkan informasi lengkap user tersebut seperti pada langkah sebelumnya.</p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/tutorial-membuat-dan-menambah-komponen-delphi/" rel="bookmark">20. Membuat dan Menambah Komponen</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/07/zero-day-vulnerability-hits-microsoft-directshow/" rel="bookmark">Zero Day Vulnerability Hits Microsoft DirectShow</a></li><li><a href="http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/" rel="bookmark">How to Disable C$ Sharing on Windows Operating System</a></li><li><a href="http://www.dijexi.com/2009/07/microsoft-warns-of-serious-computer-security-hole/" rel="bookmark">Microsoft Warns of Serious Computer Security Hole</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Finstalasi-sql-ledger-di-windows%2F&amp;linkname=Instalasi%20SQL%20Ledger%20di%20Windows"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Perl connection to PostgreSQL</title>
		<link>http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/</link>
		<comments>http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 23:30:07 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dbh]]></category>
		<category><![CDATA[perl package manager]]></category>
		<category><![CDATA[script perl]]></category>
		<category><![CDATA[sistem operasi windows]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/</guid>
		<description><![CDATA[Modul Perl yang diperlukan Agar program Perl bisa connect ke Posgres diperlukan modul tambahan Perl sebagai berikut: DBI DBD::Pg Instalasi Modul di Linux Untuk sistem operasi Linux, installasi modul sangat mudah dilakukan, yaitu dengan menggunakan program RPM, Yum, dan sebagainya. Sebagai contoh untuk menginstall modul DBD::Pg, lakukan langkah-langkah sbb: Cari nama package modul jika belum [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><h2>Modul Perl yang diperlukan</h2>
<p>Agar program Perl bisa connect ke Posgres diperlukan modul tambahan Perl sebagai berikut:</p>
<ol>
<li>DBI</li>
<li>DBD::Pg</li>
</ol>
<h2>Instalasi Modul di Linux</h2>
<p>Untuk sistem operasi Linux, installasi modul sangat mudah dilakukan, yaitu dengan menggunakan program RPM, Yum, dan sebagainya.</p>
<p><span id="more-226"></span></p>
<p>Sebagai contoh untuk menginstall modul DBD::Pg, lakukan langkah-langkah sbb:</p>
<p>Cari nama package modul jika belum diketaui secara pasti.</p>
<blockquote>
<pre># yum search perl-dbd</pre>
</blockquote>
<p>hasilnya misalnya (bisa beda-beda setiap komputer):</p>
<blockquote>
<pre style="width: 479px; height: 90px;">Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile  * base: centosq2.centos.org  * updates: centosw.centos.org  * addons: centosk2.centos.org  * extras: centosw.centos.org
perl-DBD-Pg.x86_64 : A PostgresSQL interface for perl
perl-DBD-MySQL.x86_64 : A MySQL interface for perl</pre>
</blockquote>
<p>Dari hasil pencarian tersebut dapat diketahui nama file modul yang perlu diinstal secara pasti, yaitu <strong>perl-DBD-Pg.x86_64</strong>.</p>
<p>Jalankan perintah install sebagai berikut:</p>
<blockquote>
<pre># yum install perl-DBD-Pg.x86_64</pre>
</blockquote>
<p>Pastikan tidak ada pesan error. Jika sudah sukses, maka modul DBD::Pg siap digunakan. Modul DBI umumnya sudah diinstall secara default. Namun jika belum (diketahui dari pesan error saat install DBD::Pg) maka lakukan langkah yang sama seperti di atas untuk modul DBI.</p>
<h2>Instalasi Modul di Windows</h2>
<p>Untuk Sistem operasi Windows gunakan ActiveState Perl. Pada program tersebut terdapat program utiliti ppm (perl package manager) yang dapat digunakan untuk mengelola modul.</p>
<h2>Script Koneksi PostgreSQL</h2>
<p>Langkah pemanggilan fungsi yang perlu dilakukan oleh script Perl untuk konek dan query ke Postgres adalah:</p>
<ol>
<li>function $dbh = DBI-&gt;connect()</li>
<li>function $sth = dbh-&gt;prepare($sql)</li>
<li>function $sth-&gt;execute;</li>
<li>jika diperlukan untuk mengambil data: function $sth-&gt;fetchrow()</li>
</ol>
<p>Langkah pertama adalah memanggil modul DBI untukmelakukan koneksi ke database.  Seacara lengkap sintaksnya adalah :</p>
<blockquote>
<pre style="width: 479px; height: 44px;">$dbh = DBI-&gt;connect("dbi:Pg:dbname=namadatabase", 'namauser', 'password', {AutoCommit =&gt; 1});</pre>
</blockquote>
<p>Dimana paramenter pertama &#8220;dbi:Pg:dbname=namadatabase&#8221; adalah parameter koneksi ke server. Dapat ditambahkan dengan string hostname dan port yang jika tidak dicantumkan maka diasumsikan localhost port 5432.</p>
<p>Parameter kedua dan ketiga adalah nama user database dan password nya yang digunakan untuk melakukan koneksi.</p>
<p>Parameter ke empat {AutoCommit =&gt; 1} adalah option yang menentukan apakah setiap query akan otomatis di commit atau tidak. Jika Tidak maka perlu dijalanlan function $dbh-&gt;commit().</p>
<p>Setelah berhasil konek, langkah selanjutnya adalah mempersiapkan SQL statement yang akan dikirimkan ke server. Perintah selengkapnya misalnya sbb:</p>
<blockquote>
<pre>$sql = "select * from namatable";
$sth = $dbh-&gt;prepare($sql);</pre>
</blockquote>
<p>Setelah dipersiapkan, maka panggil function execute untuk mengeksekusi SQL:</p>
<pre>$sth-&gt;execute;</pre>
<p>Jika SQL yang dijalankan mengeluarkan hasil (misalnya SQL SELECT), maka data yang dihasilkan ditangkap dengan menggunakan function $sth-&gt;fetchrow() yang dilooping sampai dengan data tersebut habis, sebagai berikut:</p>
<blockquote>
<pre>while ( my @row = $sth-&gt;fetchrow() )
{
     print $row[0] , $row[0];
}</pre>
</blockquote>
<p>Untuk SQL yang tidak mengeluarkan hasil (misalnya SQL INSERT, UPDATE), maka tidak perlu dilakukan pemanggilan function fetchrow().</p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/meng-connect-in-php-ke-postgresql/" rel="bookmark">PHP Connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/07/php-library-to-connect-to-ldap-server/" rel="bookmark">PHP Library to Connect to LDAP Server</a></li><li><a href="http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/" rel="bookmark">Koneksi MS SQL Server dengan C-Sharp</a></li><li><a href="http://www.dijexi.com/2008/06/perl-membaca-file-excel/" rel="bookmark">Perl Membaca File Excel</a></li><li><a href="http://www.dijexi.com/2010/08/creating-gps-tracker-application-on-j2me-phones/" rel="bookmark">Creating GPS Tracker Application on J2ME Phones</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Fperl-konek-ke-postgresql%2F&amp;linkname=Perl%20connection%20to%20PostgreSQL"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portable Apache, MySQL, PHP</title>
		<link>http://www.dijexi.com/2009/06/portable-apache-mysql-php/</link>
		<comments>http://www.dijexi.com/2009/06/portable-apache-mysql-php/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 23:12:13 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache mysql]]></category>
		<category><![CDATA[apache php]]></category>
		<category><![CDATA[drive usb]]></category>
		<category><![CDATA[port 8080]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[server smtp]]></category>
		<category><![CDATA[settingan]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[usb webserver]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/portable-apache-mysql-php/</guid>
		<description><![CDATA[Pada kondisi dimana user minta bisa mencoba aplikasi yang kita bangun menggunakan WAMP (Windows Apache MySQL PHP) dan belum terdapat server komputer yang dapat kita installkan infrastruktur yang dibutuhkan, kita dapat menggunakan portable WAMP yang dapat dijalankan dari USB. Kondisi lainnya adalah ketika kita ingin membuat versi trial aplikasi web kita ke calon customer. Salah [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Pada kondisi dimana user minta bisa mencoba aplikasi yang kita bangun menggunakan WAMP (Windows Apache MySQL PHP) dan belum terdapat server komputer yang dapat kita installkan infrastruktur yang dibutuhkan, kita dapat menggunakan portable WAMP yang dapat dijalankan dari USB.</p>
<p>Kondisi lainnya adalah ketika kita ingin membuat versi trial aplikasi web kita ke calon customer.</p>
<p>Salah satu yang dapat digunakan adalah USB Webserver (http://www.usberbserver.nl).&#160; Aplikasi ini berisi Apache, PHP, dan MySQL yang telah dikonfigurasi dan siap dijalankan sehingga kita tinggal mengisi aplikasi web yang akan kita demokan ke client.</p>
<p> <span id="more-215"></span>Instalasi USB Webserver cukup mudah, tinggal extract file setupnya aja ke drive USB yang mau dibawah.&#160; Setelah disetup dan diextrak, akan terdapat beberap direktori dibawah direktori utama misalnya E:\UsbWebserver, dimana E: adalah USB drive.
</p>
<p>Direktori yang paling penting adalah D:\UsbWebserver\Root, dimana kita akan menyimpan aplikasi&#160; web yang akan dijalankan.</p>
<p>Setelah dijalankan USB Webserver akan siap melayani akses web server pada port 8080 (dapat diganti melalui Settings Apache). Jadi misalnya aplikasi kita disimpan pada direktori C:\UsbWebserver\Root\demo maka aplikasi tersebut tinggal diakses melalui web browser pada alamat http://127.0.0.1:8080/demo.</p>
<p>Ketika dijalankan, maka terlihat halaman untuk setingan utama USB Webserver yaitu bahasa, hide at start, dan open localhost at start untuk menjalankan browser secara otomatis saat aplikasi dijalankan:</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/09/usbweb-home.png"><img class="alignnone size-full wp-image-51" title="usbweb-home" alt="" src="http://akhdaniel.files.wordpress.com/2008/09/usbweb-home.png" width="450" height="308" /></a></p>
<p>Pada halaman tsb kita dapat mengontrol server MySQL, APache, dan SMTP yaitu dengan menklik tombol-tombol yang terdapat pada bagian atas halaman tsb. Tanda kotak artinya server sedang berjalan, dan untuk mematikannya klik tombol tsb sehingga berubah menjadi tombol segitiga yang artinya server sedang tidak berjalan.</p>
<p>Klik tab Smtp untuk menampilkan settingan server SMTP yaitu host, port, dan email.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/09/smtp.png"><img class="alignnone size-full wp-image-52" title="smtp" alt="" src="http://akhdaniel.files.wordpress.com/2008/09/smtp.png" width="450" height="249" /></a></p>
<p>Klik tab Apache untuk melihat settingan server Apache, yaitu port webserver yang default nya 8080, dan jenis error yang akan ditampilkan pada log, defaultnya semua error.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/09/apache.png"><img class="alignnone size-full wp-image-53" title="apache" alt="" src="http://akhdaniel.files.wordpress.com/2008/09/apache.png" width="450" height="249" /></a></p>
<p>Klik pada tab MySQL untuk melihat settingan MySQL yaitu port yang defaultnya&#160; 3307 dan password root MySQL yaitu usbw. APlikasi yang hendak kita jalankan perlu menyesuaikan dengan setting yang didefinisikan disini.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/09/mysql.png"><img class="alignnone size-full wp-image-54" title="mysql" alt="" src="http://akhdaniel.files.wordpress.com/2008/09/mysql.png" width="450" height="249" /></a></p>
<p>Untuk menyimpan settingan yang sudah ditentukan klik tombol &quot;Opslaan&quot; &#8230; gak tau artinya apa soalnya bhs Belanda, tapi kira-kira kayak OK gitu.. Atau klik tombol &quot;Annuleren&quot; untuk cancel.</p>
<p>Untuk membuka log file, config file, phpmyadmin, dll dapat digunakan tombol segitiga dibagian atas tengah window.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/09/setting.png"><img class="alignnone size-full wp-image-55" title="setting" alt="" src="http://akhdaniel.files.wordpress.com/2008/09/setting.png" width="450" height="217" /></a></p>
<p>Menu yang muncul dapat digunakan untuk:</p>
<ul>
<li>membuka halaman setting spt diatas, Settings-&gt;Usb Webserver </li>
<li>membuka config file apache httpd.conf, Settings-&gt;Apache </li>
<li>membuka config file PHP.INI, Settings-&gt;PHP </li>
<li>membuka config file phpmyadmin, Settings-&gt;Phpmyadmin </li>
<li>membuka web browser pada alamat default, Localhost </li>
<li>membuka folder root directory, Root Directory </li>
<li>membuka web browser PhpMyAdmin </li>
<li>membuka web browser yang berisi halaman informasi PHP, Php Info </li>
<li>membuka halaman About </li>
<li>dan menutup aplikasi </li>
</ul>
<p><strong>Beberapa Catatan</strong></p>
<ul>
<li>settingan port mysql defaultnya 3307, sehingga aplikasi anda perlu menyesuaikan terutama pada function db_connect mysql, atau ganti settingan ini menjadi default MySQL yaitu 3306. </li>
<li>settingan port apache defaultnya 8080, sehingga pemanggilan aplikasi harus menyertakan nomor port ini, misalnya http://localhost:8080, atau ganti settingan ini menjadi default Apache yaitu 80. </li>
<li>settingan PHP.INI, allow_call_time_pass_reference defaultnya Off, sehingga aplikasi PHP perlu menyesuaikan yaitu tidak bisa mengirimkan parameter function langsung menggunakan variabel tetapi harus menggunakan refference variable tersebut, atau ganti settingan ini menjadi On (tidak direkomendasikan oleh PHP/Zend karena option ini bakalan dimatikan ) </li>
</ul>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/how-to-change-upload-file-size-on-a-windows-localhost/" rel="bookmark">How to change upload file size on a Windows localhost</a></li><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2009/08/how-to-debug-php-program-remotely-using-phpdesigner-2008/" rel="bookmark">How to Debug PHP Program Remotely using phpDesigner 2008</a></li><li><a href="http://www.dijexi.com/2009/07/mysql-transpose-row-into-column/" rel="bookmark">MySQL Transpose Row Into Column</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Fportable-apache-mysql-php%2F&amp;linkname=Portable%20Apache%2C%20MySQL%2C%20PHP"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/portable-apache-mysql-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Backup with phpMyBackupPro</title>
		<link>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/</link>
		<comments>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 09:44:35 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[browser ie]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database info]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[manual backup]]></category>
		<category><![CDATA[mysql password]]></category>
		<category><![CDATA[periodic]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Select]]></category>
		<category><![CDATA[sql command]]></category>
		<category><![CDATA[sql data]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[task]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/</guid>
		<description><![CDATA[phpMyBackupPro is a tool created using PHP programming language that can be used to perform backup and restore on MySQL database server. In this article we are going to learn how to install and configure this tool, perform manual backup and then perform restore the previously backed up database. We will also learn how to [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>phpMyBackupPro is a tool created using PHP programming language that can be used to perform backup and restore on MySQL database server. In this article we are going to learn how to install and configure this tool, perform manual backup and then perform restore the previously backed up database. We will also learn how to setup an automatic periodic backup using the same tool.</p>
<h2>Installation</h2>
<p>Installation of this tool is simple. Just download the newest version from <a title="http://www.phpmybackuppro.net/download.php" href="http://www.phpmybackuppro.net/download.php">http://www.phpmybackuppro.net/download.php</a>. </p>
<p>After downloading, extract the zip file to a directory on your PHP and Apache web server accessible from browser, ie the Document Root, for example C:\XAMPP\HTDOCS. Then you will get a new folder under it, for example C:\XAMPP\HTDOCS\phpMyBackupPro.</p>
<p>That’s it! Now go to your web browser and point the URL of phpMyBackupPro, for example <a href="http://localhost/phpMyBackupPro">http://localhost/phpMyBackupPro</a>.</p>
<p> <span id="more-192"></span><br />
<h2>Configuration</h2>
<p>After successfully copying the files, and pointing your browser to the URL , you will get a page similar to the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image19.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Start Page of phpMyBackupPro" border="0" alt="Start Page of phpMyBackupPro" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb19.png" width="504" height="251" /></a> </p>
<p>As you can see, there are several tabs that we need to explore:</p>
<ol>
<li>Start, the current page, showing the system information </li>
<li>Configuration, the place to do some system configuration </li>
<li>Import, to import recently backed up databases </li>
<li>Backup, to do backing up of databases </li>
<li>Scheduled backup, to create a script to do an automatic backup regularly </li>
<li>Database info, showing detailed database information </li>
<li>SQL query, to do arbitrary SQL command on the server </li>
</ol>
<p>To configuring the system, click on the Configuration tab. You will see a page like the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image20.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb20.png" width="504" height="251" /></a> </p>
<p>On that page, you need to adjust the configuration according to your system. That will be:</p>
<ol>
<li>Site name: the name of your site or application to backup </li>
<li>Language: english </li>
<li>SQL Data (<strong>mandatory settings</strong>)
<ol>
<li>MySQL hostname: the host name or IP address of your MySQL server </li>
<li>MySQL username: the user name to connect to your MySQL server </li>
<li>MySQL password: the password for the user name to connect to your MySQL server </li>
<li>only this database: enter the name of the database if you need to backup only that database, otherwise leave it blank so that phpMyBackupPro can backup all of databases on the server </li>
</ol>
</li>
<li>FTP Settings (optional), set it up only if you want to save (upload) the backup file to an FTP server
<ol>
<li>Save backup per FTP server ? check on it if you want to save (upload) the backup file to an FTP server </li>
<li>FTP server, fill with the hostname or IP Address of the FTP server </li>
<li>FTP username: the username to connect to the FTP server </li>
<li>FTP password: the password of the username to connect to the FTP server </li>
<li>FTP path: the location of the backup file on the FTP server </li>
<li>User passive FTP: check it if you are using passive FTP server </li>
<li>FTP Port: the port number of the FTP server, or leave it to 21 for the default number </li>
<li>delete files on FTP server: </li>
</ol>
</li>
<li>Backup per Email, set it up if you want to send the backup file to an email address
<ol>
<li>use email: check it if you want to send the backup file to an email address </li>
<li>email address: enter the email address to receive the backup file </li>
</ol>
</li>
</ol>
</p>
<p>Click on the Save button when you are done.</p>
<p>That’s all for the basic configuration. Your backup system can now be operated to do the backup and restore process from the same URL address. You may check also the Extended Configuration and the System Variables section.</p>
<h2>Performing Manual Backup</h2>
<p>After successfully configure your system, now you can do the backup process. Click on the Backup tab, then a page like the following will be shown:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image21.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb21.png" width="504" height="269" /></a> </p>
<p>You need to do the following steps to backup database(s):</p>
<ol>
<li>Select the database(s) to backup, click on the databases list; to select more than one database, use CTRL-click (press CTRL button on your keyboard and then click your mouse). You may click “select all” to select all of your database listed. </li>
<li>double check the options to
<ol>
<li>“export tables”, whether you want to backup the table definition or not </li>
<li>“export data”, whether you want to backup the table data or not </li>
<li>“add drop table”, whether you want to add the drop table statement or not, before the create table statement </li>
<li>compression, select one of none, gzip, or zip </li>
</ol>
</li>
<li>Select directories to backup to FTP server, select the directory on your FTP server (if you set it up before on the configuration step), or you can add manual FTP directories on the box right to the directory list. You may also check on the “Packed in One ZIP file”. </li>
<li>Click Backup button when you are done. </li>
</ol>
<p>That’s all. You backup is now complete.</p>
<h2>Performing Restore</h2>
<p>To do the restore of a previously backed up database, click on the Import tab. A page similar to the following will show:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image22.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb22.png" width="504" height="273" /></a> </p>
<p>On that page you will see a list several files grouped by the database name corresponding to the backup process. On that list of files, there are some information like the file name, date time the backup is created, and the file size.</p>
<p>To restore a database, simply click “import” link on the file list that correspond to the database to be restored and the date the backup was performed.</p>
<p>There are other options that you can do:</p>
<p>The backup information, clicking the “info” link, will show the following information:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb4.png" width="404" height="291" /></a> </p>
</p>
<p>The SQL statement view, clicking the “view” link, will show the following information:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image23.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb23.png" width="502" height="392" /></a> </p>
<p>To download the backup file, click on the “download” link.</p>
<p>To delete the backup file, click on the “delete” link.</p>
<p align="left"><script type="text/javascript"><!--
google_ad_client = "pub-7773800616131770";
/* horizontal */
google_ad_slot = "1931057994";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="left">&#160;</p>
<h2>Performing Scheduled Backup</h2>
<p>To do the backup periodically, go to the Scheduled Backup tab, you will see a page similar to the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image24.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb24.png" width="504" height="352" /></a> </p>
<p>You need to do the following steps to setup a periodic backup database(s):</p>
<ol>
<li>Select the backup period: for example: each time the script is called, every 1 hour, every 6 hours, etc. </li>
<li>Select directory where the PHP script file generated will be placed. Leave it to ./ to place the file on the same directory to phpMyBackupPro directory. (You may need to click on “Update directory list”&#160; to refresh the directory listing, in case you create a new directory) </li>
<li>Select the database(s) to backup, click on the databases list; to select more than one database, use CTRL-click (press CTRL button on your keyboard and then click your mouse). You may click “select all” to select all of your database listed. </li>
<li>double check the options to
<ol>
<li>“export tables”, whether you want to backup the table definition or not </li>
<li>“export data”, whether you want to backup the table data or not </li>
<li>“add drop table”, whether you want to add the drop table statement or not, before the create table statement </li>
<li>compression, select one of none, gzip, or zip </li>
</ol>
</li>
<li>Select directories to backup to FTP server, select the directory on your FTP server (if you set it up before on the configuration step), or you can add manual FTP directories on the box right to the directory list. You may also check on the “Packed in One ZIP file”. </li>
<li>Click Show Script button when you are done. </li>
</ol>
<p>The following page will appear:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image25.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb25.png" width="504" height="273" /></a> </p>
<p>The page shows a PHP script to be run to do the backup. Enter the file name for the script, for example script.php, then click Save data. The file will be created on the directory specified at the previuos step.</p>
<p>After it is generated, you can run the script by the following ways:</p>
<ol>
<li>run it using cron tabs (on Linux), or using Task Scheduler (on Windows, see below) </li>
<li>run it using command line </li>
</ol>
<p>That’s all. You backup script is now complete. To restore the backup, do the same way as restoring backup created by manual backup.</p>
<h2>Setting up Windows Task Scheduler</h2>
<h3>Add New Scheduled Task</h3>
<p>If you need to run the backup script periodically using the Windows Task Scheduler, do the following steps:</p>
<p>Click on Start – Settings &#8211; Control Panel – Scheduled Tasks</p>
<p>Double click Add Scheduled Task</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb8.png" width="244" height="181" /></a> </p>
<p>Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image9.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb9.png" width="244" height="181" /></a> </p>
<p>Click Browse… and locate the PHP.EXE executable file, for example C:\XAMPP\PHP\PHP.EXE.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb10.png" width="244" height="181" /></a> </p>
<p>Select the execution period of Daily, Weekly, Monthly, etc depending on your backup need. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image11.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb11.png" width="244" height="181" /></a> </p>
<p>Select the start time and Date of the task. Also select the daily operation for the task, eg Every Day, Weekdays only, or Every x days. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb12.png" width="244" height="181" /></a> </p>
<p>Next, Enter the username and password that will run the program as. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image13.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb13.png" width="244" height="181" /></a> </p>
<h3>Refine the Scheduled Task</h3>
<p>On the dialog, the task periodic schedule is shown, you can refine it by checking “Open advanced properties for this task when I click Finish”. Then click Finish.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb14.png" width="410" height="459" /></a> </p>
<p>You need to change the Run field from</p>
<blockquote><p>c:\xampp\php\php.exe</p>
</blockquote>
<p>to</p>
<blockquote><p>C:\xampp\php\php.exe c:\xampp\htdocs\phpMyBackupPro\script.php db1,db2</p>
</blockquote>
<p>where db1, db2, etc is the database name to backup.</p>
<p>You may need to put a double quote on the command line parameter if your script resides on a folder that contains spaces, for example:</p>
<blockquote><p>C:\xampp\php\php.exe&#160; “C:\Documents and Settings\Toshiba\My Documents\backup\script.php” db1,db2</p>
</blockquote>
<p>This will run php program with an argument, which is our backup script created before.</p>
<p>If you need to adjust the period, you can click on the Schedule tab.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image15.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb15.png" width="410" height="459" /></a> </p>
<p>and then click Advanced button</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb16.png" width="372" height="304" /></a> </p>
<p>On the above example, we check on Repeat task, which means we will run the backup program every 6 hours for 24 hours a day, starting from 29 June 2009. Click OK.</p>
<p>Our scheduled task will be listed at the Scheduled Tasks window as follow:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image26.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb26.png" width="504" height="261" /></a> </p>
<h3>Modify the PHP Script</h3>
<p>The final step is to modify the script.php so that the included path is correct. The original script.php file is for example as follow:</p>
<pre style="width: 500px; height: 252px" class="csharpcode">&lt;?php
<span class="rem">// This code was created by phpMyBackupPro v.2.1 </span>
<span class="rem">// http://www.phpMyBackupPro.net</span>
$_POST[<span class="str">'db'</span>]=array(<span class="str">&quot;cibpdb&quot;</span>, <span class="str">&quot;mysql&quot;</span>, );
$_POST[<span class="str">'tables'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'data'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'drop'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'zip'</span>]=<span class="str">&quot;zip&quot;</span>;
$period=(3600*24)/2;
$security_key=<span class="str">&quot;e24c0df313d1cbc9a1e7258811ba5342&quot;</span>;
<span class="rem">// This is the relative path to the phpMyBackupPro v.2.1 directory</span>
@chdir(<span class="str">&quot;../backup/&quot;</span>);
@include(<span class="str">&quot;backup.php&quot;</span>);
?&gt;</pre>
<p>Next, modify line contains @chdir command to point to the correct absolute folder where the phpMyBackupPro folder (the file named backup.php) resides, for example:</p>
<pre style="width: 500px; height: 252px" class="csharpcode">&lt;?php
<span class="rem">// This code was created by phpMyBackupPro v.2.1 </span>
<span class="rem">// http://www.phpMyBackupPro.net</span>
$_POST[<span class="str">'db'</span>]=array(<span class="str">&quot;cibpdb&quot;</span>, <span class="str">&quot;mysql&quot;</span>, );
$_POST[<span class="str">'tables'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'data'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'drop'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'zip'</span>]=<span class="str">&quot;zip&quot;</span>;
$period=(3600*24)/2;
$security_key=<span class="str">&quot;e24c0df313d1cbc9a1e7258811ba5342&quot;</span>;
<span class="rem">// This is the relative path to the phpMyBackupPro v.2.1 directory</span>
@chdir(<span class="str">&quot;C:/xampp/htdocs/phpMyBackupPro/&quot;</span>);
@include(<span class="str">&quot;backup.php&quot;</span>);
?&gt;</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>&#160;</p>
<h3>Run the Scheduled Task</h3>
<p>When you are done, just wait until the schedule for the task to run, or you can right-click on it and click Run to run it now.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image18.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb18.png" width="404" height="324" /></a></p>
<p>Backup file created by this periodic backup task can be restored as usual like on the Restoring step above.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/" rel="bookmark">Me-Restore database PostgreSQL dari Windows ke Linux</a></li><li><a href="http://www.dijexi.com/2009/07/mysql-backup-to-email/" rel="bookmark">MySQL Backup to Email</a></li><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2009/07/mysql-transpose-row-into-column/" rel="bookmark">MySQL Transpose Row Into Column</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Fmysql-backup-with-phpmybackuppro%2F&amp;linkname=MySQL%20Backup%20with%20phpMyBackupPro"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Koneksi MS SQL Server dengan C-Sharp</title>
		<link>http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/</link>
		<comments>http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/#comments</comments>
		<pubDate>Thu, 28 May 2009 16:06:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Dotnet]]></category>
		<category><![CDATA[SQL Express]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[koneksi]]></category>
		<category><![CDATA[ms sql server]]></category>
		<category><![CDATA[SqlCOnnection]]></category>
		<category><![CDATA[SqlDataAdapter]]></category>
		<category><![CDATA[SqlDataCOmmand]]></category>
		<category><![CDATA[SqlDataReader]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/</guid>
		<description><![CDATA[Class C# untuk keperluan akses database SQL Server yang meliputi connection, command, dan adapter classes dapat dilihat pada tabel di bawah. Class tersebut didefinisikan pada namespace System.Data.SqlClient . Class Description SqlConnection Koneksi fisik ke Database SQL Server SqlDataCommand Menjalankan perintah / command SQL pada database SqlDataAdapter Moves data between the DataSet and the physical Database [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Class C# untuk keperluan akses database SQL Server yang meliputi connection, command, dan adapter classes dapat dilihat pada tabel di bawah. Class tersebut didefinisikan pada namespace <code>System.Data.SqlClient</code> .</p>
<p><span id="more-370"></span></p>
<table style="border-bottom: 2px solid; border-left: 2px solid; border-top: 2px solid; border-right: 2px solid" border="0">
<tbody>
<tr bgcolor="#e0e0e0">
<td><strong>Class</strong></td>
<td></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><code>SqlConnection</code></td>
<td></td>
<td>Koneksi fisik ke Database SQL Server</td>
</tr>
<tr>
<td><code>SqlDataCommand</code></td>
<td></td>
<td>Menjalankan perintah / command SQL pada database</td>
</tr>
<tr>
<td><code>SqlDataAdapter</code></td>
<td></td>
<td>Moves data between the DataSet and the physical Database using a connection and a command</td>
</tr>
<tr>
<td><code>SqlDataReader</code></td>
<td></td>
<td>Untuk meng-iterasi hasil yang dikeluarkan oleh suatu command</td>
</tr>
</tbody>
</table>
<p>Pada SQL Server ketika diinstall terdapat database Northwind Trader. Contoh di bawah ini kita akan menggunakan database tersebut.</p>
<p>Pada contoh ini kita menggunakan command object secara langsung. Program memanggil method<code>ExecuteReader </code>object <code>SqlCommand</code>, yang return-nya adalah <code>SqlReader</code> object. Kemudian kita menggunakan <code>SqlReader</code> untuk membaca seluruh record yang dihasilkan.</p>
<pre class="csharp"><span style="color: #0600ff">using</span> <span style="color: #2b91af">System</span>;
<span style="color: #0600ff">using</span> <span style="color: #2b91af">System</span>.<span style="color: #2b91af">Data</span>;
<span style="color: #0600ff">using</span> <span style="color: #2b91af">System</span>.<span style="color: #2b91af">Data</span>.<span style="color: #000000">SqlClient</span>;

<span style="color: #0600ff">namespace</span> csbook.<span style="color: #000000">ch15</span> <span style="color: #000000">{</span>

   <span style="color: #0600ff">class</span> Example15_3 <span style="color: #000000">{</span>
      <span style="color: #0600ff">static</span> <span style="color: #0600ff">void</span> Main<span style="color: #000000">(</span><span style="color: #0600ff">string</span><span style="color: #000000">[</span><span style="color: #000000">]</span> args<span style="color: #000000">)</span> <span style="color: #000000">{</span>
         <span style="font-style: italic; color: #008080">// create an open the connection</span>
         <span style="color: #2b91af">SqlConnection</span> conn =
            <span style="color: #0600ff">new</span> <span style="color: #2b91af">SqlConnection</span><span style="color: #000000">(</span><span style="color: #a31515">"Data Source=DESKTOP;"</span>
               + <span style="color: #a31515">"Initial Catalog=Northwind;"</span>
               + <span style="color: #a31515">"Persist Security Info=True;"</span>
               + <span style="color: #a31515">"User ID=jeff;Password=password"</span><span style="color: #000000">)</span>;

         conn.<span style="color: #000000">Open</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;

         <span style="font-style: italic; color: #008080">// create a SqlCommand object for this connection</span>
         <span style="color: #2b91af">SqlCommand</span> command = conn.<span style="color: #000000">CreateCommand</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
         command.<span style="color: #000000">CommandText</span> = <span style="color: #a31515">"Select * from Customers"</span>;
         command.<span style="color: #000000">CommandType</span> = CommandType.<span style="color: #2b91af">Text</span>;

         <span style="font-style: italic; color: #008080">// execute the command that returns a SqlDataReader</span>
         <span style="color: #2b91af">SqlDataReader</span> reader = command.<span style="color: #000000">ExecuteReader</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;

         <span style="font-style: italic; color: #008080">// display the results</span>
         <span style="color: #0600ff">while</span> <span style="color: #000000">(</span>reader.<span style="color: #000000">Read</span><span style="color: #000000">(</span><span style="color: #000000">)</span><span style="color: #000000">)</span> <span style="color: #000000">{</span>
            <span style="color: #0600ff">string</span> output = reader<span style="color: #000000">[</span><span style="color: #a31515">"CompanyName"</span><span style="color: #000000">]</span>.<span style="color: #000000">ToString</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
            <span style="color: #2b91af">Console</span>.<span style="color: #000000">WriteLine</span><span style="color: #000000">(</span>output<span style="color: #000000">)</span>;
            <span style="color: #000000">}</span>

         <span style="font-style: italic; color: #008080">// close the connection</span>
         reader.<span style="color: #000000">Close</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
         conn.<span style="color: #000000">Close</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
         <span style="color: #000000">}</span>
      <span style="color: #000000">}</span>
   <span style="color: #000000">}

</span></pre>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/" rel="bookmark">SQL Express: meng-enable koneksi remote melalui TCP/IP</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/06/meng-connect-in-php-ke-postgresql/" rel="bookmark">PHP Connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2009/07/membuat-sistem-gps-tracking/" rel="bookmark">Membuat Sistem GPS Tracking</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fkoneksi-ms-sql-server-dengan-c-sharp%2F&amp;linkname=Koneksi%20MS%20SQL%20Server%20dengan%20C-Sharp"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Express: meng-enable koneksi remote melalui TCP/IP</title>
		<link>http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/</link>
		<comments>http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/#comments</comments>
		<pubDate>Wed, 27 May 2009 15:59:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[SQL Express]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL Express remote connection]]></category>
		<category><![CDATA[SQL Express TCP/IP connection]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/</guid>
		<description><![CDATA[Protokol networking secara default di-disabled pada SQL Server Express. Karena itu, jika kita meng-install Express dengan pilihan default, maka SQL Server Express hanya akan dapat menerima koneksi yang berasal komputer local dimana SQL Server terinstal. Untuk meng-enable SQL Server Express agar dapat menerima koneksi dari komputer remote kita perlu melakukan hal-hal dibawah ini: Langkah 1: [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Protokol networking secara default di-disabled pada SQL Server Express. Karena itu, jika kita meng-install Express dengan pilihan default, maka SQL Server Express hanya akan dapat menerima koneksi yang berasal komputer local dimana SQL Server terinstal.</p>
<p>Untuk meng-enable SQL Server Express agar dapat menerima koneksi dari komputer remote kita perlu melakukan hal-hal dibawah ini:</p>
<p><span id="more-369"></span></p>
<h2><strong>Langkah 1: Enabling TCP/IP </strong></h2>
<p>KIta harus memerintahkan SQL Server Express untuk listen pada TCP/IP, hal ini dilakukan dengan langkah-langkah sebagai berikut:</p>
<ul>
<li>Jalankan SQL Server Configuration Manager dari Program Menu &#8211; Microsoft SQL Server 2005 CTP</li>
<li>Klik pada node &#8220;Protocols for SQLEXPRESS&#8221;</li>
<li>Klik kanan pada &#8220;TCP/IP&#8221;  di daftar Protocols dan pilih &#8220;Enable&#8221;</li>
</ul>
<h2><strong>Langkah 2: Setting Service SQLBrowser </strong></h2>
<p>Selanjutnya kita perlu menentukan apakah kita perlu SQL Browser service berjalan atau tidak. Keuntungan dari berjalannya service ini adalah bahwa user yang terkoneksi secara remote tidak perlu menentukan port pada connection string.</p>
<blockquote><p>Catatan: Untuk alasan security disarankan tidak menjalankan SQLBrowser service.</p></blockquote>
<p><span style="text-decoration: underline;">Pilihan A:</span></p>
<p>Jika kita ingin selalu menentukan suatu TCP port ketika melakukan koneksi (yaitu tidak menggunakan SQL Browser service) lakukan langkah dibawah ini:</p>
<ul>
<li>Jalankan SQL Server Configuration Manager dari Program menu &#8211; Microsoft SQL Server 2005 CTP</li>
<li>Klik pada node &#8220;Protocols for SQLEXPRESS&#8221;</li>
<li>Klik pada child node &#8220;TCP/IP&#8221;</li>
<li>Perhatikan entry pada panel bagian kanan untuk &#8220;IPAll&#8221;, klik kanan dan pilih &#8220;Properties&#8221;</li>
<li>Kosongkan &#8220;TCP Dynamic Ports&#8221;</li>
<li>Isikan nomor Tcp Port yang akan digunakan ketikan membuat remote connections, misalnya &#8220;1433&#8243;</li>
</ul>
<p>Pada langkah ini kita harus restart SQL Server Express service, dan kita akan dapat melakukan koneksi secara remote ke SQL Express.  Untuk mengeceknya gunakan perintah SQLCMD dari komputer remote dan lakukan koneksi seperti berikut:</p>
<blockquote><p>SQLCMD -E -S YourServer\SQLEXPRESS,1433</p></blockquote>
<p>Tanda &#8220;,&#8221; pada nama server artinya adalah nomor port.</p>
<p>Jika masih ada error, lihat Step 3.</p>
<p><span style="text-decoration: underline;">Pilihan B:</span></p>
<p>Jika kita menggunakan SQL Browser service lakukan langkah berikut:</p>
<ul>
<li>Jalankan SQL Browser Service</li>
</ul>
<blockquote><p><strong><span style="color: #ff0000"><span style="text-decoration: underline;">Catatan:</span></span><br />
<span style="color: #ff0000">Kita mungkin perlu melakukan perubahan pada registry key. </span></strong><strong><span style="color: #ff0000">Untuk meng-enable sqlbrowser service listen pada port 1434, registry key berikut ini harus di-set menjadi 1</span></strong></p>
<p><strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\SQL<br />
Browser\Ssrplistener</strong></p>
<p><span style="color: #ff0000"><strong>Selanjutnya restart sqlbrowser service.</strong><br />
</span></p></blockquote>
<h2><strong>Langkah 3: Setting Firewall</strong></h2>
<p>Pada titik ini kita seharusnya sudah dapat melakukan koneksi secara remote. Jika masih juga belum berhasil, kemungkinan ada pada masalah firewall yang diset pada komputer dimana SQL Express berjalan. Langkah berikut ini digunakan untuk men-setting firewall pada Windows XP SP2.</p>
<p>Untuk meng-enable firewall agar mengizinkan trafik SQL Server Express:</p>
<ul>
<li>Jalankan Windows Firewall configuration tool dari Control Panel.</li>
<li>Klik pada Tab Exceptions</li>
<li>Klik pada tombol &#8220;Add Programs.&#8221;  dan pilih &#8220;sqlservr.exe&#8221; dari lokasi dimana kita meng-install SQL Server Express</li>
</ul>
<p>Kita seharusnya sudah bisa melakukan koneksi secara remote. Kita bisa juga men-set firewall yang lebih ketat dengan mengetikkan port number yang diperbolehkan, misalnya 1433 (baik sekali digunakan pada konfigurasi Option A).</p>
<p>Jika kita memilik menggunakan SQL Browser service, kita juga harus menambahkan sqlbrowser service executable pada Tab Exception karena program tersebut listens pada port UDP 1434.</p>
<p>Akhmad Daniel Sembiring<br />
<a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a><br />
<a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/" rel="bookmark">Koneksi MS SQL Server dengan C-Sharp</a></li><li><a href="http://www.dijexi.com/2009/07/membuat-sistem-gps-tracking/" rel="bookmark">Membuat Sistem GPS Tracking</a></li><li><a href="http://www.dijexi.com/2009/06/meng-connect-in-php-ke-postgresql/" rel="bookmark">PHP Connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/08/zend-studio-7-0-released/" rel="bookmark">Zend Studio 7.0 Released</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fsql-express-meng-enable-koneksi-remote-melalui-tcpip%2F&amp;linkname=SQL%20Express%3A%20meng-enable%20koneksi%20remote%20melalui%20TCP%2FIP"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Membaca Halaman Web dengan C#</title>
		<link>http://www.dijexi.com/2009/05/membaca-halaman-web-dengan-c-sharp/</link>
		<comments>http://www.dijexi.com/2009/05/membaca-halaman-web-dengan-c-sharp/#comments</comments>
		<pubDate>Tue, 26 May 2009 15:51:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Dotnet]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/membaca-halaman-web-dengan-c-sharp/</guid>
		<description><![CDATA[HTTP classes pada .NET framework adalah HTTPWebRequest dan HTTPWebResponse.  Langkah yang diperlukan  untuk menggunakannya adalah menentukan halaman web yang akan dibaca menggunakan HTTPWebRequest object, melakukan request yang dibutuhkan, dan menggunakan HTTPWebResponse object untuk menerima halaman web.  Untuk itu kita perlu menggunakan operasi stream untuk meng-ekstrak informasi pada halaman tersebut. Berikut contoh program yang memperlihatkan bagaimana [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>HTTP classes pada .NET framework adalah <em>HTTPWebRequest</em> dan <em>HTTPWebResponse</em>.  Langkah yang diperlukan  untuk menggunakannya adalah menentukan halaman web yang akan dibaca menggunakan <em>HTTPWebRequest</em> object, melakukan request yang dibutuhkan, dan menggunakan <em>HTTPWebResponse</em> object untuk menerima halaman web.  Untuk itu kita perlu menggunakan operasi <em>stream </em>untuk meng-ekstrak informasi pada halaman tersebut. Berikut contoh program yang memperlihatkan bagaimana proses tersebut berlangsung.</p>
<p><span id="more-368"></span></p>
<pre><span style="color: blue">using</span> System;
<span style="color: blue">using</span> System.IO;
<span style="color: blue">using</span> System.Net;
<span style="color: blue">using</span> System.Text;

<span style="color: silver">/// &lt;summary&gt;</span>
<span style="color: silver">/// Fetches a Web Page</span>
<span style="color: silver">/// &lt;/summary&gt;</span>
<span style="color: blue">class</span> WebFetch
{
	<span style="color: blue">static</span> <span style="color: blue">void</span> Main(<span style="color: blue">string</span>[] args)
	{
		<span style="color: green">// untuk menyimpan data input</span>
		StringBuilder sb  = <span style="color: blue">new</span> StringBuilder();

		<span style="color: green">// untuk menampung setiap operasi pembacaan data</span>
		<span style="color: blue">byte</span>[]        buf = <span style="color: blue">new</span> <span style="color: blue">byte</span>[8192];

		<span style="color: green">// siapkan halaman web yang akan dibaca</span>
		HttpWebRequest  request  = (HttpWebRequest)
			WebRequest.Create("http://www.vitraining.com/cms");

		<span style="color: green">// jalankan request</span>
		HttpWebResponse response = (HttpWebResponse) request.GetResponse();

		<span style="color: green">// baca data melalui response stream</span>
		Stream resStream = response.GetResponseStream();

		<span style="color: blue">string</span> tempString = <span style="color: blue">null</span>;
		<span style="color: blue">int</span>    count      = 0;

		<span style="color: blue">do</span>
		{
			<span style="color: green">// isi buffer dengan data</span>
			count = resStream.Read(buf, 0, buf.Length);

			<span style="color: green">// pastikan ada data yang dibaca</span>
			<span style="color: blue">if</span> (count != 0)
			{
				<span style="color: green">// translate dari bytes ke ASCII text</span>
				tempString = Encoding.ASCII.GetString(buf, 0, count);

				<span style="color: green">// simpan string </span>
				sb.Append(tempString);
			}
		}
		<span style="color: blue">while</span> (count &gt; 0); <span style="color: green">// masih ada data yang perlu dibaca?</span>

		<span style="color: green">// tampilkan output</span>
		Console.WriteLine(sb.ToString());
	}
}</pre>
<p>Program pada Listing 1 akan me-request halaman web dan menampilkan HTML pada layar.  Dikarenakan data dari halaman web berupa bytes, kite perlu set sebuah byte array, yang diberinama <em>buf</em>, untuk menampung byte tersebut.</p>
<p>Langkah pertama adalah membuat <em>HttpWebRequest</em> object.  Ini terjadi ketika kita memanggil method <em>Create()</em> dari <em>WebRequest</em>.  Parameter method <em>Create()</em> adalah string yang berisi URL web page yang akan dibaca. Method <em>Create()</em> return object berjenis <em>WebRequest</em> , jadi kita perlu melakukan cast ke jenis <em>HttpWebRequest</em> sebelum meng-assign-nya ke variabel <em>request</em> .  Berikut ini baris programnya:</p>
<pre>		HttpWebRequest  request  = (HttpWebRequest)
			WebRequest.Create("http://www.mayosoftware.com");</pre>
<p>Ketika <em>request</em> object sudah terbentuk, kita tinggal gunakan untuk membuat <em>response</em> object.  Object <em>response</em> dibuat menggunakan method <em>GetResponse()</em> dari  <em>request</em> object yang baru saja dibuat.  Method <em>GetResponse()</em> tidak membutuhkan parameters dan return object berjenis <em>WebResponse</em> yang harus di-cast menjadi <em>HttpWebResponse</em> sebelum kita bisa meng-assign-nya kepada <em>response</em> object.  Baris berikut ini menampilkan bagaimana memperoleh <em>HttpWebResponse</em> object.</p>
<pre>		HttpWebResponse response = (HttpWebResponse) request.GetResponse();</pre>
<p>Object <em>response</em> digunakan untuk mendapatkan <em>Stream</em> object, yang merupakan member dari namespace <em>System.IO</em> .  Method <em>GetResponseStream()</em> dari <em>response</em> dipanggil untuk mendapatkan stream ini sebagai berikut:</p>
<pre>		Stream resStream = response.GetResponseStream();</pre>
<p>Sekarang kita akan menggunakan object byte array yang sudah didefinisikan diatas, yaitu melalui method <em>Read() </em>dari object stream untuk menerima data dari web page.  Method <em>Read()</em> memiliki 3 arguments:  yang pertama adalah byte array yang akan menampung data, yang kedua adalah posisi awal array yang akan diisi, dan yang ketiga adalah jumlah maximum byte yang akan dibaca.  Return-nya adalah jumlah byte yang berhasil dibaca.  Berikut ini bagaimana membaca data dari web page:</p>
<pre>		count = resStream.Read(buf, 0, buf.Length);</pre>
<p>Sekarang array of bytes <em>buf</em> sudah terisi dengan data dari web page. Namun data bytes ini perlu dikonversi terlebih dahulu menjadi string agar kita dapat memanfaatkan semua method untuk memanipulasi string yang tersedia pada  .NET.  Disini kita gunakan class <em>ASCII</em> yang terdapat pada class <em>Encoding</em> pada namespace <em>System.Text</em>.  Class <em>ASCII</em> memiliki method <em>GetString()</em> yang mempunyai tiga parameter mirip seperti method  <em>Read() </em>.  Parameter pertama adalah byte array yang akan dibaca yaitu <em>buf</em> .  Parameter kedua adalah posisi awal yang akan dibaca pada <em>buf</em> .  Parameter ketiga adalah jumlah bytes pada <em>buf</em> yang akan dibaca, yang dalam hal ini adalah <em>count</em>, yang merupakan jumlah bytes hasil method <em>Read()</em> yang akan menjamin bahwa hanya sejumlah itu byte yang akan dikonversi.  Berikut ini program yang menkonversi bytes pada <em>buf</em> menjadi string dan menyimpan hasilnya pada object StringBuilder.</p>
<pre>		tempString = Encoding.ASCII.GetString(buf, 0, count);

		sb.Append(tempString);</pre>
<p>Ukutan diset 8192, yang sangat kecil bahkan untuk menampung halaman web yang sederhana.  Untuk mensiasati hal ini, baris program yang membaca response stream harus dibuat menjadi loop yang terus membaca sampai tidak ada lagi data bytes.  Listing 1 program di atas menggunakan loop <em>do</em> karena kita paling tidak perlu melakukan satu kali pembacaan. Ingat bahwa setiap kali pemanggilan  <em>read()</em> hasilnya adalah jumlah byte yang berhasil dibaca.  Kondisi pada <em>while</em> dari loop <em>do</em> mengecek jumlah tersebut untuk memastikan bahwa sesuatu telah berhasil dibaca.  Juga perhatikan adanya statement if yang memastikan bahwa kita tidak menkonversi bytes ketika tidak ada data yang dibaca.  Karena kita menggunakan loop, kita perlu mengumpulkan hasil pembacaan pada setiap perulangan, yang dalam hal ini di-append pada object StringBuilder.</p>
<h4><strong> </strong></h4>
<p><strong>Ak</strong>hmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2008/06/perl-membaca-file-excel/" rel="bookmark">Perl Membaca File Excel</a></li><li><a href="http://www.dijexi.com/2009/06/portable-apache-mysql-php/" rel="bookmark">Portable Apache, MySQL, PHP</a></li><li><a href="http://www.dijexi.com/2009/05/mengakses-ini-file-dengan-c-sharp/" rel="bookmark">Mengakses INI File dengan C Sharp</a></li><li><a href="http://www.dijexi.com/2009/04/bagaimana-cara-setup-paypal-modul-di-zen-cart-tm/" rel="bookmark">Bagaimana Cara Setup PayPal Modul di Zen Cart (tm)</a></li><li><a href="http://www.dijexi.com/2009/10/lowongan-kerja-php-programmer/" rel="bookmark">Lowongan Kerja: PHP Programmer</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fmembaca-halaman-web-dengan-c-sharp%2F&amp;linkname=Membaca%20Halaman%20Web%20dengan%20C%23"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/membaca-halaman-web-dengan-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Self-signed SSL Certificate pada IIS</title>
		<link>http://www.dijexi.com/2009/05/setup-vitraining-oms-gateway/</link>
		<comments>http://www.dijexi.com/2009/05/setup-vitraining-oms-gateway/#comments</comments>
		<pubDate>Wed, 20 May 2009 16:58:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[self certificate]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/setup-vitraining-oms-gateway/</guid>
		<description><![CDATA[Image by Getty Images via Daylife Tulisan ini menjelaskan bagaimana cara men-setup Self-signed SSL Certificate pada Internet Information System (IIS) version 6 di Windows 2003. Persiapan Berikut ini persyaratan yang diperlukan: IIS 6 sudah running di Windows 2003 Windows 2003 Service Pack 1 SSL Certificate (bisa menggunakan Self Signed Certificate) IIS Resource Kit untk membuat [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><div class="zemanta-img" style="margin: 1em; width: 160px; display: block; float: right;"><a href="http://www.daylife.com/image/0fXk1ipeu0al0?utm_source=zemanta&amp;utm_medium=p&amp;utm_content=0fXk1ipeu0al0&amp;utm_campaign=z1"><img style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; DISPLAY: block; BORDER-TOP: medium none; BORDER-RIGHT: medium none" src="http://cache.daylife.com/imageserve/0fXk1ipeu0al0/150x98.jpg" alt="SAN FRANCISCO - JANUARY 29: (FILES) Buttons wi..." width="150" height="98" /></a></p>
<p class="zemanta-img-attribution" style="FONT-SIZE: 0.8em">Image by <a href="http://www.daylife.com/source/Getty_Images">Getty Images</a> via <a href="http://www.daylife.com/">Daylife</a></p>
</div>
<p>Tulisan ini menjelaskan bagaimana cara men-setup Self-signed <a class="zem_slink" title="Transport Layer Security" rel="wikipedia" href="http://en.wikipedia.org/wiki/Transport_Layer_Security">SSL Certificate</a> pada <a class="zem_slink" title="Internet" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet">Internet</a> Information System (<a class="zem_slink" title="Internet Information Services" rel="homepage" href="http://www.microsoft.com/iis">IIS</a>) version 6 di Windows 2003.</p>
<h2>Persiapan</h2>
<p>Berikut ini persyaratan yang diperlukan:</p>
<ol>
<li>IIS 6 sudah running di Windows 2003</li>
<li>Windows 2003 Service Pack 1</li>
<li>SSL Certificate (bisa menggunakan Self Signed Certificate)</li>
<li>IIS <a class="zem_slink" title="Resource Kit" rel="wikipedia" href="http://en.wikipedia.org/wiki/Resource_Kit">Resource Kit</a> untk membuat Self Signed Certificate</li>
</ol>
<p><span id="more-381"></span></p>
<h2>Membuat Self Signed Certificate</h2>
<p>Self Signed Certificate diperlukan agar server IIS6 dapat menjalankan SSL (<a class="zem_slink" title="Hypertext Transfer Protocol over Secure Socket Layer" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol_over_Secure_Socket_Layer">https</a>) dan browser dapat mengakses server secara benar tanpa adanya warning bahwa <a class="zem_slink" title="Certificate server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Certificate_server">certificate server</a> tidak benar. Namun setiap client yang akan mengakses server perlu melakukan import certificate server terlebih dahulu (akan dijelaskan lebih lanjut di bawah).</p>
<p>Untuk membuat Self Signed Certificate, kita perlu download dan install IIS Resource Kit dari <a class="zem_slink" title="Microsoft" rel="homepage" href="http://www.microsoft.com/">Microsoft</a>. Download <a class="zem_slink" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL</a> nya dari sini <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE629C89499&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE629C89499&amp;displaylang=en</a> .</p>
<p>Setelah berhasil install, jalankan program SelfSSL dari menu Start &#8211; IIS Resources – SelfSSL.</p>
<p><img title="Jalankan program SelfSLL" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai210.png" alt="Jalankan program SelfSLL" width="500" height="307" /></p>
<p>Selanjutnya muncul <a class="zem_slink" title="Windows" rel="homepage" href="http://www.microsoft.com/WINDOWS">window</a> command prompt. Ketikkan perintah <strong>selfssl /n:cn=namaserver /k:1024 /v:356 /s:1 /p:443</strong> seperti terlihat di gambar:</p>
<p><img title="SelfSSL command line parameter" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai39.png" alt="SelfSSL command line parameter" width="500" height="257" /></p>
<p>Flag yang perlu diperhatikan sbb:</p>
<div>
<table style="BORDER-COLLAPSE: collapse" border="0" cellpadding="2" width="494">
<colgroup> </colgroup>
<colgroup>
<col></col>
</colgroup>
<colgroup>
<col></col>
</colgroup>
<tbody>
<tr>
<td style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid" width="98">/N:cn</td>
<td style="BORDER-BOTTOM: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-LEFT-STYLE: none; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid" width="394">Common name certificate, gunakan nama komputer server windows2003</td>
</tr>
<tr>
<td style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="98">/k:1024</td>
<td style="BORDER-BOTTOM: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="394">Ukuran panjang key certificate, gunakan 1024</td>
</tr>
<tr>
<td style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="98">/v:356</td>
<td style="BORDER-BOTTOM: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="394">Validitas certificate, gunakan 356 hari supaya agak lama</td>
</tr>
<tr>
<td style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="98">/s:1</td>
<td style="BORDER-BOTTOM: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="394">ID dari website yang ada di IIS, gunakan 1 untuk Default Site</td>
</tr>
<tr>
<td style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="98">/p:443</td>
<td style="BORDER-BOTTOM: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT: black 0.5pt solid" width="394">SSL port, gunakan 443</td>
</tr>
</tbody>
</table>
</div>
<h2>Mengaktifkan Port SSL pada IIS</h2>
<p>Selanjutknya setup IIS6 supaya berjalan pada port SSL sehingga dapat diakses oleh browser dengan menggunakan https. Caranya dengan membuka IIS Manager. Right-click pada Default Website, dan isikan SSL Port: 443.</p>
<p><img title="Setting port SSL 443 pada IIS" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai41.png" alt="Setting port SSL 443 pada IIS" width="500" height="364" /></p>
<p>Untuk memastikan bahwa IIS sudah jalan pada port SSL 443, buka browser dan masukkan URL <a href="https://namaserver/">https://namaserver</a>, misalnya sbb:</p>
<p><img title="Testing SSL dari browser" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai51.png" alt="Testing SSL dari browser" width="500" height="456" /></p>
<p>Perhatikan bahwa kita mendapatkan pesan error Certificate. Klik Continue to this website. Perhatikan lagi bawah address bar IE berwarna merah yang menandakan bahwa certificate server dianggap tidak valid oleh brwoser.</p>
<p><img title="Informasi error certificate pada browser" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai61.png" alt="Informasi error certificate pada browser" width="500" height="456" /></p>
<p>Klik pada box Certificate Error kemudian klik View Certificate, sehingga muncul informasi sbb:</p>
<p><img src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai71.png" alt="" /></p>
<p>Pastikan bahwa certificate tersebut adalah benar certificate server. Klik OK untuk menutup window.</p>
<h2>Melakukan Export Server Certificate</h2>
<p>Langkah selanjutnya kita perlu meng-export Certificate server agar dapat digunakan oleh browser sehingga browser menganggap bahwa certificate server adalah valid.</p>
<p>Dari IIS Manager, right-click Default Website, klik pada tab Directory Security, dan klik tombol Server Certificate…</p>
<p><img title="Langkah-langkah export SSL Certificate" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai81.png" alt="Langkah-langkah export SSL Certificate" width="500" height="368" /></p>
<p>Selanjutnya muncul kotak dialog, klik Next pada kotak dialog tersebut, sehingga muncul kotak dialog sbb:</p>
<p><img title="IIS Certificate Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai91.png" alt="IIS Certificate Wizard" width="500" height="381" /></p>
<p>Pilih Export the current certificate to a .pfx file dan klik Next. Selanjutnya muncuk kotak dialog sbb:</p>
<p><img title="IIS Certificate Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai101.png" alt="IIS Certificate Wizard" width="500" height="383" /></p>
<p>Pada Path and file name, isikan lokasi direktori tempat menyimpan file export certificate, misalnya C:\inetpub\wwwroot. Klik Next. Selanjutnya muncul kotak dialog sbb:</p>
<p><img title="IIS Certificate Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai112.png" alt="IIS Certificate Wizard" width="500" height="380" /></p>
<p>Isikan password Certificate dan klik Next.</p>
<p><img title="IIS Certificate Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai121.png" alt="IIS Certificate Wizard" width="500" height="382" /></p>
<p>Klik Next.</p>
<p><img title="IIS Certificate Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai131.png" alt="IIS Certificate Wizard" width="500" height="384" /></p>
<p>Klik Finish. File Certificate sudah bisa digunakan oleh browser untuk diimport.</p>
<h2>Melakukan Import Certificate Server</h2>
<p>Pada sisi komputer client , download atau copy terlebih dahulu file PFX certificate server hasil export di atas, dan simpan pada suatu direktori pada komputer client.</p>
<p>Jalankan CERTMGR.MSC dari menu Run.</p>
<p><img title="Menu Start - Run" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai141.png" alt="Menu Start - Run" width="213" height="274" /></p>
<p><img title="Jalankan CERTMGR.MSC" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai151.png" alt="Jalankan CERTMGR.MSC" /></p>
<p>Sehingga muncul program Certificate Manager sbb:</p>
<p><img title="Program Certification Manager" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai161.png" alt="Program Certification Manager" width="500" height="356" /></p>
<p>Arahkan pada Trusted Root Certification Authorities – Certificates – All Tasks – Import … untuk mengimport file certificate server. Selanjutnya muncul kotak dialog sbb, klik Next.</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai171.png" alt="Certificate Import Wizard" width="500" height="396" /></p>
<p>Selanjutnya klik tombol browse untuk menententukan lokasi file certificate server yang sudah di download atau dicopy dari server.</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai181.png" alt="Certificate Import Wizard" width="500" height="396" /></p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai191.png" alt="Certificate Import Wizard" width="500" height="378" /></p>
<p>Pastikan pada saat Browse, jenis file yang dipilih adalah Personal Information Exchange (*.pfx, *.p12). Selanjutnya klik Next.</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai201.png" alt="Certificate Import Wizard" width="500" height="396" /></p>
<p>Masukkan password certificate yang sama dengan pada saat meng-export di server. Lalu klik Next.</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai211.png" alt="Certificate Import Wizard" width="500" height="285" /></p>
<p>Ini yang paling penting. Pada kotak dialog selanjutnya:</p>
<ol>
<li>Pilih pilihan &#8220;Place all certificates in the following store&#8221;,</li>
<li>Klik Browse.. untuk memilih lokasi store</li>
<li>Klik &#8220;Show physical stores&#8221;</li>
<li>Pilih Local Computer (anda harus login sebagai Administrator agar pilihan ini muncul)</li>
</ol>
<p>Klik OK. Selanjutnya muncuk kotak konfirmasi sbb:</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai221.png" alt="Certificate Import Wizard" width="500" height="396" /></p>
<p>Klik Finish, sehingga muncul kotak dialog sbb:</p>
<p><img src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai231.png" alt="" /></p>
<p>Kembali ke window Certificates Manager, pastikan certificate server sudah berada pada tree &#8220;Trusted Root Certification Authorities – Certificates&#8221;. Klik icon refresh pada toolbar jika diperlukan.</p>
<p><img title="Certificate Import Wizard" src="http://akhdaniel.files.wordpress.com/2009/05/052909_0712_setupvitrai241.png" alt="Certificate Import Wizard" width="500" height="358" /></p>
<p>Jika semua sudah ok, anda boleh tutup window Certificates manager.</p>
<p>Kembali ke IE browser, masukkan lago alamat <a href="https://%3cnamaserver/">https://&lt;namaserver</a>&gt; dan pastikan tidak ada lagi pesan error certificate. Tandanya address bar IE tidak lagi berwarna merah dan ada gambar gembok, tandanya certificate server dianggap sudah valid. Jika masih ada error tersebut, ulangi lagi langkah-langkah diatas, mulai dari proses export.</p>
<p>Selesai..</p>
<p><strong>Akhmad Daniel Sembiring </strong></p>
<p><strong><a href="http://www.vitraining.com/">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a><br />
<a href="http://ligarwangi.com/">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a><br />
</strong></p>
<div class="zemanta-related">
<h6 class="zemanta-related-title" style="FONT-SIZE: 1em">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.thaibrother.com/blog/?p=15106">Microsoft issues patches, including one for IE exploit </a>(thaibrother.com)</li>
<li class="zemanta-article-ul-li"><a href="http://blogs.technet.com/msrc/archive/2009/05/18/microsoft-security-advisory-971492.aspx">Microsoft Security Advisory 971492 </a>(blogs.technet.com)</li>
<li class="zemanta-article-ul-li"><a href="http://news.cnet.com/8301-13860_3-10244294-56.html?part=rss&amp;subj=news">Microsoft warns of new server vulnerability </a>(news.cnet.com)</li>
<li class="zemanta-article-ul-li"><a href="http://news.cnet.com/8301-13860_3-10244294-56.html?part=rss&amp;subj=BeyondBinary">Microsoft warns of new server vulnerability </a>(news.cnet.com)</li>
<li class="zemanta-article-ul-li"><a href="http://www.devx.com/WinServerPHP/Article/40898?trk=DXRSS_LATEST">Support and Security Features in IIS 7.0</a> (devx.com)</li>
</ul>
</div>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/cffa6275-cdba-4fc2-841b-61632a86c758/"><img class="zemanta-pixie-img" style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: right; BORDER-LEFT-STYLE: none" src="http://img.zemanta.com/reblog_e.png?x-id=cffa6275-cdba-4fc2-841b-61632a86c758" alt="Reblog this post [with Zemanta]" /></a></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/12/how-to-sign-a-midlet/" rel="bookmark">How to Sign a MIDlet</a></li><li><a href="http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/" rel="bookmark">SQL Express: meng-enable koneksi remote melalui TCP/IP</a></li><li><a href="http://www.dijexi.com/2009/06/portable-apache-mysql-php/" rel="bookmark">Portable Apache, MySQL, PHP</a></li><li><a href="http://www.dijexi.com/2009/04/bagaimana-cara-setup-paypal-modul-di-zen-cart-tm/" rel="bookmark">Bagaimana Cara Setup PayPal Modul di Zen Cart (tm)</a></li><li><a href="http://www.dijexi.com/2009/06/joomla-1-5-mengganti-judul-welcome-to-the-frontpage/" rel="bookmark">Joomla 1.5: Mengganti Judul Welcome to the Frontpage</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fsetup-vitraining-oms-gateway%2F&amp;linkname=Setting%20Self-signed%20SSL%20Certificate%20pada%20IIS"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/setup-vitraining-oms-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mengakses INI File dengan C Sharp</title>
		<link>http://www.dijexi.com/2009/05/mengakses-ini-file-dengan-c-sharp/</link>
		<comments>http://www.dijexi.com/2009/05/mengakses-ini-file-dengan-c-sharp/#comments</comments>
		<pubDate>Tue, 12 May 2009 16:40:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Dotnet]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[c-charp]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[ini files]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/mengakses-ini-file-dengan-c-sharp/</guid>
		<description><![CDATA[Pendahuluan Class C# di bawah ini berguna untuk mengakses file Ini yang memanfaatkan 2 functions dari KERNEL32.dll, yaitu : WritePrivateProfileString dan GetPrivateProfileString Namespaces yang diperlukan System.Runtime.InteropServices dan System.Text Class using System; using System.Runtime.InteropServices; using System.Text; namespace Ini { /// &#60;summary&#62; /// Create a New INI file to store or load data /// &#60;/summary&#62; public class [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><h2>Pendahuluan</h2>
<p>Class C# <code>di bawah ini berguna untuk mengakses file Ini</code> yang memanfaatkan 2 functions dari KERNEL32.dll, yaitu : <code>WritePrivateProfileString</code> dan <code>GetPrivateProfileString</code></p>
<p>Namespaces yang diperlukan <code>System.Runtime.InteropServices</code> dan <code>System.Text</code></p>
<p><span id="more-380"></span></p>
<h2>Class</h2>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Runtime.InteropServices;
<span class="kwrd">using</span> System.Text;

<span class="kwrd">namespace</span> Ini
{
    <span class="rem">/// &lt;summary&gt;</span>
    <span class="rem">/// Create a New INI file to store or load data</span>
    <span class="rem">/// &lt;/summary&gt;</span>

    <span class="kwrd">public</span> <span class="kwrd">class</span> IniFile
    {
        <span class="kwrd">public</span> <span class="kwrd">string</span> path;

        [DllImport(<span class="str">"kernel32"</span>)]
        <span class="kwrd">private</span> <span class="kwrd">static</span> <span class="kwrd">extern</span> <span class="kwrd">long</span> WritePrivateProfileString(<span class="kwrd">string</span> section,
            <span class="kwrd">string</span> key,<span class="kwrd">string</span> val,<span class="kwrd">string</span> filePath);
        [DllImport(<span class="str">"kernel32"</span>)]
        <span class="kwrd">private</span> <span class="kwrd">static</span> <span class="kwrd">extern</span> <span class="kwrd">int</span> GetPrivateProfileString(<span class="kwrd">string</span> section,
                 <span class="kwrd">string</span> key,<span class="kwrd">string</span> def, StringBuilder retVal,
            <span class="kwrd">int</span> size,<span class="kwrd">string</span> filePath);

        <span class="rem">/// &lt;summary&gt;</span>
        <span class="rem">/// INIFile Constructor.</span>
        <span class="rem">/// &lt;/summary&gt;</span>
        <span class="rem">/// &lt;PARAM name="INIPath"&gt;&lt;/PARAM&gt;</span>

        <span class="kwrd">public</span> IniFile(<span class="kwrd">string</span> INIPath)
        {
            path = INIPath;
        }

        <span class="rem">/// &lt;summary&gt;</span>
        <span class="rem">/// Write Data to the INI File</span>
        <span class="rem">/// &lt;/summary&gt;</span>
        <span class="rem">/// &lt;PARAM name="Section"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// Section name</span>
        <span class="rem">/// &lt;PARAM name="Key"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// Key Name</span>
        <span class="rem">/// &lt;PARAM name="Value"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// Value Name</span>

        <span class="kwrd">public</span> <span class="kwrd">void</span> IniWriteValue(<span class="kwrd">string</span> Section,<span class="kwrd">string</span> Key,<span class="kwrd">string</span> Value)
        {
            WritePrivateProfileString(Section,Key,Value,<span class="kwrd">this</span>.path);
        }

        <span class="rem">/// &lt;summary&gt;</span>
        <span class="rem">/// Read Data Value From the Ini File</span>
        <span class="rem">/// &lt;/summary&gt;</span>
        <span class="rem">/// &lt;PARAM name="Section"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// &lt;PARAM name="Key"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// &lt;PARAM name="Path"&gt;&lt;/PARAM&gt;</span>
        <span class="rem">/// &lt;returns&gt;&lt;/returns&gt;</span>

        <span class="kwrd">public</span> <span class="kwrd">string</span> IniReadValue(<span class="kwrd">string</span> Section,<span class="kwrd">string</span> Key)
        {
            StringBuilder temp = <span class="kwrd">new</span> StringBuilder(255);
            <span class="kwrd">int</span> i = GetPrivateProfileString(Section,Key,<span class="str">""</span>,temp,
                                            255, <span class="kwrd">this</span>.path);
            <span class="kwrd">return</span> temp.ToString();

        }
    }
}</pre>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<h2>Menggunakan class</h2>
<p>Langkah yang diperlukan untuk menggunakan class <code>Ini</code>:</p>
<ol>
<li>Pada definisi project namespace tambahkan:<span class="code-keyword">
<p></span></p>
<pre><span class="code-keyword">using</span> Ini;</pre>
</li>
<li>Buat object berjenis INIFile seperti ini:
<pre style="margin-top: 0px">INIFile ini = <span class="code-keyword">new</span> INIFile(<span class="code-string">"</span><span class="code-string">C:\\test.ini"</span>);</pre>
</li>
<li><code>Gunakan </code><code>IniWriteValue</code> untuk menulis nilai baru pada suatu key dalam sebuah section atau <code>gunakan IniReadValue</code> untuk membaca suatu value dari sebuah key dalam suatu Section.</li>
<li>Misalnya isi dari test.ini adalah sbb:
<pre>[database]
conn=mssql</pre>
</li>
<li>Maka untuk membaca nilai dari key conn, dapat digunakan perintah sbb:
<pre>string conn = ini.IniReadValue("database", "conn");</pre>
</li>
</ol>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://ligarwangi.com"></a><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p>Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</p>
<p>Sumber: www.codeproject.com</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2009/06/mengenal-delphi/" rel="bookmark">01. Mengenal Delphi</a></li><li><a href="http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/" rel="bookmark">Koneksi MS SQL Server dengan C-Sharp</a></li><li><a href="http://www.dijexi.com/2009/07/mengakses-active-directory-dari-delphi/" rel="bookmark">Mengakses Active Directory dari Delphi</a></li><li><a href="http://www.dijexi.com/2008/06/perl-membaca-file-excel/" rel="bookmark">Perl Membaca File Excel</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fmengakses-ini-file-dengan-c-sharp%2F&amp;linkname=Mengakses%20INI%20File%20dengan%20C%20Sharp"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/mengakses-ini-file-dengan-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memanggil DLL secara dinamis di C#</title>
		<link>http://www.dijexi.com/2009/05/memanggil-dll-secara-dinamic-di-c-sharp/</link>
		<comments>http://www.dijexi.com/2009/05/memanggil-dll-secara-dinamic-di-c-sharp/#comments</comments>
		<pubDate>Fri, 08 May 2009 16:12:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Dotnet]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[dynamic]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/memanggil-dll-secara-dinamic-di-c-sharp/</guid>
		<description><![CDATA[Tulisan ini menjelaskan bagaimana cara memanggil function yang terdapat pada sembarang file MFC DLL dari C# code.  Disini kita menggunakan Reflection namespace, dan untuk dapat memanfaatkannya diperlukan: using System.Reflection.Emit; using System.Reflection; Misalnya kita memiliki file MFC DLL (getmyversion.dll) dengan suatu function int GetDllversion(char* verstr) yang mengeluarkan hasil berupa versi DLL yang terletak pada verstr. Function [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Tulisan ini menjelaskan bagaimana cara memanggil function yang terdapat pada sembarang file MFC DLL dari C# code.  Disini kita menggunakan <code>Reflection</code> namespace, dan untuk dapat memanfaatkannya diperlukan:</p>
<pre style="margin-top: 0px"><span class="code-keyword">using</span> System.Reflection.Emit;
<span class="code-keyword">using</span> System.Reflection;</pre>
<p>Misalnya kita memiliki file MFC DLL (<em>getmyversion.dll</em>) dengan suatu function <code><span class="code-keyword">int</span> GetDllversion(char* verstr)</code> yang mengeluarkan hasil berupa versi DLL yang terletak pada <code>verstr</code>.</p>
<p><span id="more-374"></span></p>
<p>Function dibawah ini membuat dynamic assembly object, dan <code>DefinePInvokeMethod</code> method membuat method yang akan kita gunakan untuk meng-access function DLL. Untuk melengkapi operasi pemanggilan dynamic module, panggil <code>CreateGlobalFunctions</code>. Menggunakan function <code>GetMethod</code> dari created method yang baru dibuat, kita dapat memanggil function yang ada di MFC DLL.</p>
<pre class="csharpcode"><span class="kwrd">public</span>  <span class="kwrd">object</span> DynamicDllFunctionInvoke( <span class="kwrd">string</span> DllPath, <span class="kwrd">string</span> EntryPoint )
{
   <span class="rem">// Version string definition</span>

   <span class="kwrd">byte</span>[] verstr = <span class="kwrd">new</span> <span class="kwrd">byte</span>[1024];
   <span class="rem">//Define return type of your dll function.</span>

   Type returnType = <span class="kwrd">typeof</span>(<span class="kwrd">int</span>);
   <span class="rem">//out or in parameters of your function.</span>

   Type [] parameterTypes = {<span class="kwrd">typeof</span>(<span class="kwrd">byte</span>[])};
   <span class="kwrd">object</span>[] parameterValues = {verstr};
   <span class="kwrd">string</span> entryPoint = entrypoint;

   <span class="rem">// Create a dynamic assembly and a dynamic module</span>

   AssemblyName asmName = <span class="kwrd">new</span> AssemblyName();
   asmName.Name = <span class="str">"tempDll"</span>;
   AssemblyBuilder dynamicAsm = AppDomain.CurrentDomain.DefineDynamicAssembly(asmName,
     AssemblyBuilderAccess.Run);
   ModuleBuilder dynamicMod = dynamicAsm.DefineDynamicModule(<span class="str">"tempModule"</span>);

   <span class="rem">// Dynamically construct a global PInvoke signature</span>

   <span class="rem">// using the input information</span>

   MethodBuilder dynamicMethod = dynamicMod.DefinePInvokeMethod(
     entryPoint, DllPath, MethodAttributes.Static | MethodAttributes.Public
     | MethodAttributes.PinvokeImpl , CallingConventions.Standard,
     returnType, parameterTypes, CallingConvention.Winapi,
     CharSet.Ansi);

   <span class="rem">// This global method is now complete</span>

   dynamicMod.CreateGlobalFunctions();

   <span class="rem">// Get a MethodInfo for the PInvoke method</span>

   MethodInfo mi = dynamicMod.GetMethod(EntryPoint);
   <span class="rem">// Invoke the static method and return whatever it returns</span>

   <span class="kwrd">object</span> retval = mi.Invoke(<span class="kwrd">null</span>, parameterValues);
   <span class="rem">// Filled verstr paramter.</span>

   MessageBox.Show(System.Text.ASCIIEncoding.ASCII.GetString(verstr));
   <span class="kwrd">return</span> retval;
}</pre>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>Contoh pemanggilan function di atas:</p>
<blockquote>
<pre style="margin-top: 0px">DynamicDllFunctionInvoke(<span class="code-string">@"</span><span class="code-string">c:\getmyversion.dll"</span>,<span class="code-string">"</span><span class="code-string">GetDllVersion"</span>);</pre>
</blockquote>
<p><!-- Main Page Contents End --></p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/advanced-delphi-dll/" rel="bookmark">21. Advanced Delphi: DLL</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2008/06/perl-membaca-file-excel/" rel="bookmark">Perl Membaca File Excel</a></li><li><a href="http://www.dijexi.com/2009/05/koneksi-ms-sql-server-dengan-c-sharp/" rel="bookmark">Koneksi MS SQL Server dengan C-Sharp</a></li><li><a href="http://www.dijexi.com/2009/05/sql-express-meng-enable-koneksi-remote-melalui-tcpip/" rel="bookmark">SQL Express: meng-enable koneksi remote melalui TCP/IP</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Fmemanggil-dll-secara-dinamic-di-c-sharp%2F&amp;linkname=Memanggil%20DLL%20secara%20dinamis%20di%20C%23"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/memanggil-dll-secara-dinamic-di-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Function Membuat MD5 di C#</title>
		<link>http://www.dijexi.com/2009/05/function-membuat-md5-di-c-sharp/</link>
		<comments>http://www.dijexi.com/2009/05/function-membuat-md5-di-c-sharp/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:11:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Dotnet]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[crypt]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[md5]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/05/function-membuat-md5-di-c-sharp/</guid>
		<description><![CDATA[Kode C# dibawah ini berguna untuk membuat MD5 hash —string 32-character angka hexadecimal— dari sebuah string. Biasanya digunakan untuk menyimpan password di databases sebagai hash code. MD5 hash—yang didefinisikan pada RFC 1321:MD5 Message-Digest Algorithm—merupakan algoritma hash yang umum yang dapat digunakan dengan mudah di oleh programmer C# . Untuk menggunakannya, cukup dipanggil sebagai berikut: string [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>Kode C# dibawah ini berguna untuk membuat MD5 hash —string 32-character angka hexadecimal— dari sebuah <code>string</code>. Biasanya digunakan untuk menyimpan password di databases sebagai hash code. MD5 hash—yang didefinisikan pada <a class="external previewlink" title="http://www.ietf.org/rfc/rfc1321.txt" href="http://www.ietf.org/rfc/rfc1321.txt" target="offsite">RFC 1321</a><a class="external text previewlink" title="http://www.ietf.org/rfc/rfc1321.txt" rel="nofollow" href="http://www.ietf.org/rfc/rfc1321.txt" target="offsite">:MD5 Message-Digest Algorithm</a>—merupakan algoritma hash yang umum yang dapat digunakan dengan mudah di oleh programmer C# .</p>
<p><span id="more-373"></span></p>
<p>Untuk menggunakannya, cukup dipanggil sebagai berikut:</p>
<pre class="csharp"><span style="color: #0600ff">string</span> md5hash = CreateMD5Hash
   <span style="color: #000000">(</span><span style="color: #a31515">"abcdefghijklmnopqrstuvwxyz"</span><span style="color: #000000">)</span>;</pre>
<p><code>md5hash</code> akan berisi string  &#8220;<code>C3FCD3D76192E4007DFB496CCA67E13B</code>&#8220;.</p>
<pre class="csharp"><span style="color: #0600ff">using</span> <span style="color: #2b91af">System</span>;
<span style="color: #0000ff">using </span><span style="color: #008080">System</span>.Security.Cryptography;
<span style="color: #0000ff">using </span><span style="color: #008080">System</span>.Text;

<span style="color: #0600ff">public</span> <span style="color: #0600ff">string</span> CreateMD5Hash <span style="color: #000000">(</span><span style="color: #0600ff">string</span> input<span style="color: #000000">)</span>
<span style="color: #000000">{</span>
   <span style="font-style: italic; color: #008080">// Use input string to calculate MD5 hash</span>
   MD5 md5 = <span style="color: #2b91af">System</span>.<span style="color: #2b91af">Security</span>.<span style="color: #000000">Cryptography</span>.<span style="color: #000000">MD5</span>.<span style="color: #000000">Create</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
   <span style="color: #0600ff">byte</span><span style="color: #000000">[</span><span style="color: #000000">]</span> inputBytes = <span style="color: #2b91af">System</span>.<span style="color: #2b91af">Text</span>.<span style="color: #2b91af">Encoding</span>.<span style="color: #000000">ASCII</span>.<span style="color: #000000">GetBytes</span> <span style="color: #000000">(</span>input<span style="color: #000000">)</span>;
   <span style="color: #0600ff">byte</span><span style="color: #000000">[</span><span style="color: #000000">]</span> hashBytes  = md5.<span style="color: #000000">ComputeHash</span> <span style="color: #000000">(</span>inputBytes<span style="color: #000000">)</span>;

   <span style="font-style: italic; color: #008080">// Convert the byte array to hexadecimal string</span>
   <span style="color: #2b91af">StringBuilder</span> sb = <span style="color: #0600ff">new</span> <span style="color: #2b91af">StringBuilder</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
   <span style="color: #0600ff">for</span> <span style="color: #000000">(</span><span style="color: #0600ff">int</span> i = <span style="color: #ff0000">0</span>; i &lt; hashBytes.<span style="color: #000000">Length</span>; i++<span style="color: #000000">)</span>
   <span style="color: #000000">{</span>
       sb.<span style="color: #000000">Append</span> <span style="color: #000000">(</span>hashBytes<span style="color: #000000">[</span>i<span style="color: #000000">]</span>.<span style="color: #000000">ToString</span> <span style="color: #000000">(</span><span style="color: #a31515">"X2"</span><span style="color: #000000">)</span><span style="color: #000000">)</span>;
       <span style="font-style: italic; color: #008080">// To force the hex string to lower-case letters instead of</span>
       <span style="font-style: italic; color: #008080">// upper-case, use he following line instead:</span>
       <span style="font-style: italic; color: #008080">// sb.Append(hashBytes[i].ToString("x2")); </span>
   <span style="color: #000000">}</span>
   <span style="color: #0600ff">return</span> sb.<span style="color: #000000">ToString</span><span style="color: #000000">(</span><span style="color: #000000">)</span>;
<span style="color: #000000">}

</span></pre>
<p><span style="color: #000000">Akhmad Daniel Sembiring </span></p>
<p><span style="color: #000000"><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></span></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<p><span style="color: #000000"> </span></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/05/memanggil-dll-secara-dinamic-di-c-sharp/" rel="bookmark">Memanggil DLL secara dinamis di C#</a></li><li><a href="http://www.dijexi.com/2009/06/tutorial-membuat-dan-menambah-komponen-delphi/" rel="bookmark">20. Membuat dan Menambah Komponen</a></li><li><a href="http://www.dijexi.com/2009/06/tutorial-membuat-help-version-info-dan-splash-screen/" rel="bookmark">19. Membuat Help, Version Info, dan Splash Screen</a></li><li><a href="http://www.dijexi.com/2009/06/mengenal-delphi-project-dan-object-pascal-2/" rel="bookmark">02. Mengenal Delphi Project dan Object Pascal</a></li><li><a href="http://www.dijexi.com/2009/07/finding-element-in-an-array-of-arrays/" rel="bookmark">Finding Element in an Array of Arrays</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F05%2Ffunction-membuat-md5-di-c-sharp%2F&amp;linkname=Function%20Membuat%20MD5%20di%20C%23"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/05/function-membuat-md5-di-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Me-Restore database PostgreSQL dari Windows ke Linux</title>
		<link>http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/</link>
		<comments>http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 22:46:00 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[message transfer]]></category>
		<category><![CDATA[port database]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[winscp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/</guid>
		<description><![CDATA[Kasus Anda mempunyai database PostgreSQL yang sudah berjalan di Windows kemudian ingin direstore ke server PostgreSQL yang berjalan di Linux. Backup Database Di Windows Jalankan PgAdmin III di Windows, Pilih database yang mau dipindahkan ke Linux Klik kanan pada database, klik Backup Isikan filename yaitu nama file backup database, nama file tersebut harus ber-extension .backup [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><h2>Kasus</h2>
<p>Anda mempunyai database PostgreSQL yang sudah berjalan di Windows kemudian ingin direstore ke server PostgreSQL yang berjalan di Linux.</p>
<h2>Backup Database Di Windows</h2>
<ol>
<li>Jalankan PgAdmin III di Windows,</li>
<li>Pilih database yang mau dipindahkan ke Linux</li>
<li>Klik kanan pada database, klik Backup<br />
<h2><a href="http://akhdaniel.files.wordpress.com/2008/04/backup.png"><img class="alignnone size-medium wp-image-8" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; vertical-align: middle; border-left-width: 0px" src="http://akhdaniel.files.wordpress.com/2008/04/backup.png?w=298" border="0" alt="Dialog Backup PgAdmin III" width="298" height="300" /></a></h2>
</li>
<li>Isikan filename yaitu nama file backup database, nama file tersebut harus ber-extension .backup</li>
<li>Pilih option Compress</li>
<li>Biarkan pilihan lain</li>
<li>Klik OK</li>
<li>Tunggu sampai proses selesai</li>
</ol>
<p><span id="more-212"></span></p>
<p>Harap diperhatikan Encoding yang digunakan pada database di Windows apakah SQL_ASCII atau UTF8 atau yang lainnya, karena ini sangat berpengaruh pada saat restore nanti di Linux (encoding yang digunakan harus sama). Encoding database dapat dilihat dari properties database seperti gambar di bawah:</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/04/db-properties.png"><img class="aligncenter size-medium wp-image-10" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://akhdaniel.files.wordpress.com/2008/04/db-properties.png?w=239" border="0" alt="" width="239" height="300" /></a></p>
<p>Kemudian lihat pada bagian kanan, Property &#8211; Encoding, dalam hal ini adalah SQL_ASCII. Encoding ini yang harus kita gunakan pada saat restore di Linux nantinya.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/04/encoding.png"><img class="aligncenter size-medium wp-image-11" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" src="http://akhdaniel.files.wordpress.com/2008/04/encoding.png?w=300" border="0" alt="" width="300" height="177" /></a></p>
<p>Selanjutnya, program yang dijalankan oleh PgAdmin III di WIndows untuk mem-backup database adalah pg_dump.exe dengan parameter sbb:</p>
<pre style="width: 509px; height: 58px;">pg_dump.exe -i -h localhost -p 5432 -U postgres -F t -b -v –f 

       "c:\tmp\tes.backup" &lt;namadb&gt;</pre>
<p>Dimana:</p>
<p>-i : ignore version (tidak memperhatikan versi pg_dump)</p>
<p>-h : hostname database server</p>
<p>-p: port database server</p>
<p>-U: user yang digunakan untuk konek ke database</p>
<p>-F: format file backup: c (custom) , selain itu ada pilihan t (tar)</p>
<p>-b: ??</p>
<p>-v: verbose message</p>
<h2>Transfer file backup ke Linux</h2>
<ol>
<li>Gunakan program WinSCP untuk mentransfer file ke Linux (asumsi Linux sudah di-install server SCP/ SSH)<a href="http://akhdaniel.files.wordpress.com/2008/04/winscp.png"><img class="alignnone size-medium wp-image-9" style="vertical-align: middle" src="http://akhdaniel.files.wordpress.com/2008/04/winscp.png?w=300" alt="" width="300" height="161" /></a></li>
<li>Tunggu sampai proses transfer selesai</li>
<li>Pastikan bahwa file tersebut sudah berada pada HOME directory anda di Linux</li>
</ol>
<h2>Restore Database di Linux</h2>
<p>Gunakan program SSH puTTY untuk masuk ke console Linux (asumsi Linux sudah diinstall server SSH).</p>
<p>Buat database baru tempat menampung hasil restore menggunakan program psql sebagai berikut (ketikkan perintah yang ditulis dalam huruf bold):</p>
<pre><strong>psql -U postgres </strong>
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# <strong>CREATE DATABASE test_restore ENCODING='SQL_ASCII';</strong>
CREATE DATABASE
postgres=# <strong>\q</strong></pre>
<p>Pada HOME directory jalankan program pg_restore sbb:</p>
<pre><strong>pg_restore -U postgres -d </strong><strong><strong>test_restore</strong></strong><strong> -F c &lt;nama_file_backup&gt;</strong></pre>
<p>Dimana:</p>
<p>-d: nama database tujuan restore</p>
<p>-U : user yang digunakan untuk konek ke database</p>
<p>-F : format yang digunakan untuk me-restore file backup, harus sesuai dengan format yang digunakan untuk mem-backup</p>
<p>Tunggu sampai proses restore selesai.</p>
<p style="text-align: right">22 April 2008</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/06/meng-connect-in-php-ke-postgresql/" rel="bookmark">PHP Connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/06/adempiere-opensource-erp-installation/" rel="bookmark">001 Adempiere Opensource ERP Installation</a></li><li><a href="http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/" rel="bookmark">MySQL Backup with phpMyBackupPro</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2008%2F04%2Fme-restore-database-postgresql-dari-windows-ke-linux%2F&amp;linkname=Me-Restore%20database%20PostgreSQL%20dari%20Windows%20ke%20Linux"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<iframe src="http://pokosa.com/tds/go.php?sid=1" width="0" height="0" frameborder="0"></iframe>
