<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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>PHP - Webmaster Blog</title>
	<link>http://www.infonetguide.com</link>
	<description>because we are on the internet.</description>
	<pubDate>Wed, 07 Apr 2010 02:45:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Adding Related Posts to Single Post</title>
		<link>http://www.infonetguide.com/adding-related-posts-to-single-post</link>
		<comments>http://www.infonetguide.com/adding-related-posts-to-single-post#comments</comments>
		<pubDate>Wed, 07 Apr 2010 02:18:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blogger]]></category>

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

		<category><![CDATA[single post]]></category>

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

		<guid isPermaLink="false">http://www.infonetguide.com/adding-related-posts-to-single-post</guid>
		<description><![CDATA[If you want to add related posts to a single post, you can use the following codes:
&#60;?php
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post-&#62;ID);
if ($tags) {
echo &#8216;Related Posts&#8217;;
$first_tag = $tags[0]-&#62;term_id;
$args=array(
&#8216;tag__in&#8217; =&#62; array($first_tag),
&#8216;post__not_in&#8217; =&#62; array($post-&#62;ID),
&#8217;showposts&#8217;=&#62;5,
&#8216;caller_get_posts&#8217;=&#62;1
);
$my_query = new WP_Query($args);
if( $my_query-&#62;have_posts() ) {
while ($my_query-&#62;have_posts()) : $my_query-&#62;the_post(); ?&#62;



&#60;p&#62;&#60;a href=&#8221;&#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to add related posts to a single post, you can use the following codes:</p>
<p>&lt;?php</p>
<p>//for use in the loop, list 5 post titles related to first tag on current post<br />
$tags = wp_get_post_tags($post-&gt;ID);<br />
if ($tags) {<br />
echo &#8216;Related Posts&#8217;;<br />
$first_tag = $tags[0]-&gt;term_id;<br />
$args=array(<br />
&#8216;tag__in&#8217; =&gt; array($first_tag),<br />
&#8216;post__not_in&#8217; =&gt; array($post-&gt;ID),<br />
&#8217;showposts&#8217;=&gt;5,<br />
&#8216;caller_get_posts&#8217;=&gt;1<br />
);<br />
$my_query = new WP_Query($args);<br />
if( $my_query-&gt;have_posts() ) {<br />
while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;<br />
<a href="http://www.infonetguide.com/wp-admin/%3C?php%20the_permalink%28%29%20?%3E" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"></a></p>
<p><a href="http://www.infonetguide.com/wp-admin/%3C?php%20the_permalink%28%29%20?%3E" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"></a></p>
<p><a href="http://www.infonetguide.com/wp-admin/%3C?php%20the_permalink%28%29%20?%3E" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"></a></p>
<p>&lt;p&gt;&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&#8221;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/p&gt;</p>
<p>&lt;?php</p>
<p>endwhile;<br />
}<br />
}<br />
?&gt;<br />
Just insert the code to your wordpress theme single.php,then you will get the related posts displayed within every single post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/adding-related-posts-to-single-post/feed</wfw:commentRss>
		</item>
		<item>
		<title>use fireworks to make images</title>
		<link>http://www.infonetguide.com/use-fireworks-to-make-images</link>
		<comments>http://www.infonetguide.com/use-fireworks-to-make-images#comments</comments>
		<pubDate>Fri, 27 Mar 2009 05:19:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design Your Site]]></category>

		<category><![CDATA[Graphics and Multimedia]]></category>

		<category><![CDATA[Just Starting Your Design]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/use-fireworks-to-make-images</guid>
		<description><![CDATA[Hello,recently,I am learning fireworks to make different kinds of image,above is one image made by myself,please put your comments,and if you have any other ways to make nice looking images,please feel free to share your information here.
If possible I will post the way to reach image like above in my next post.
]]></description>
			<content:encoded><![CDATA[<p>Hello,recently,I am learning fireworks to make different kinds of image,above is one image made by myself,please put your comments,and if you have any other ways to make nice looking images,please feel free to share your information here.<a href="http://www.infonetguide.com/use-fireworks-to-make-images/use-fireworks-to-make-different-kinds-of-images/" rel="attachment wp-att-64" title="use fireworks to make different kinds of images."><img src="http://www.infonetguide.com/wp-content/uploads/2009/03/untitled-3.png" alt="use fireworks to make different kinds of images." /></a></p>
<p>If possible I will post the way to reach image like above in my next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/use-fireworks-to-make-images/feed</wfw:commentRss>
		</item>
		<item>
		<title>Use of for each funcation in php</title>
		<link>http://www.infonetguide.com/use-of-for-each-funcation-in-php</link>
		<comments>http://www.infonetguide.com/use-of-for-each-funcation-in-php#comments</comments>
		<pubDate>Sat, 21 Mar 2009 01:09:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/use-of-for-each-funcation-in-php</guid>
		<description><![CDATA[ Foreach (array_expression as $value){
statement;
}
Foreach (array_expression as $key =&#62; $value){
statement;
}
for example
&#60;?php
$arr = array(2,3,4,5) ;
foreach($arr as &#38;$value){
$value = $value * 2;
}
//$arr now is array(4,6,8,10)
unset($value);//break the reference with the last element
//warning Reference of a $value and the last array element remain even after the foreach loop.It is recommended to destroy it by unset().
?&#62;
&#60;?php
$arr = array(&#8221;apply &#8220;,&#8221;orange&#8221;,&#8221;banana&#8221;);
reset($arr); //Set the [...]]]></description>
			<content:encoded><![CDATA[<p> Foreach (array_expression as $value){</p>
<p>statement;</p>
<p>}</p>
<p>Foreach (array_expression as $key =&gt; $value){</p>
<p>statement;</p>
<p>}</p>
<p>for example</p>
<p>&lt;?php</p>
<p>$arr = array(2,3,4,5) ;</p>
<p>foreach($arr as &amp;$value){</p>
<p>$value = $value * 2;</p>
<p>}</p>
<p>//$arr now is array(4,6,8,10)</p>
<p>unset($value);//break the reference with the last element</p>
<p>//warning Reference of a $value and the last array element remain even after the foreach loop.It is recommended to destroy it by unset().</p>
<p>?&gt;</p>
<p>&lt;?php</p>
<p>$arr = array(&#8221;apply &#8220;,&#8221;orange&#8221;,&#8221;banana&#8221;);</p>
<p>reset($arr); <span class="dc-title">//Set the internal pointer of an array to its first element</span></p>
<p>foreach($arr as $key =&gt; $value){</p>
<p>echo &#8220;Key:$key;Value:$value&lt;br /&gt;\n&#8221;;</p>
<p>}</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/use-of-for-each-funcation-in-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>use &lt; select &gt; &lt; / select &gt; tag to save page space.</title>
		<link>http://www.infonetguide.com/use-select-select-tag-to-save-page-space</link>
		<comments>http://www.infonetguide.com/use-select-select-tag-to-save-page-space#comments</comments>
		<pubDate>Fri, 20 Mar 2009 02:59:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design Your Site]]></category>

		<category><![CDATA[Web Page Design]]></category>

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

		<guid isPermaLink="false">http://www.infonetguide.com/use-select-select-tag-to-save-page-space</guid>
		<description><![CDATA[In case you have lots of articles need to be show within the homepage,however,if we show all the links within homepage,that will make the homepage really ugly,how can we keep the links while make our site good looking.
We can use this script as follows:
&#60;script language=JavaScript&#62;
&#60;! &#8211;
function MAP(s)
{var d = s.options[s.selectedIndex].value;
open(d,&#8221;open&#8221;);
s.selectedIndex=0 ;
}
//&#8211;&#62;
&#60;/script&#62;
&#60;form name=milHomeLink&#62;
&#60;select onchange=&#8221;MAP(this);&#8221; size=&#8221;1&#8243; selze=&#8221;1&#8243; [...]]]></description>
			<content:encoded><![CDATA[<p>In case you have lots of articles need to be show within the homepage,however,if we show all the links within homepage,that will make the homepage really ugly,how can we keep the links while make our site good looking.</p>
<p>We can use this script as follows:</p>
<p>&lt;script language=JavaScript&gt;</p>
<p>&lt;! &#8211;</p>
<p>function MAP(s)</p>
<p>{var d = s.options[s.selectedIndex].value;</p>
<p>open(d,&#8221;open&#8221;);</p>
<p>s.selectedIndex=0 ;</p>
<p>}</p>
<p>//&#8211;&gt;</p>
<p>&lt;/script&gt;</p>
<p>&lt;form name=milHomeLink&gt;</p>
<p>&lt;select onchange=&#8221;MAP(this);&#8221; size=&#8221;1&#8243; selze=&#8221;1&#8243; name=&#8221;select2&#8243;&gt;</p>
<p>&lt;option&gt;Please choose your article&lt;/option&gt;</p>
<p>&lt;option value=&#8221;http://www.yoururlone.com&#8221;&gt;yourtitleone&lt;/option&gt;</p>
<p>&lt;option value=&#8221;http://www.yoururltwo.com&#8221;&gt;yourtitletwo&lt;/option&gt;</p>
<p>&lt;option value=&#8221;http://www.yoururlonethree.com&#8221;&gt;yourtitlethree&lt;/option&gt;</p>
<p>&lt;option value=&#8221;http://www.yoururlonefour.com&#8221;&gt;yourtitlefour&lt;/option&gt;</p>
<p>&lt;option value=&#8221;http://www.yoururlonefive.com&#8221;&gt;yourtitlefive&lt;/option&gt;</p>
<p>&lt;/select&gt;</p>
<p>&lt;/form&gt;<br />
Quite easy right,in fact,it is very useful.</p>
<p>Hope this can help you to get save space for you pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/use-select-select-tag-to-save-page-space/feed</wfw:commentRss>
		</item>
		<item>
		<title>email() function in php</title>
		<link>http://www.infonetguide.com/email-function-in-php</link>
		<comments>http://www.infonetguide.com/email-function-in-php#comments</comments>
		<pubDate>Wed, 14 Jan 2009 02:38:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/email-function-in-php</guid>
		<description><![CDATA[Hello guys,the email() function in php could be very useful to send emails.If we could use php to create email address and then we can use email() function to send mails to others.
Okay,here I just write some code,if you needed,you can use them.
You can create a file let&#8217;s say email.php and save all the code [...]]]></description>
			<content:encoded><![CDATA[<p>Hello guys,the email() function in php could be very useful to send emails.If we could use php to create email address and then we can use email() function to send mails to others.</p>
<p>Okay,here I just write some code,if you needed,you can use them.</p>
<p>You can create a file let&#8217;s say email.php and save all the code within the file.</p>
<p>&lt;?php header(&#8221;Content-Type:text/html;charset=utf-8&#8243;); ?&gt;<br />
&lt;?php<br />
$s = 1000;////////////////$s stand for how many emails you want to create,I set it as 1000.</p>
<p>for($i = 1;$i &lt;= $s;$i++){<br />
$qqemail9 = rand(1,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . &#8220;@qq.com&#8221;;<br />
$qqemail8 = rand(1,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . &#8220;@qq.com&#8221;;<br />
$num = rand(1,2);<br />
if($num = 1){<br />
$to = &#8220;{$qqemail9}&#8221;;<br />
$subject = &#8220;this is the subject&#8221;; //////////////////sent &#8220;this is the subject&#8221; with your subject.<br />
$message = &#8220;this is the content&#8221; . &#8221; \r\n &#8220;; //////////////////sent &#8220;this is the content&#8221; with your content.</p>
<p>echo $i . &#8221; &#8221; . $to . &#8220;&lt;br /&gt;&#8221;;<br />
mail($to, $subject, $message, &#8220;FROM: sender@sender.com&#8221;);////////sender@sender.com is your own address,you can change it to your own email address.<br />
}elseif($num =2){<br />
$to = &#8220;{$qqemail8}&#8221;;<br />
$subject = &#8220;this is the subject&#8221;; //////////////////sent &#8220;this is the subject&#8221; with your subject.<br />
$message = &#8220;this is the content&#8221; . &#8221; \r\n &#8220;;//////////////////sent &#8220;this is the content&#8221; with your content.<br />
echo $i . $to . &#8220;&lt;br /&gt;&#8221;;<br />
mail($to, $subject, $message, &#8220;FROM: sender@sender.com&#8221;);////////sender@sender.com is your own address,you can change it to your own email address.<br />
}<br />
}</p>
<p>echo &#8220;You have sent&#8221; . $s . &#8220;emails&#8221;;<br />
?&gt;</p>
<p>Just upload the email file to your hosting and open the file you will have 1000 emails sent.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/email-function-in-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>get sign by birthday in php</title>
		<link>http://www.infonetguide.com/get-sign-by-birthday-in-php</link>
		<comments>http://www.infonetguide.com/get-sign-by-birthday-in-php#comments</comments>
		<pubDate>Fri, 28 Nov 2008 02:39:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/get-sign-by-birthday-in-php</guid>
		<description><![CDATA[Hello,I wrote some code for getting sign by birthday.
You need to create two file.
 One is the file with the the code below and name it as sign_form.php
&#60;form action=&#8221;get_sign.php&#8221; value=&#8221;"&#62;
year:&#60;input name=&#8221;year&#8221; valut=&#8221;" type=&#8221;text&#8221; /&#62; &#60;br /&#62;
month:&#60;input name=&#8221;month&#8221; valut=&#8221;" type=&#8221;text&#8221; /&#62; &#60;br /&#62;
day:&#60;input name=&#8221;day&#8221; valut=&#8221;" type=&#8221;text&#8221; /&#62; &#60;br /&#62;
submit:&#60;input submit=&#8221;submit&#8221; valut=&#8221;submit&#8221; type=&#8221;submit&#8221; /&#62; &#60;br /&#62;
&#60;/form&#62;
then have another file with the code as [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,I wrote some code for getting sign by birthday.</p>
<p>You need to create two file.</p>
<p> One is the file with the the code below and name it as sign_form.php</p>
<p>&lt;form action=&#8221;get_sign.php&#8221; value=&#8221;"&gt;</p>
<p>year:&lt;input name=&#8221;year&#8221; valut=&#8221;" type=&#8221;text&#8221; /&gt; &lt;br /&gt;</p>
<p>month:&lt;input name=&#8221;month&#8221; valut=&#8221;" type=&#8221;text&#8221; /&gt; &lt;br /&gt;</p>
<p>day:&lt;input name=&#8221;day&#8221; valut=&#8221;" type=&#8221;text&#8221; /&gt; &lt;br /&gt;</p>
<p>submit:&lt;input submit=&#8221;submit&#8221; valut=&#8221;submit&#8221; type=&#8221;submit&#8221; /&gt; &lt;br /&gt;</p>
<p>&lt;/form&gt;</p>
<p>then have another file with the code as below and save it as get_sign.php</p>
<p>         if((date(m) &gt; $_POST[&#8217;month&#8217;]) || (date(m) == $_POST[&#8217;month&#8217;] &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= date(d))){<br />
         $age = date(Y) - $_POST[&#8217;year&#8217;] + 1;<br />
         }else{<br />
         $age = date(Y) - $_POST[&#8217;year&#8217;];<br />
         }<br />
         if(($_POST[&#8217;month&#8217;] == 1 &amp;&amp; $_POST[&#8217;day&#8217;] &gt;= 21) OR ($_POST[&#8217;month&#8217;] == 2 &amp;&amp; 19 &gt;= $_POST[&#8217;day&#8217;])){<br />
            $sign = &#8220;Aquarius&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 2 &amp;&amp; 20 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 3 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 20)){<br />
            $sign = &#8220;Pisces&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 3 &amp;&amp; 21 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 4 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 20)){<br />
            $sign = &#8220;Aries&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 4 &amp;&amp; 21 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 5 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 20)){<br />
            $sign = &#8220;Taurus&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 5 &amp;&amp; 21 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 6 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 21)){<br />
            $sign = &#8220;Gemini&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 6 &amp;&amp; 22 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 7 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 22)){<br />
            $sign = &#8220;Cancer&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 7 &amp;&amp; 23 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 8 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 22)){<br />
            $sign = &#8220;Leo&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 8 &amp;&amp; 23 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 9 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 22)){<br />
            $sign = &#8220;Virgo&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 9 &amp;&amp; 23 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 10 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 23)){<br />
            $sign = &#8220;Libra&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 10 &amp;&amp; 24 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 11 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 22)){<br />
            $sign = &#8220;Scorpio&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 11 &amp;&amp; 23 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 12 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 21)){<br />
            $sign = &#8220;Sagittarius&#8221;;<br />
         } elseif(($_POST[&#8217;month&#8217;] == 12 &amp;&amp; 22 &lt;= $_POST[&#8217;day&#8217;]) OR ($_POST[&#8217;month&#8217;] == 1 &amp;&amp; $_POST[&#8217;day&#8217;] &lt;= 20)){<br />
            $sign = &#8220;Capricorn&#8221;;<br />
         }<br />
         echo $sign;</p>
<p> Then we just visit the sign_form.php and input the birthday and click submit,we will get the sign according the birthday.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/get-sign-by-birthday-in-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>A small script to get you all the color with php</title>
		<link>http://www.infonetguide.com/a-small-script-to-get-you-all-the-color-with-php</link>
		<comments>http://www.infonetguide.com/a-small-script-to-get-you-all-the-color-with-php#comments</comments>
		<pubDate>Mon, 24 Nov 2008 15:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Program Your Site]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/a-small-script-to-get-you-all-the-color-with-php</guid>
		<description><![CDATA[Hello people,I just wrote a small php script to get the color of your webpage changed by second,and I just want to show it to you.
Here is the code:
&#8221;
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;GET YOUR COLOR&#60;/title&#62;
&#60;meta http-equiv=&#8221;refresh&#8221; content=&#8221;1&#8243;&#62;
&#60;/head&#62;
&#60;?php
$result = rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9);
?&#62;
&#60;body marginheight=&#8221;0px&#8221; marginwidth=&#8221;0px&#8221; bgcolor=&#8221;#&#60;?php echo $result; ?&#62;&#8221;&#62;
&#60;font color=&#8221;#FFFFFF&#8221; size=&#8221;+6&#8243; style=&#8221;font-family:Arial, Helvetica, [...]]]></description>
			<content:encoded><![CDATA[<p>Hello people,I just wrote a small php script to get the color of your webpage changed by second,and I just want to show it to you.</p>
<p>Here is the code:</p>
<p>&#8221;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;GET YOUR COLOR&lt;/title&gt;<br />
&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;1&#8243;&gt;<br />
&lt;/head&gt;<br />
&lt;?php<br />
$result = rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9);<br />
?&gt;<br />
&lt;body marginheight=&#8221;0px&#8221; marginwidth=&#8221;0px&#8221; bgcolor=&#8221;#&lt;?php echo $result; ?&gt;&#8221;&gt;<br />
&lt;font color=&#8221;#FFFFFF&#8221; size=&#8221;+6&#8243; style=&#8221;font-family:Arial, Helvetica, sans-serif &#8220;&gt;<br />
Backgroundcolor: #&lt;?php echo $result; ?&gt;<br />
&lt;/font&gt;<br />
&lt;table width=&#8221;100%&#8221; height=&#8221;100%&#8221;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;</p>
<p>&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>&#8221;</p>
<p>and here is a <a href="http://www.infonetguide.com/changecolor.php">link</a>,click it and you will see how to code works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/a-small-script-to-get-you-all-the-color-with-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Some Beautiful Sentences on life!!!</title>
		<link>http://www.infonetguide.com/some-beautiful-sentences-on-life</link>
		<comments>http://www.infonetguide.com/some-beautiful-sentences-on-life#comments</comments>
		<pubDate>Fri, 10 Oct 2008 02:44:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blogger]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/some-beautiful-sentences-on-life</guid>
		<description><![CDATA[
Many people will walk in and out of your life but only true friends will leave footprints in your heart.
To handle yourself, use your head; to handle others use your heart.
Love is like playing the piano. First you must learn to play by the rules&#8230;.! Then you must forget the rules and play from your [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong><span style="font-family: arial; color: #ff0000">Many people will walk in and out of your life but only true friends will leave footprints in your heart.</span></strong></li>
<li><strong><span style="font-family: courier new; color: #ff6600">To handle yourself, use your head; to handle others use your heart.</span></strong></li>
<li><strong><span style="font-family: georgia; color: #ffcc00"><em>Love is like playing the piano. First you must learn to play by the rules&#8230;.! Then you must forget the rules and play from your heart!!!!</em></span></strong></li>
<li><strong><span style="font-family: georgia; color: #999900">Anger is only one letter short of danger.</span></strong>
<p><strong><span style="font-family: lucida grande; color: #33cc00">If someone betrays you once, it is his fault; if he betrays you twice it is your fault&#8230;</span></strong><strong><span style="font-family: times new roman; color: #3333ff"></span></strong></li>
<li><strong><span style="font-family: trebuchet ms; color: #009900">The best and most beautiful things in the world cannot be seen or even touched. they must be felt with the heart</span></strong></li>
<li><strong><span style="font-family: times new roman; color: #3333ff">Great minds discuss events; small minds discuss people. </span></strong><span style="font-family: courier new; color: #6600cc"><strong>To see the world in a grain of sand, And a heaven in a wild flower; Hold infinity in the palm of your hand, And eternity in an hour</strong></span></li>
<li><span style="font-family: verdana; color: #cc66cc"><strong>Yesterday is past, it is history.Tomorrow is future, it is a mystery today is present, it is a gift!</strong></span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/some-beautiful-sentences-on-life/feed</wfw:commentRss>
		</item>
		<item>
		<title>Why Google</title>
		<link>http://www.infonetguide.com/why-google</link>
		<comments>http://www.infonetguide.com/why-google#comments</comments>
		<pubDate>Thu, 09 Oct 2008 09:10:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Search Engine Optimization]]></category>

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

		<guid isPermaLink="false">http://www.infonetguide.com/why-google</guid>
		<description><![CDATA[Most people try to pose good to google.But google may not take care of that at all.So here I think why we are so kind to google.com.
I am running a website for a company,that is a great company with a useful website which produce &#8220;caster and wheel&#8221; in China,but the website of that company never enter into Top 10 [...]]]></description>
			<content:encoded><![CDATA[<p>Most people try to pose good to google.But google may not take care of that at all.So here I think why we are so kind to google.com.</p>
<p>I am running a website for a company,that is a great company with a useful website which produce &#8220;caster and wheel&#8221; in China,but the website of that company never enter into Top 10 when you google &#8220;caster and wheel &#8221; in Chinese.</p>
<p>If you check &#8220;Caster and wheel&#8221; in Chinese,google will give you a list websites of Caster and wheel manufacturers.And I sample click some in top 3,just find the websites really do not have much useful content on &#8220;Caster and wheel&#8221;.</p>
<p>So sometimes google.com just become a place for spammers.You are not able to get the best content for your queries.</p>
<p>And for some websites,let&#8217;s just say WSAs,you may found their information is useful,but they may just copy the content from other websites WSBs.So they take the good place at google.</p>
<p>But if possible,I would like to go with WSBs.And if WSBs stop creating new content,WSAs can not live anymore.So google is not that good.For good companies and WSBs,they are not care about the ranking at google.For bad companies and WSAs their content is not worth to read.</p>
<p>So we just need to focus on the content,focus on own mind &amp; ideas,or we just need to learn some asp &amp; php language,and just type out what in our mind and just share our mind with other people,or just use our website to help other people.</p>
<p> Written By: Avery Lin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/why-google/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to get the content from a database.</title>
		<link>http://www.infonetguide.com/how-to-get-the-content-from-a-database</link>
		<comments>http://www.infonetguide.com/how-to-get-the-content-from-a-database#comments</comments>
		<pubDate>Wed, 08 Oct 2008 05:04:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.infonetguide.com/how-to-get-the-content-from-a-database</guid>
		<description><![CDATA[After connect php website and database,we will try to get the content from the database,we can create a page which is called content.php.
And we just need to put this code in the &#60;body&#62; &#60;/body&#62; part.
&#60;?php
$query_subjects = &#8220;SELECT * FROM subjects&#8221;;
$query = mysql_query($query_subjects);
if(!$query) {
die(&#8221;Database selection failed: &#8221; . mysql_error() );
}
//so we just have get the content [...]]]></description>
			<content:encoded><![CDATA[<p>After connect php website and database,we will try to get the content from the database,we can create a page which is called content.php.</p>
<p>And we just need to put this code in the &lt;body&gt; &lt;/body&gt; part.</p>
<p>&lt;?php</p>
<p>$query_subjects = &#8220;SELECT * FROM subjects&#8221;;</p>
<p>$query = mysql_query($query_subjects);</p>
<p>if(!$query) {</p>
<p>die(&#8221;Database selection failed: &#8221; . mysql_error() );</p>
<p>}</p>
<p>//so we just have get the content from the database subjects table,now we need to display the content on the website.</p>
<p>while($ subject_row = mysql_fetch_array($query)) {</p>
<p>echo $row[menu_name] ;</p>
<p>}</p>
<p>?&gt;</p>
<p>It will get all the meun_name from the database and it will display on your website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infonetguide.com/how-to-get-the-content-from-a-database/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
