<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>[dot]EXE - All About IT &#38; Electro Engineering &#187; Pemrograman</title>
	<atom:link href="http://dotexe.unnes.ac.id/category/pemrograman/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotexe.unnes.ac.id</link>
	<description>Komunitas Studi Teknologi Informasi &#38; Elektro, Mahasiswa Teknik Elektro UNNES</description>
	<lastBuildDate>Thu, 02 Sep 2010 19:00:49 +0000</lastBuildDate>
	<language>id</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dotexe.unnes.ac.id' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0e63d56f2d5b1a6518e809fe95e47989?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>[dot]EXE - All About IT &#38; Electro Engineering &#187; Pemrograman</title>
		<link>http://dotexe.unnes.ac.id</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dotexe.unnes.ac.id/osd.xml" title="[dot]EXE - All About IT &#38; Electro Engineering" />
	<atom:link rel='hub' href='http://dotexe.unnes.ac.id/?pushpress=hub'/>
		<item>
		<title>Mengubah nama table MySQL</title>
		<link>http://dotexe.unnes.ac.id/2010/07/26/mengubah-nama-table-mysql/</link>
		<comments>http://dotexe.unnes.ac.id/2010/07/26/mengubah-nama-table-mysql/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 21:29:30 +0000</pubDate>
		<dc:creator>dotexe</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[alter table]]></category>
		<category><![CDATA[basis data]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[komputer]]></category>
		<category><![CDATA[kuliah]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Situs]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[teknologi]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[trik]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://dotexe.unnes.ac.id/?p=2080</guid>
		<description><![CDATA[Berikut adalah snippet code yang dapat anda manfaatkan untuk mengubah nama (rename) sebuah table di suatu database berbasis MySQL. Ditulis dalam bahasa PHP, &#60;?php $con = mysql_connect(&#34;localhost&#34;,&#34;namauserdatabase&#34;,&#34;passworddatabase&#34;); if (!$con) { die('Gagal terkoneksi: ' . mysql_error()); } mysql_select_db(&#34;namadatabase&#34;, $con); // ini query merename satu table $query = &#34;RENAME TABLE namatabel_lama TO namatabel_baru&#34;; mysql_query($query); mysql_close($con); ?&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2080&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Berikut adalah snippet code yang dapat anda manfaatkan untuk mengubah nama (rename) sebuah table di suatu database berbasis MySQL. Ditulis dalam bahasa PHP,<span id="more-2080"></span></p>
<pre class="brush: php;">
&lt;?php
$con = mysql_connect(&quot;localhost&quot;,&quot;namauserdatabase&quot;,&quot;passworddatabase&quot;);
if (!$con)
  {
  die('Gagal terkoneksi: ' . mysql_error());
  }

mysql_select_db(&quot;namadatabase&quot;, $con);

// ini query merename satu table
$query = &quot;RENAME TABLE namatabel_lama TO namatabel_baru&quot;;

mysql_query($query);
mysql_close($con);
?&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotexe.wordpress.com/2080/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotexe.wordpress.com/2080/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotexe.wordpress.com/2080/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2080&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotexe.unnes.ac.id/2010/07/26/mengubah-nama-table-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a94a147311b2193c4290ed39767fdf9b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dotexe</media:title>
		</media:content>
	</item>
		<item>
		<title>Apa itu SQL?</title>
		<link>http://dotexe.unnes.ac.id/2010/07/22/apa-itu-sql/</link>
		<comments>http://dotexe.unnes.ac.id/2010/07/22/apa-itu-sql/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 01:25:26 +0000</pubDate>
		<dc:creator>dotexe</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[apa itu sql]]></category>
		<category><![CDATA[basis data]]></category>
		<category><![CDATA[basisdata]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[komputer]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[teknologi]]></category>

		<guid isPermaLink="false">http://dotexe.unnes.ac.id/?p=2070</guid>
		<description><![CDATA[SQL (Structured Query Language) adalah sebuah bahasa yang dipergunakan untuk mengakses data dalam basis data relasional. Bahasa ini secara de facto merupakan bahasa standar yang digunakan dalam manajemen basis data relasional. Saat ini hampir semua server basis data yang ada mendukung bahasa ini untuk melakukan manajemen datanya. Sejarah Sejarah SQL dimulai dari artikel seorang peneliti [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2070&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SQL (Structured Query Language) adalah sebuah bahasa yang dipergunakan untuk mengakses data dalam basis data relasional. Bahasa ini secara de facto merupakan bahasa standar yang digunakan dalam manajemen basis data relasional. Saat ini hampir semua server basis data yang ada mendukung bahasa ini untuk melakukan manajemen datanya.</p>
<h4>Sejarah</h4>
<p>Sejarah SQL dimulai dari artikel seorang peneliti dari IBM bernama EF Codd yang membahas tentang ide pembuatan basis data relasional pada bulan Juni 1970. Artikel ini juga membahas kemungkinan pembuatan bahasa standar untuk mengakses data dalam basis data tersebut. Bahasa tersebut kemudian diberi nama SEQUEL (Structured English Query Language).<span id="more-2070"></span></p>
<p>Setelah terbitnya artikel tersebut, IBM mengadakan proyek pembuatan basis data relasional berbasis bahasa SEQUEL. Akan tetapi, karena permasalahan hukum mengenai penamaan SEQUEL, IBM pun mengubahnya menjadi SQL. Implementasi basis data relasional dikenal dengan System/R.</p>
<p>Di akhir tahun 1970-an, muncul perusahaan bernama Oracle yang membuat server basis data populer yang bernama sama dengan nama perusahaannya. Dengan naiknya kepopuleran Oracle, maka SQL juga ikut populer sehingga saat ini menjadi standar de facto bahasa dalam manajemen basis data.</p>
<h4>Standarisasi</h4>
<p>Standarisasi SQL dimulai pada tahun 1986, ditandai dengan dikeluarkannya standar SQL oleh ANSI. Standar ini sering disebut dengan SQL86.Standar tersebut kemudian diperbaiki pada tahun 1989 kemudian diperbaiki lagi pada tahun 1992. Versi terakhir dikenal dengan SQL92. Pada tahun 1999 dikeluarkan standar baru yaitu SQL99 atau disebut juga SQL99, akan tetapi kebanyakan implementasi mereferensi pada SQL92.</p>
<p>Saat ini sebenarnya tidak ada server basis data yang 100% mendukung SQL92. Hal ini disebabkan masing-masing server memiliki dialek masing-masing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotexe.wordpress.com/2070/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotexe.wordpress.com/2070/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotexe.wordpress.com/2070/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2070&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotexe.unnes.ac.id/2010/07/22/apa-itu-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a94a147311b2193c4290ed39767fdf9b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dotexe</media:title>
		</media:content>
	</item>
		<item>
		<title>Mudah membuat menu Ribbon dengan PHP</title>
		<link>http://dotexe.unnes.ac.id/2010/07/22/mudah-membuat-menu-ribbon-dengan-php/</link>
		<comments>http://dotexe.unnes.ac.id/2010/07/22/mudah-membuat-menu-ribbon-dengan-php/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 01:05:25 +0000</pubDate>
		<dc:creator>dotexe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[komputer]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[teknologi]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[info]]></category>
		<category><![CDATA[pemrogrmaan]]></category>

		<guid isPermaLink="false">http://dotexe.unnes.ac.id/?p=2064</guid>
		<description><![CDATA[Ribbon, menurut Ensiklopedia Wikipedia, adalah sebuah konsep antarmuka berbasis GUI pada sebuah software yang menempatkan semua toolbar-toolbar dalam bentuk tab bar. Konsep ini mulai diperkenalkan dan dipakai oleh Produk-produk Office dari Microsoft sejak Microsoft Office 2007. Interface Ribbon yang menarik dapat anda buat dengan mudah tanpa harus menggunakan library dari Microsoft (yang mahal sewanya). Kita [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2064&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ribbon, menurut Ensiklopedia Wikipedia, adalah sebuah konsep antarmuka berbasis GUI pada sebuah software yang menempatkan semua toolbar-toolbar dalam bentuk tab bar. Konsep ini mulai diperkenalkan dan dipakai oleh Produk-produk Office dari Microsoft sejak Microsoft Office 2007.</p>
<p>Interface Ribbon yang menarik dapat anda buat dengan mudah tanpa harus menggunakan library dari Microsoft (yang mahal sewanya). Kita bisa menggunakan sebuah class php yang dibuat oleh om Tufan Baris Yildirim dari http://www.tufyta.com/ Turki.</p>
<p>Berikut contoh eksperimentnya:<span id="more-2064"></span></p>
<pre class="brush: php;">
&lt;?php
    include 'd3ribbon.php'; 

    $ribbon=new d3ribbon();
    $ribbon-&gt;stlye='blue'; 

    // Building First category 

    $main_cat = $ribbon-&gt;add_category('D3 Ribbon Main Cat','index.php?component=main_component','main_component');
    $grp  = $ribbon-&gt;add_group($main_cat,'Group Name',250,'grpid');
    $grp2 = $ribbon-&gt;add_group($main_cat,'Group Name 2',250,'grp2');
    $ribbon-&gt;add_button($grp,'Users','index.php?component='.$main_cat.'&amp;module=users','image yok','users');
    $ribbon-&gt;add_button($grp,'Empooleys','index.php?component='.$main_cat.'&amp;module=employees','image yok','employees'); 

    // Seond Category on Main Category 

    $cat2 = $ribbon-&gt;add_category('D3 Ribbon category 2','index.php?component=second_component','second_component');
    $grp = $ribbon-&gt;add_group($cat2,'2 Group Name',250,'second_grpid');
    $ribbon-&gt;add_button($grp,'Others','index.php?component='.$cat2.'&amp;module=other','image yok','other'); 

    /**
    * set Selected Cat and button.
    */
    $ribbon-&gt;selected_category_id = isset($_GET['component']) ? $_GET['component'] :'main_component' ;
    $ribbon-&gt;selected_button_id = isset($_GET['module']) ? $_GET['module'] : null; 

?&gt; 

&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
        &lt;title&gt;D3Ribbon&lt;/title&gt;
        &lt;meta name=&quot;author&quot; content=&quot;Tufan Baris YILDIRIM&quot;&gt;
        &lt;meta http-equiv=&quot;reply-to&quot; content=&quot;tfn.yldrm@hotmail.com&quot;&gt;
        &lt;?php
            /**
            *  Printing Style link as &lt;link href=...
            */
            echo $ribbon-&gt;style_link();
        ?&gt; 

    &lt;/head&gt;
    &lt;body&gt; 

        &lt;?php
            /**
            * build and print ribbon menu
            *
            * @var d3ribbon
            */
            $ribbon-&gt;build(false); 

        ?&gt; 

    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Dan inilah hasil screenshootnya:<br />
<a href="http://tinypic.com?ref=2a4wwnm" target="_blank"><img src="http://i26.tinypic.com/2a4wwnm.png" border="0" alt="Image and video hosting by TinyPic" width="90%"></a></p>
<p>Silakan unduh PHP d3Ribbon <a href="http://www.tufyta.com/wp-content/uploads/2010/07/ribbon.zip">dari sini</a>, lengkap dengan stylesheet dan icon-iconnya.</p>
<p>Via <a href="http://wp.me/pTjo8-6P">Luthfi Emka</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotexe.wordpress.com/2064/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotexe.wordpress.com/2064/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotexe.wordpress.com/2064/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2064&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotexe.unnes.ac.id/2010/07/22/mudah-membuat-menu-ribbon-dengan-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a94a147311b2193c4290ed39767fdf9b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dotexe</media:title>
		</media:content>

		<media:content url="http://i26.tinypic.com/2a4wwnm.png" medium="image">
			<media:title type="html">Image and video hosting by TinyPic</media:title>
		</media:content>
	</item>
		<item>
		<title>Bagaimana mengkopi database MySQL dengan Mudah?</title>
		<link>http://dotexe.unnes.ac.id/2010/06/29/bagaimana-mengkopi-database-mysql-dengan-mudah/</link>
		<comments>http://dotexe.unnes.ac.id/2010/06/29/bagaimana-mengkopi-database-mysql-dengan-mudah/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 18:05:59 +0000</pubDate>
		<dc:creator>dotexe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[komputer]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Pemrograman]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Situs]]></category>
		<category><![CDATA[skrip]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://dotexe.unnes.ac.id/?p=2007</guid>
		<description><![CDATA[Bagaimana mengkopi tabel-tabel pada database MySQL dengan Mudah? Bisa dilakukan dengan script kecil berbahasa PHP? Berikut solusi yang mungkin bisa anda pakai pada sistem anda. Konsepnya adalah memanfaatkan Class PHP MySQLCopy yang dibuat oleh om Waqas Khan dari Pakistan. Berikut snippet kecil tentang penggunaannya: file: contoh.php &#60;?php require_once(&#34;copyclass.php&#34;); $copier = new Mysqlcopy(); // database one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2007&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bagaimana mengkopi tabel-tabel pada database MySQL dengan Mudah? Bisa dilakukan dengan script kecil berbahasa PHP? Berikut solusi yang mungkin bisa anda pakai pada sistem anda.</p>
<p>Konsepnya adalah memanfaatkan Class PHP MySQLCopy yang dibuat oleh om Waqas Khan dari Pakistan. Berikut snippet kecil tentang penggunaannya:</p>
<p>file: contoh.php<span id="more-2007"></span></p>
<pre class="brush: php;">
&lt;?php
	require_once(&quot;copyclass.php&quot;);
	$copier = new Mysqlcopy();
	// database one from which we have to copy the data
	// $copier-&gt;dbconnection1(&quot;host&quot;, &quot;user&quot;, &quot;password&quot;, &quot;database&quot;, &quot;delete table if exists or not&quot;);
	$copier1 = $copier-&gt;dbconnection1(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;, &quot;joomla&quot;, true);
	// database where we have to copy the data
	// $copier-&gt;dbconnection1(&quot;host&quot;, &quot;user&quot;, &quot;password&quot;, &quot;database&quot;);
	$copier2 = $copier-&gt;dbconnection2(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;, &quot;exp&quot;);

	// data coppier function
	$copier-&gt;copyAll();
?&gt;
</pre>
<p>Contoh diatas mendemonstrasikan kemampuan skrip ini untuk mengkopi seluruh data (tabel-tabel) pada database &#8220;joomla&#8221; ke database &#8220;exp&#8221;.</p>
<p>Nah, kalau script berikut adalah class Copyclass.php yang dipakai diatas:</p>
<pre class="brush: php;">
&lt;?php
class Mysqlcopy {
	var $_host;
	var $_dbuser;
	var $_dbpassword;
	var $_dbname;
	var $_isDroptables;

	var $_host2;
	var $_dbuser2;
	var $_dbpassword2;
	var $_dbname2;
	var $_isDroptables2;

	#GET VALEUS FROM DB
	function dbconnection1($host = &quot;localhost&quot;, $dbuser = &quot;&quot;, $dbpassword = &quot;&quot;, $dbname = &quot;&quot;, $drp) {
		$this-&gt;setHost($host);
		$this-&gt;setDBuser($dbuser);
		$this-&gt;setDBpassword($dbpassword);
		$this-&gt;setDBname($dbname);
		// Don't drop tables by default.
		$this-&gt;setDroptables($drp);
	}

	#SET VALUES TO DB
	function dbconnection2($host2 = &quot;localhost&quot;, $dbuser2 = &quot;&quot;, $dbpassword2 = &quot;&quot;, $dbname2 = &quot;&quot;) {
		$this-&gt;setHost2($host2);
		$this-&gt;setDBuser2($dbuser2);
		$this-&gt;setDBpassword2($dbpassword2);
		$this-&gt;setDBname2($dbname2);
	}

	function setHost($host) {
		$this-&gt;_host = $host;
	}

	function getHost() {
		return $this-&gt;_host;
	}

	function setDBname($dbname) {
		$this-&gt;_dbname = $dbname;
	}

	function getDBname() {
		return $this-&gt;_dbname;
	}

	function getDBuser() {
		return $this-&gt;_dbuser;
	}

	function setDBpassword($dbpassword) {
		$this-&gt;_dbpassword = $dbpassword;
	}

	function getDBpassword() {
		return $this-&gt;_dbpassword;
	}

	function setDBuser($dbuser) {
		$this-&gt;_dbuser = $dbuser;
	}

	######################################################################3
	function setHost2($host2) {
		$this-&gt;_host2 = $host2;
	}

	function getHost2() {
		return $this-&gt;_host2;
	}

	function setDBname2($dbname2) {
		$this-&gt;_dbname2 = $dbname2;
	}

	function getDBname2() {
		return $this-&gt;_dbname2;
	}	

	function setDBpassword2($dbpassword2) {
		$this-&gt;_dbpassword2 = $dbpassword2;
	}

	function getDBpassword2() {
		return $this-&gt;_dbpassword2;
	}

	function setDBuser2($dbuser2) {
		$this-&gt;_dbuser2 = $dbuser2;
	}
	function getDBuser2() {
		return $this-&gt;_dbuser2;
	}
	###############################################################################

	// If set to true, it will generate 'DROP TABLE IF EXISTS'-statements for each table.
	function setDroptables($state) {
		$this-&gt;_isDroptables = $state;
	}

	function isDroptables() {
		return $this-&gt;_isDroptables;
	}

	function copyAll() {
		// Set line feed
		$lf = &quot;\r\n&quot;;

		# SECOND DB CONNECTION

		#FIRST DB CONNECTION
		$resource = mysql_connect($this-&gt;getHost(), $this-&gt;getDBuser(), $this-&gt;getDBpassword());
		mysql_select_db($this-&gt;getDbname(), $resource);		

		$result = mysql_query(&quot;SHOW TABLES&quot;, $resource);
		$tables = $this-&gt;result2Array(0, $result);
		foreach ($tables as $tblval) {

			$result = mysql_query(&quot;SHOW CREATE TABLE `$tblval`&quot;,$resource);
			$createtable[$tblval] = $this-&gt;result2Array(1, $result);

		}		

		// Generate dumptext for the tables.
		foreach ($tables as $tblval) {

			$dataout[] = $tblval;

			$result = mysql_query(&quot;SELECT * FROM `$tblval`&quot;, $resource);
			$rows = $this-&gt;loadObjectList(&quot;&quot;, $result);
			foreach($rows as $row) {
				$insertdump = $lf;
				$insertdump .= &quot;INSERT INTO $tblval VALUES (&quot;;
				$arr = $this-&gt;object2Array($row);
				foreach($arr as $key =&gt; $value) {
					$value = addslashes($value);
					$value = str_replace(&quot;\n&quot;, '\r\n', $value);
					$value = str_replace(&quot;\r&quot;, '', $value);
					$vals[] = &quot;'$value'&quot;;
				}
				$insertdump.=implode(',',$vals);
				unset($vals);
				$insertdump .= &quot;)&quot;;
				$dataout[$tblval][] = $insertdump;
			}
		}
		mysql_close($resource);

		$resource2 = mysql_connect($this-&gt;getHost2(), $this-&gt;getDBuser2(), $this-&gt;getDBpassword2());
		mysql_select_db($this-&gt;getDbname2(), $resource2)or die('No &lt;strong&gt;Internet&lt;/strong&gt; connection available');

		for($i=0; $i&lt;count($dataout); $i++){		

			if($this-&gt;isDroptables()) {

				mysql_query(&quot;DROP TABLE IF EXISTS &quot;.str_replace('__','',$dataout[$i]), $resource2);
			}
			mysql_query($createtable[$dataout[$i]][0], $resource2);

			for($j=0; $j&lt;count($dataout[$dataout[$i]]); $j++){

				mysql_query($dataout[$dataout[$i]][$j], $resource2);

			}
		}
		mysql_close($resource2);
		echo &quot;data copy .. .. successfully&quot;;

	}

	// Private function object2Array.
	function object2Array($obj) {
		$array = null;
		if(is_object($obj)) {
			$array = array();
			foreach (get_object_vars($obj) as $key =&gt; $value) {
				if(is_object($value))
					$array[$key] = $this-&gt;object2Array($value);
				else
					$array[$key] = $value;
			}
		}
		return $array;
	}

	// Private function loadObjectList.
	function loadObjectList($key='', $resource) {
		$array = array();
		while ($row = mysql_fetch_object($resource)) {
			if ($key)
				$array[$row-&gt;$key] = $row;
			else
				$array[] = $row;
		}
		mysql_free_result($resource);
		return $array;
	}

	// Private function result2Array.
	function result2Array($numinarray = 0, $resource) {
		$array = array();
		while ($row = mysql_fetch_row($resource)) {
			$array[] = $row[$numinarray];
		}
		mysql_free_result($resource);
		return $array;
	}
}
?&gt;
</pre>
<p>Silakan unduh File contohnya disini: <a href="http://emka.web.id/wp-content/uploads/2010/06/mysqlcopydb_PHP_emka.web_.id_.zip">http://emka.web.id/wp-content/uploads/2010/06/mysqlcopydb_PHP_emka.web_.id_.zip</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotexe.wordpress.com/2007/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotexe.wordpress.com/2007/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotexe.wordpress.com/2007/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=2007&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotexe.unnes.ac.id/2010/06/29/bagaimana-mengkopi-database-mysql-dengan-mudah/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a94a147311b2193c4290ed39767fdf9b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dotexe</media:title>
		</media:content>
	</item>
		<item>
		<title>Mengenal &amp; Membuat Encoding/decoding BitTorrent Bencode dengan PHP</title>
		<link>http://dotexe.unnes.ac.id/2010/06/09/mengenal-membuat-encodingdecoding-bittorrent-bencode-dengan-php/</link>
		<comments>http://dotexe.unnes.ac.id/2010/06/09/mengenal-membuat-encodingdecoding-bittorrent-bencode-dengan-php/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 04:32:28 +0000</pubDate>
		<dc:creator>dotexe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[bencode]]></category>
		<category><![CDATA[bittorrent]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[file sharing]]></category>
		<category><![CDATA[informasi]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[komputer]]></category>
		<category><![CDATA[Pemrograman]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[teknologi]]></category>
		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://dotexe.unnes.ac.id/?p=1960</guid>
		<description><![CDATA[oleh Luthfi Emka Bencode adalah sebuah metode encoding yang digunakan oleh jaringan berbagi file peer-to-peer khususnya yang berbasis BitTorrent untuk menyimpan dan mengirim data terstruktur dengan utuh. Sampai saat ini Bencode mampu melakukan encoding untuk beberapa tipe nilai berikut: - string byte - integer - list - array asosiatif (dictionaries) Bencode secara luas saat ini [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=1960&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><strong>oleh Luthfi Emka</strong></em></p>
<p><strong>Bencode</strong> adalah sebuah metode encoding yang digunakan oleh jaringan berbagi file peer-to-peer khususnya yang berbasis BitTorrent untuk menyimpan dan mengirim data terstruktur dengan utuh. Sampai saat ini Bencode mampu melakukan encoding untuk beberapa tipe nilai berikut:<br />
- string byte<br />
- integer<br />
- list<br />
- array asosiatif (dictionaries)<span id="more-1960"></span></p>
<p>Bencode secara luas saat ini digunakan untuk file torrent, tepatnya pada metadata file torrent kebanyakan diencode dengan Bencode dictionaries. Lebih lengkap tentang Bencode silakan baca <a href="//en.wikipedia.org/wiki/Bencode¨">ensiklopedi berikut</a>.</p>
<h2>Membuat Script Encode/Decode Bencode dengan PHP</h2>
<p>Untuk melakukan encoding dan decoding Bencode BitTorrent sendiri telah banyak aplikasi yang beredar. Namun, bagi anda yang ingin menciptakan aplikasi berbasis web yang mampu melakukan encoding/decoding algoritma Bencode milik BitTorrent, silakan gunakan Class PHP berikut:<!--more--></p>
<pre class="brush: php;">
&lt;?
/**
 * Bencoding encoder/decoder
 *
 * @version 1.0
 * @author Ruslan V. Us &lt;unclerus at gmail.com&gt;
 * @package BEncoder
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
 */

class BEncoderException extends Exception {}

/**
 * Class for Bencoding encode/decode
 * Bencoding is a way to specify and organize data in a terse format.
 * It supports the following types: byte strings, integers,
 * lists, and dictionaries.
 */
class BEncoder
{
    /**
     * Decoded data
     * @var mixed
     */
    public $source;
    /**
     * Encoded data
     * @var string
     */
    public $encoded;

    private $_offset = 0;
    private $_len = 0;

    /**
     * Bencode format decoding. Result of the decoding will be saved in the $source field.
     * Some examples:
     * &lt;code&gt;
     * $bencoder = new bencoder_t;
     * $bencoder-&gt;decode ('i12345e');
     * print_r ($bencoder-&gt;source);
     * &lt;/code&gt;
     * Or
     * &lt;code&gt;
     * $bencoder = new bencoder_t;
     * $bencoder-&gt;encode (array ('fruit' =&gt; 'Banana', 'quantity' =&gt; 100));
     * echo $bencoder-&gt;encoded;
     * $bencoder-&gt;decode ();
     * print_r ($bencoder-&gt;source);
     * &lt;/code&gt;
     * @param string $str Encoded string. If omitted, contents of the $encoded field will be used
     */
    public function decode ($str = null)
    {
        $this-&gt;source = array ();
        if (!is_null ($str)) $this-&gt;encoded = $str;

        $this-&gt;_offset = 0;
        $this-&gt;_len = strlen ($this-&gt;encoded);
        $this-&gt;source = $this-&gt;_decode ();
        return $this-&gt;source;
    }

    /**
     * Encoding to Bencode format. Result of the encoding will be saved in the $encoded field.
     * Some examples:
     * &lt;code&gt;
     * $bencoder = new bencoder_t;
     * $bencoder-&gt;encode (array ('fruit' =&gt; 'Banana', 'quantity' =&gt; 100));
     * echo $bencoder-&gt;encoded;
     * &lt;/code&gt;
     * or
     * &lt;code&gt;
     * $bencoder = new bencoder_t;
     * $bencoder-&gt;encode (array ('fruit' =&gt; 'Banana', 'quantity' =&gt; 100));
     * $bencoder-&gt;source ['color'] = 'yellow';
     * $bencoder-&gt;encode ();
     * echo $bencoder-&gt;encoded;
     * &lt;/code&gt;
     * @param mixed $str Data to encode. If omitted, contents of the $source field will be used
     */
    public function encode ($value = null)
    {
        $this-&gt;encoded = '';
        if (!is_null ($value)) $this-&gt;source = $value;

        $this-&gt;encoded = $this-&gt;_encode ($this-&gt;source);
        return $this-&gt;encoded;
    }

    private function _decodeInt ()
    {
        $end = strpos ($this-&gt;encoded, 'e', $this-&gt;_offset);
        if ($end === false) throw new BEncoderException ('Decoding error at: ' . $this-&gt;_offset);
        $result = (double) substr ($this-&gt;encoded, $this-&gt;_offset + 1, $end - $this-&gt;_offset - 1);
        $this-&gt;_offset = $end + 1;
        return $result;
    }

    private function _decodeString ()
    {
        $divider = strpos ($this-&gt;encoded, ':', $this-&gt;_offset);
        if ($divider === false) throw new BEncoderException ('Decoding error at: ' . $this-&gt;_offset);
        $len = (int) substr ($this-&gt;encoded, $this-&gt;_offset, $divider - $this-&gt;_offset);
        $result = substr ($this-&gt;encoded, $divider + 1, $len);
        $this-&gt;_offset = $divider + $len + 1;
        return $result;
    }

    private function _decodeDictionary ()
    {
        $result = array ();
        $this-&gt;_offset ++;
        while ($this-&gt;encoded [$this-&gt;_offset] != 'e' &amp;&amp; $this-&gt;_offset &lt; $this-&gt;_len)
            $result [$this-&gt;_decodeString ()] = $this-&gt;_decode ();
        $this-&gt;_offset ++;
        return $result;
    }

    private function _decodeList ()
    {
        $result = array ();
        $this-&gt;_offset ++;
        while ($this-&gt;encoded [$this-&gt;_offset] != 'e' &amp;&amp; $this-&gt;_offset &lt; $this-&gt;_len)
            $result [] = $this-&gt;_decode ();
        $this-&gt;_offset ++;
        return $result;
    }

    private function _decode ()
    {
        switch ($this-&gt;encoded [$this-&gt;_offset])
        {
            case 'd':
                return $this-&gt;_decodeDictionary ();
            case 'i':
                return $this-&gt;_decodeInt ();
            case 'l':
                return $this-&gt;_decodeList ();
        }
        if (is_numeric ($this-&gt;encoded [$this-&gt;_offset])) return $this-&gt;_decodeString ();
        throw new BEncoderException ('Undefined data type at: ' . $this-&gt;_offset . ' while decoding');
    }

    private function _encodeString ($value)
    {
        return strlen ($value) . ':' . $value;
    }

    private function _encodeArray ($value)
    {
        $count = count ($value);
        $list = true;
        for ($i = 0; $i &lt; $count; $i ++)
            if (!isset ($value [$i]))
            {
                $list = false;
                break;
            }
        ksort ($value);
        return $list ? $this-&gt;_encodeList ($value) : $this-&gt;_encodeDictionary ($value);
    }

    private function _encodeList ($value)
    {
        $result = 'l';
        foreach ($value as $item)
            $result .= $this-&gt;_encode ($item);
        return $result . 'e';
    }

    private function _encodeDictionary ($value)
    {
        $result = 'd';
        foreach ($value as $key =&gt; $item)
            $result .= $this-&gt;_encodeString ($key) . $this-&gt;_encode ($item);
        return $result . 'e';
    }

    private function _encodeInt ($value)
    {
        return 'i' . ($value &lt; 0 ? ceil ($value) : floor ($value)) . 'e';
    }

    private function _encode ($value)
    {
        switch (gettype ($value))
        {
            case 'NULL':
                return '0:';
            case 'string':
                return $this-&gt;_encodeString ($value);
            case 'array':
                return $this-&gt;_encodeArray ($value);
            case 'object':
                return $this-&gt;_encodeArray (get_object_vars ($value));
            case 'boolean':
                return $this-&gt;_encodeInt ((int) $value);
            case 'integer':
            case 'double':
            case 'float':
                return $this-&gt;_encodeInt ($value);
            default:
                throw new BEncoderException ('Unknown datatype while encoding');
        }
    }
}
?&gt;
</pre>
<p>Untuk menggunakannya, buatlah sebuah file PHP baru kemudian tuliskan misalnya sbb:</p>
<pre class="brush: php;">
&lt;?php
// Read and dump torrent file
require_once 'BEncoder.inc.php';

$filename = 'test.torrent';
if (!is_readable ($filename)) die ('Cannot read ' . $filename);

$encoder = new BEncoder ();
$encoder-&gt;decode (file_get_contents ($filename));

// Dump out decoded torrent
var_dump ($encoder-&gt;source);
?&gt;
</pre>
<p>Silakan unduh Script dan contoh diatas <a href="http://www.ziddu.com/download/10207823/bencoder-2010-05-28.zip.html">via Ziddu</a> ataupun <a href="http://ul.to/o8ttxq">via Uploaded</a> berikut.</p>
<p>Selamat mencoba,</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dotexe.wordpress.com/1960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dotexe.wordpress.com/1960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dotexe.wordpress.com/1960/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dotexe.unnes.ac.id&amp;blog=2170446&amp;post=1960&amp;subd=dotexe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dotexe.unnes.ac.id/2010/06/09/mengenal-membuat-encodingdecoding-bittorrent-bencode-dengan-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a94a147311b2193c4290ed39767fdf9b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dotexe</media:title>
		</media:content>
	</item>
	</channel>
</rss>