<?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>Tue, 01 Feb 2011 18:34:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</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>
]]></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>
]]></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>
]]></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>
]]></content:encoded>
			<wfw:commentRss>http://www.dshue.com/wordpress-update.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

