<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Danny&#039;s Blog&#187; PHP</title>
	<atom:link href="http://www.dshue.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dshue.com</link>
	<description>I can be a geek too!</description>
	<lastBuildDate>Sat, 29 May 2010 20:59:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Password Protect PHPMyAdmin portal on XAMPP or WAMP</title>
		<link>http://www.dshue.com/password-protect-phpmyadmin-on-xampp-or-wamp.html</link>
		<comments>http://www.dshue.com/password-protect-phpmyadmin-on-xampp-or-wamp.html#comments</comments>
		<pubDate>Tue, 11 May 2010 03:44:20 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.dshue.com/?p=812</guid>
		<description><![CDATA[Open Config.inc.php under the PHPMyAdmin folder in editor, try the commented options under lines 11 and 13 to achieve different password protect features. $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; // $cfg['Servers'][$i]['auth_type'] [...]]]></description>
			<content:encoded><![CDATA[<p>Open Config.inc.php under the PHPMyAdmin folder in editor, try the commented options under lines 11 and 13 to achieve different password protect features.</p>
<pre class="brush:php">
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
// $cfg['Servers'][$i]['auth_type'] = 'http';
// A browser based prompt
// $cfg['Servers'][$i]['auth_type'] = 'cookie';
// A web page prompt rendered in HTML
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123abc'; // Hack me!
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
</pre>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.dshue.com%2Fpassword-protect-phpmyadmin-on-xampp-or-wamp.html&amp;linkname=Password%20Protect%20PHPMyAdmin%20portal%20on%20XAMPP%20or%20WAMP" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Fwww.dshue.com%2Fpassword-protect-phpmyadmin-on-xampp-or-wamp.html&amp;linkname=Password%20Protect%20PHPMyAdmin%20portal%20on%20XAMPP%20or%20WAMP" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.dshue.com%2Fpassword-protect-phpmyadmin-on-xampp-or-wamp.html&amp;linkname=Password%20Protect%20PHPMyAdmin%20portal%20on%20XAMPP%20or%20WAMP" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.dshue.com%2Fpassword-protect-phpmyadmin-on-xampp-or-wamp.html&amp;linkname=Password%20Protect%20PHPMyAdmin%20portal%20on%20XAMPP%20or%20WAMP" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dshue.com%2Fpassword-protect-phpmyadmin-on-xampp-or-wamp.html&amp;linkname=Password%20Protect%20PHPMyAdmin%20portal%20on%20XAMPP%20or%20WAMP"> Share</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/password-protect-phpmyadmin-on-xampp-or-wamp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Ajax Example</title>
		<link>http://www.dshue.com/simple-ajax-example.html</link>
		<comments>http://www.dshue.com/simple-ajax-example.html#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:30:44 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.onlyrice.com/simple-ajax-example.html</guid>
		<description><![CDATA[The Javascript: function xmlhttpPost(strURL) { var xmlHttpReq = false; var self = this; // Mozilla/Safari if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); } // IE else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } self.xmlHttpReq.open('POST', strURL, true); self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { updatepage(self.xmlHttpReq.responseText); } } self.xmlHttpReq.send(getquerystring()); } function getquerystring() [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Javascript:</strong></p>
<pre class="brush:js">
<script language="Javascript">
function xmlhttpPost(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
    var form     = document.forms['f1'];
    var word = form.word.value;
    qstr = 'w=' + escape(word);  // NOTE: no '?' before querystring
    return qstr;
}

function updatepage(str){
    document.getElementById("result").innerHTML = str;
}
</script>
</pre>
<p><strong>The HTML Form :</strong></p>
<pre class="brush:html">
<form>
word:
<input name="word" type="text" />
<input onclick="JavaScript:xmlhttpPost(&quot;/cgi-bin/simple-ajax-example.cgi&quot;)" type="button" value="Go" />

<!-- The result returns in following Div tag -->
<div id="result"></div>
</form>
</pre>
<p><strong>The server side script (simple-ajax-example.cgi) :</strong></p>
<pre class="brush:perl">#!/usr/bin/perl -w

use CGI;

$query = new CGI;

$secretword = $query-&gt;param('w');

$remotehost = $query-&gt;remote_host();

print $query-&gt;header;

print "

The secret word is <strong>$secretword</strong> and your IP is <strong>$remotehost</strong>.

";</pre>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsimple-ajax-example.html&amp;linkname=Simple%20Ajax%20Example" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsimple-ajax-example.html&amp;linkname=Simple%20Ajax%20Example" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsimple-ajax-example.html&amp;linkname=Simple%20Ajax%20Example" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsimple-ajax-example.html&amp;linkname=Simple%20Ajax%20Example" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsimple-ajax-example.html&amp;linkname=Simple%20Ajax%20Example"> Share</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/simple-ajax-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can WordPress slow down the updates?</title>
		<link>http://www.dshue.com/can-wordpress-slow-down-the-updates.html</link>
		<comments>http://www.dshue.com/can-wordpress-slow-down-the-updates.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 04:07:49 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Geeks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.onlyrice.com/?p=442</guid>
		<description><![CDATA[Personally, I think wordpress updates too fast. It&#8217;s hard for my blog to keep up. I&#8217;m running a lot of customized plugins and my theme just don&#8217;t work with a lot of the crap. Each upgrade of the wordpress kernel takes me at least an hour to figure out where to modify so that all [...]]]></description>
			<content:encoded><![CDATA[<p>Personally, I think wordpress updates too fast. It&#8217;s hard for my blog to keep up. I&#8217;m running a lot of customized plugins and my theme just don&#8217;t work with a lot of the crap. Each upgrade of the wordpress kernel takes me at least an hour to figure out where to modify so that all the functions work OK.</p>
<p>I&#8217;m once again up-to-date with it&#8217;s current version: 2.7. And I think I&#8217;m gonna stay with this version for a while. Happy new year!</p>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.dshue.com%2Fcan-wordpress-slow-down-the-updates.html&amp;linkname=Can%20WordPress%20slow%20down%20the%20updates%3F" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Fwww.dshue.com%2Fcan-wordpress-slow-down-the-updates.html&amp;linkname=Can%20WordPress%20slow%20down%20the%20updates%3F" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.dshue.com%2Fcan-wordpress-slow-down-the-updates.html&amp;linkname=Can%20WordPress%20slow%20down%20the%20updates%3F" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.dshue.com%2Fcan-wordpress-slow-down-the-updates.html&amp;linkname=Can%20WordPress%20slow%20down%20the%20updates%3F" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dshue.com%2Fcan-wordpress-slow-down-the-updates.html&amp;linkname=Can%20WordPress%20slow%20down%20the%20updates%3F"> Share</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/can-wordpress-slow-down-the-updates.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Update &amp; Portfolio</title>
		<link>http://www.dshue.com/wordpress-update.html</link>
		<comments>http://www.dshue.com/wordpress-update.html#comments</comments>
		<pubDate>Sun, 04 May 2008 07:30:51 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.onlyrice.com/?p=107</guid>
		<description><![CDATA[I&#8217;ve updated my WordPress to 2.5.1 today. Not much difference in the presentation of the front end. But major difference in the back. While upgrading, I ran into some trouble, mainly because of some old plugins and I was able to resolve them after spending a little time. I like it very much. WordPress did a great [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated my <a title="Get wordpress!" href="http://wordpress.org/download/">WordPress</a> to 2.5.1 today. Not much difference in the presentation of the front end. But major difference in the back. While upgrading, I ran into some trouble, mainly because of some old plugins and I was able to resolve them after spending a little time.</p>
<p>I like it very much. WordPress did a great job! <img src='http://www.dshue.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve also added a new section to this website, my <a title="Go to my Portfolio" href="/portfolio">Portfolio</a>. It contains some of the works I&#8217;ve done previously. I&#8217;m still organizing and will add more and more into it.</p>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.dshue.com%2Fwordpress-update.html&amp;linkname=WordPress%20Update%20%26%23038%3B%20Portfolio" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Fwww.dshue.com%2Fwordpress-update.html&amp;linkname=WordPress%20Update%20%26%23038%3B%20Portfolio" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.dshue.com%2Fwordpress-update.html&amp;linkname=WordPress%20Update%20%26%23038%3B%20Portfolio" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.dshue.com%2Fwordpress-update.html&amp;linkname=WordPress%20Update%20%26%23038%3B%20Portfolio" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dshue.com%2Fwordpress-update.html&amp;linkname=WordPress%20Update%20%26%23038%3B%20Portfolio"> Share</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/wordpress-update.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sign the guestbook!</title>
		<link>http://www.dshue.com/sign-the-guestbook.html</link>
		<comments>http://www.dshue.com/sign-the-guestbook.html#comments</comments>
		<pubDate>Sat, 06 Oct 2007 13:15:50 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.onlyrice.com/sign-the-guestbook.html</guid>
		<description><![CDATA[Remember in the old days? (well, in the 90&#8242;s) There were no blogs. Just pure HTML static sites called &#8220;Homepage&#8221;s with centered contents in markup lines like &#60;font color=&#8221;blue&#8221;&#62;Some Text&#60;/font&#62; &#8230; Almost everybody with a homepage had this thing called &#8220;Guestbook&#8221; where visitors and friends often leaves messages. Wow! I really miss it! Guestbook definition by WIKI: A guestbook [...]]]></description>
			<content:encoded><![CDATA[<p>Remember in the old days? (well, in the 90&#8242;s) There were no blogs. Just pure HTML static sites called &#8220;Homepage&#8221;s with centered contents in markup lines like <em>&lt;font color=&#8221;blue&#8221;&gt;Some Text&lt;/font&gt; </em>&#8230; Almost everybody with a homepage had this thing called &#8220;<a href="/guestbook">Guestbook</a>&#8221; where visitors and friends often leaves messages. Wow! I really miss it!</p>
<p>Guestbook definition by WIKI:</p>
<blockquote><p>A <strong>guestbook</strong> is a logging system that allows visitors of a <a href="http://en.wikipedia.org/wiki/Website" title="Website">website</a> to leave a public comment. Traditionally, the term applied to the actual ledgers held, for that same purpose, at <a href="http://en.wikipedia.org/wiki/Bed_and_breakfast" title="Bed and breakfast">B&amp;Bs</a> and <a href="http://en.wikipedia.org/wiki/Museum" title="Museum">museums</a>.</p></blockquote>
<p>So, I&#8217;ve added a Guestbook on the left menu! Just to bring back some good&#8217;o memories. <a href="/guestbook">Click here</a> to sign my <a href="/guestbook">Guestbook</a> like how you used to!</p>
<p><a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsign-the-guestbook.html&amp;linkname=Sign%20the%20guestbook%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_buzz?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsign-the-guestbook.html&amp;linkname=Sign%20the%20guestbook%21" title="Google Buzz" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google_buzz.png" width="16" height="16" alt="Google Buzz"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsign-the-guestbook.html&amp;linkname=Sign%20the%20guestbook%21" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsign-the-guestbook.html&amp;linkname=Sign%20the%20guestbook%21" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.dshue.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dshue.com%2Fsign-the-guestbook.html&amp;linkname=Sign%20the%20guestbook%21"> Share</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/sign-the-guestbook.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
