<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>King Php</title>
	<link>http://kingphp.com</link>
	<description></description>
	<pubDate>Thu, 02 Sep 2010 05:04:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>How to Access MySQL Command Line in XAMPP?</title>
		<link>http://kingphp.com/129.html</link>
		<comments>http://kingphp.com/129.html#comments</comments>
		<pubDate>Thu, 02 Sep 2010 04:21:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Study]]></category>

		<guid isPermaLink="false">http://kingphp.com/129.html</guid>
		<description><![CDATA[MySQL binaries should be under your XAMPP folder. Look for a /bin folder, and you&#8217;ll find the mysql.exe client around. Let&#8217;s assume it is in e:\xampp\mysql\bin, then you should fireup a command prompt in this folder.
First, go to e:\xampp, and run xampp_start. If you do not run xampp_start first, the error message &#8220;Can&#8217;t connect to [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL binaries should be under your XAMPP folder. Look for a /bin folder, and you&#8217;ll find the mysql.exe client around. Let&#8217;s assume it is in e:\xampp\mysql\bin, then you should fireup a command prompt in this folder.</p>
<p>First, go to e:\xampp, and run xampp_start. If you do not run xampp_start first, the error message &#8220;Can&#8217;t connect to Mysql server on &#8216;localhost&#8217;&#8221; will occur when you go to step 2.</p>
<p>Afer you run the commend prompt of DOS, then enter:</p>
<p>cd d:\xampp\mysql\bin<br />
mysql.exe -u root &#8211;password</p>
<p>Enter password:<br />
and enter root password</p>
<p>mysql&gt;</p>
<p>After log into your mysql server, and start typing your commands.<br />
Type &#8220;quit&#8221;  or &#8220;exit&#8221; to exit mysql<br />
 <a href="http://kingphp.com/129.html#more-129" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/129.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>WordPress SEO</title>
		<link>http://kingphp.com/128.html</link>
		<comments>http://kingphp.com/128.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 13:49:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Learning]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/128.html</guid>
		<description><![CDATA[We should take care the following points on wordpress seo:
1. meta title:
We shoud let wordpress shows different titles for homepage, page, post, categories, very simple, replace the original title related code to
&#60;title&#62;&#60;?php wp_title(&#8217;&#38;laquo;&#8217;, true, &#8216;right&#8217;); ?&#62; &#60;?php bloginfo(&#8217;name&#8217;); ?&#62;&#60;/title&#62;
2. page title
Save as meta title, we can use the following code:
&#60;h1&#62;&#60;a href=&#8221;http://www.glassesexperts.com/&#8221;&#62;&#60;?php if ( is_single() &#124;&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>We should take care the following points on wordpress seo:<br />
1. meta title:<br />
We shoud let wordpress shows different titles for homepage, page, post, categories, very simple, replace the original title related code to</p>
<p>&lt;title&gt;&lt;?php wp_title(&#8217;&amp;laquo;&#8217;, true, &#8216;right&#8217;); ?&gt; &lt;?php bloginfo(&#8217;name&#8217;); ?&gt;&lt;/title&gt;</p>
<p>2. page title<br />
Save as meta title, we can use the following code:<br />
&lt;h1&gt;&lt;a href=&#8221;http://www.glassesexperts.com/&#8221;&gt;&lt;?php if ( is_single() || is_page() || is_category() || is_tag() ) { wp_title(&#8221;); } else { bloginfo(&#8217;name&#8217;); } ?&gt;&lt;/a&gt;&lt;/h1&gt; <a href="http://kingphp.com/128.html#more-128" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/128.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Some skills on showing wordpress posts</title>
		<link>http://kingphp.com/127.html</link>
		<comments>http://kingphp.com/127.html#comments</comments>
		<pubDate>Fri, 27 Aug 2010 14:14:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/127.html</guid>
		<description><![CDATA[Sometimes we want to show wordpress posts according to our demanded styles. For example, we like to show 10 posts, and post links resource codes should like this:
&#60;a title=&#8221;king php&#8221; href=http://www.kingphp.com&#62;king php&#60;/a&#62;
We can do as following:
&#60;ul&#62;
 &#60;?php
 $rand_posts = get_posts(&#8217;numberposts=10&#38;orderby=rand&#8217;);
 foreach( $rand_posts as $post ) :
 ?&#62;
    &#60;li&#62;&#60;a title=&#8221;&#60;?php the_title(); ?&#62;&#8221; href=&#8221;&#60;?php the_permalink(); ?&#62;&#8221;&#62; &#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/li&#62;
 &#60;?php endforeach; ?&#62;
&#60;/ul&#62;
&#60;/div&#62; 
]]></description>
			<content:encoded><![CDATA[<p>Sometimes we want to show wordpress posts according to our demanded styles. For example, we like to show 10 posts, and post links resource codes should like this:<br />
&lt;a title=&#8221;king php&#8221; href=http://www.kingphp.com&gt;king php&lt;/a&gt;<br />
We can do as following:<br />
&lt;ul&gt;<br />
 &lt;?php<br />
 $rand_posts = get_posts(&#8217;numberposts=10&amp;orderby=rand&#8217;);<br />
 foreach( $rand_posts as $post ) :<br />
 ?&gt;<br />
    &lt;li&gt;&lt;a title=&#8221;&lt;?php the_title(); ?&gt;&#8221; href=&#8221;&lt;?php the_permalink(); ?&gt;&#8221;&gt; &lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;<br />
 &lt;?php endforeach; ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt; <br />
 <a href="http://kingphp.com/127.html#more-127" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/127.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to let 2 domains show the same contents in Hostgator Hosting?</title>
		<link>http://kingphp.com/126.html</link>
		<comments>http://kingphp.com/126.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 08:19:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Skills]]></category>

		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://kingphp.com/126.html</guid>
		<description><![CDATA[Sometimes we want to 2 domains show the same contents in Hostgator Web Hosting, and show different domain. For example, we want to let www.cheapglasses123.com, and www.bestpriceglasses.org show the same contents, but use differnt domains also. We can do like this when we Addon Domains to Hostgator Cpanel.
]]></description>
			<content:encoded><![CDATA[<p>Sometimes we want to 2 domains show the same contents in Hostgator Web Hosting, and show different domain. For example, we want to let <a href="http://www.cheapglasses123.com/">www.cheapglasses123.com</a>, and <a href="http://www.bestpriceglasses.org/">www.bestpriceglasses.org</a> show the same contents, but use differnt domains also. We can do like this when we Addon Domains to Hostgator Cpanel. <a href="http://kingphp.com/126.html#more-126" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/126.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Some tips on adding ads code to wordpress</title>
		<link>http://kingphp.com/125.html</link>
		<comments>http://kingphp.com/125.html#comments</comments>
		<pubDate>Sat, 07 Aug 2010 10:36:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Code]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/125.html</guid>
		<description><![CDATA[If we do not want ads code shows at wordpress homepage, but at the other pages, we can use the following code:
&#60;?php if (($wp_query-&#62;current_post == 0)and (!is_home())) : ?&#62;
&#60;div style=&#8221;float:right;margin-left:20px&#8221;&#62;&#60;br&#62;
Buy sunglasses online.
&#60;/div&#62;
&#60;?php endif; $postcnt++; ?&#62;
If we want the ads codes show at all pages, we can use the following codes:
]]></description>
			<content:encoded><![CDATA[<p>If we do not want ads code shows at wordpress homepage, but at the other pages, we can use the following code:<br />
&lt;?php if (($wp_query-&gt;current_post == 0)and (!is_home())) : ?&gt;<br />
&lt;div style=&#8221;float:right;margin-left:20px&#8221;&gt;&lt;br&gt;<br />
Buy sunglasses online.<br />
&lt;/div&gt;<br />
&lt;?php endif; $postcnt++; ?&gt;</p>
<p>If we want the ads codes show at all pages, we can use the following codes: <a href="http://kingphp.com/125.html#more-125" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/125.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Use Wordpress to Setup Multi Blogs Under One Mysql Database</title>
		<link>http://kingphp.com/124.html</link>
		<comments>http://kingphp.com/124.html#comments</comments>
		<pubDate>Sat, 24 Jul 2010 13:26:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Code]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/124.html</guid>
		<description><![CDATA[We can use Mu to setup multi wordpress blogs. If you do not want to do so, you can use wordpress to setup multiy blogs also.
 For example, we want to set up two blogs: www.glassespeople.com ,and http://blog.glassespeople.com, we only add the following code at wp-config.php:
]]></description>
			<content:encoded><![CDATA[<p>We can use Mu to setup multi wordpress blogs. If you do not want to do so, you can use wordpress to setup multiy blogs also.</p>
<p> For example, we want to set up two blogs: <a href="http://www.glassespeople.com/">www.glassespeople.com</a> ,and <a href="http://blog.glassespeople.com/">http://blog.glassespeople.com</a>, we only add the following code at wp-config.php: <a href="http://kingphp.com/124.html#more-124" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/124.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to control WordPress 3.0 tag cloud font size?</title>
		<link>http://kingphp.com/123.html</link>
		<comments>http://kingphp.com/123.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 01:36:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/123.html</guid>
		<description><![CDATA[Go to wp-includes, use dreamweaver to open category-template.php, search the following code:
function wp_tag_cloud( $args = &#8221; ) {
 $defaults = array(
  &#8217;smallest&#8217; =&#62; 8, &#8216;largest&#8217; =&#62; 22, &#8216;unit&#8217; =&#62; &#8216;pt&#8217;, &#8216;number&#8217; =&#62; 45,
then change smallest font size and largest size as you like, say:
 function wp_tag_cloud( $args = &#8221; ) {
 $defaults = array(
  &#8217;smallest&#8217; =&#62; 10, &#8216;largest&#8217; =&#62; 10, [...]]]></description>
			<content:encoded><![CDATA[<p>Go to wp-includes, use dreamweaver to open category-template.php, search the following code:</p>
<p>function wp_tag_cloud( $args = &#8221; ) {<br />
 $defaults = array(<br />
  &#8217;smallest&#8217; =&gt; 8, &#8216;largest&#8217; =&gt; 22, &#8216;unit&#8217; =&gt; &#8216;pt&#8217;, &#8216;number&#8217; =&gt; 45,</p>
<p>then change smallest font size and largest size as you like, say:</p>
<p> function wp_tag_cloud( $args = &#8221; ) {<br />
 $defaults = array(<br />
  &#8217;smallest&#8217; =&gt; 10, &#8216;largest&#8217; =&gt; 10, &#8216;unit&#8217; =&gt; &#8216;pt&#8217;, &#8216;number&#8217; =&gt; 45,</p>
<p> Hope the above code is useful to you!</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/123.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>2 Methods to show wordpress lastest posts at other site</title>
		<link>http://kingphp.com/122.html</link>
		<comments>http://kingphp.com/122.html#comments</comments>
		<pubDate>Mon, 21 Jun 2010 01:19:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php Code]]></category>

		<category><![CDATA[Php Skills]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/122.html</guid>
		<description><![CDATA[Method one, we can show other wordpress posts at our site by using  simplepie.inc, download a wordpress plugin, named &#8220;simplepie-core&#8221;, and upload simplepie.inc to your site root, you can rename simplepie.inc to other name also, ie, eyeglassframes.inc.
Then add the following code at your own site .php file.
]]></description>
			<content:encoded><![CDATA[<p>Method one, we can show other wordpress posts at our site by using  simplepie.inc, download a wordpress plugin, named &#8220;simplepie-core&#8221;, and upload simplepie.inc to your site root, you can rename simplepie.inc to other name also, ie, eyeglassframes.inc.</p>
<p>Then add the following code at your own site .php file. <a href="http://kingphp.com/122.html#more-122" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/122.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Problem with cURL and PHP Output Buffering while installing zen cart</title>
		<link>http://kingphp.com/121.html</link>
		<comments>http://kingphp.com/121.html#comments</comments>
		<pubDate>Sun, 20 Jun 2010 13:10:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/121.html</guid>
		<description><![CDATA[When we install zen cart under XAMPP, we often meet two issues:
ATTENTION: Problems Found CURL not compiled into PHP - notify server administrator more info&#8230;
CURL not compiled into PHP - notify server administrator more info&#8230;
CURL not compiled into PHP - notify server administrator more info&#8230;
CURL not compiled into PHP - notify server administrator more info&#8230;
]]></description>
			<content:encoded><![CDATA[<p>When we install zen cart under XAMPP, we often meet two issues:</p>
<p>ATTENTION: Problems Found CURL not compiled into PHP - notify server administrator more info&#8230;<br />
CURL not compiled into PHP - notify server administrator more info&#8230;<br />
CURL not compiled into PHP - notify server administrator more info&#8230;<br />
CURL not compiled into PHP - notify server administrator more info&#8230; <a href="http://kingphp.com/121.html#more-121" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/121.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to change wordpress  post author name?</title>
		<link>http://kingphp.com/120.html</link>
		<comments>http://kingphp.com/120.html#comments</comments>
		<pubDate>Wed, 19 May 2010 11:11:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/120.html</guid>
		<description><![CDATA[Sometimes we want to change wordpress posts author name, if you only need to change several posts, and you do not know the skills, you can delete and repost with the new author name. If you need to modify hundreds posts with the same author, how to do then?
]]></description>
			<content:encoded><![CDATA[<p>Sometimes we want to change wordpress posts author name, if you only need to change several posts, and you do not know the skills, you can delete and repost with the new author name. If you need to modify hundreds posts with the same author, how to do then? <a href="http://kingphp.com/120.html#more-120" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/120.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
