<?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>php genious &#187; PHP</title>
	<atom:link href="http://www.phpgenious.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpgenious.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 11:25:13 +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>WordPress-Add new Custom Post section</title>
		<link>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/</link>
		<comments>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 09:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[new section in wordpress]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=456</guid>
		<description><![CDATA[TweetHello Friends !! Today, wordpress is widely used opensource. And in wordpress 3.0 and later versions, there are many new features which are not in later versions. Yes, today I will share with you one new feature .  Do you know How you can add new custom post section in wordpress ? Understand what I [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F09%2Fwordpress-add-new-custom-post-section%2F&amp;text=Wordpress-Add+new+Custom+Post+section&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !!</p>
<p>Today, wordpress is widely used opensource. And in wordpress 3.0 and later versions, there are many new features which are not in later versions.</p>
<p>Yes, today I will share with you one new feature .  Do you know How you can add new custom post section in wordpress ?</p>
<p>Understand what I mean ? Ok, dont take tension. I will show you want I mean and what i want to share with you. Please see image :</p>
<p><span id="more-456"></span></p>
<p><a href="http://www.phpgenious.com/wp-content/uploads/2010/09/custom.jpg"><img class="alignnone size-full wp-image-457" title="custom" src="http://www.phpgenious.com/wp-content/uploads/2010/09/custom.jpg" alt="" width="169" height="227" /></a></p>
<p>See above image. In this, I have added two new section <strong>Deals</strong> and <strong>Podcast</strong>. I am going to share with you that how can you make this ?</p>
<p>First of all, open <strong>post.php</strong> file which it located in <strong>wp-include</strong> folder.</p>
<p>After that find <strong>function create_initial_post_types() </strong>and place below code in this function :</p>
<div class="code">
register_post_type(&#8216;podcast&#8217;, array(<br />
&#8216;label&#8217; =&gt; __(&#8216;Podcast&#8217;),<br />
&#8216;singular_label&#8217; =&gt; __(&#8216;Podcast&#8217;),<br />
&#8216;public&#8217; =&gt; true,<br />
&#8216;show_ui&#8217; =&gt; true,<br />
&#8216;capability_type&#8217; =&gt; &#8216;post&#8217;,<br />
&#8216;hierarchical&#8217; =&gt; false,<br />
&#8216;rewrite&#8217; =&gt; false,<br />
&#8216;query_var&#8217; =&gt; false,<br />
&#8216;supports&#8217; =&gt; array( &#8216;title&#8217;, &#8216;editor&#8217;, &#8216;thumbnail&#8217;, &#8216;excerpt&#8217;, &#8216;custom-fields&#8217; )<br />
));</div>
<p>more details, click below :<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7969026041814602";
/* 728x15, created 12/9/09 */
google_ad_slot = "3348511457";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Above code registers new custom post type <strong>podcast </strong>in your admin. You can see it in your admin. For insert posts in this section, place below code after completion <strong>function create_initial_post_types().</strong></p>
<div class="code">
add_action(&#8220;manage_posts_custom_column&#8221;, &#8220;my_custom_columns&#8221;);<br />
add_filter(&#8220;manage_edit-podcast_columns&#8221;, &#8220;my_podcast_columns&#8221;);</code></p>
<p>function my_podcast_columns($columns)<br />
{<br />
$columns = array(<br />
"cb" =&gt; "&lt;input type=\"checkbox\" /&gt;",<br />
"title" =&gt; "Podcast Title",<br />
"description" =&gt; "Description",<br />
"length" =&gt; "Length",<br />
"speakers" =&gt; "Speakers",<br />
"comments" =&gt; 'Comments'<br />
);<br />
return $columns;<br />
}</p>
<p>function my_custom_columns($column)<br />
{<br />
global $post;<br />
if ("ID" == $column) echo $post-&gt;ID;<br />
elseif ("description" == $column) echo $post-&gt;post_content;<br />
elseif ("length" == $column) echo "63:50";<br />
elseif ("speakers" == $column) echo "admin";<br />
}
</p></div>
<p>Now you can add posts in this new section. Enjoy this new magic. But one question will be in your mind that how can i display these posts in front end ? Am I right ? Don't worry. I also give you the code by which you can list these posts in front end. Just copy paste below code where you want to display losts in front end:</p>
<div class="code">
&lt;?php $loop = new WP_Query( array( 'post_type' =&gt; 'podcast', 'posts_per_page' =&gt; 10 ) );<br />
while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();<br />
the_title();</p>
<p>the_content();</p>
<p>endwhile; ?&gt;</p></div>
<p>Thats it !! If you like this post or if you have any query in wordpress on in PHP, feel free to comment me or contact me.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Magic- Different post page for different category post</title>
		<link>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/</link>
		<comments>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 13:32:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[multiple singe.php pages]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=451</guid>
		<description><![CDATA[TweetHello Friends !! Since last many time, I am working with wordpress and I got lot of challenges with wordpress customization. Recently, I have a confusion that how can I make different single.php file for different posts ? After long research, I got a solution of this problem. You can create as many single.php files [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F08%2Fwordpress-magic-different-post-page-for-different-category-post%2F&amp;text=Wordpress+Magic-+Different+post+page+for+different+category+post&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !! Since last many time, I am working with wordpress and I got lot of challenges with wordpress customization.</p>
<p>Recently, I have a confusion that how can I make different single.php file for different posts ? After long research, I got a solution of this problem.</p>
<p>You can create as many single.php files as you want and you also can apply it to different posts. For example, In your site News section has a different layout then blog posts. At that time, this post helps to you .</p>
<p>Here I give you example that how you can do this.<span id="more-451"></span></p>
<p>First , create one file called <em><strong>single-categoryID.php</strong></em> in theme folder.</p>
<p>After creating this please go to single.php, file which shows you full article.</p>
<p>for more details click below:<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7969026041814602";
/* 728x90, created 8/11/10 */
google_ad_slot = "5132096233";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>After header, write below code:</p>
<div class="code">if (in_category(&#8217;9&#8242;))<br />
{<br />
include (TEMPLATEPATH . &#8216;/single-9.php&#8217;);<br />
}<br />
elseif (in_category(&#8217;10&#8242;))<br />
{<br />
include (TEMPLATEPATH . &#8216;/single-10.php&#8217;);<br />
}<br />
else<br />
{<br />
rest of the code&#8230;&#8230;.<br />
}</div>
<p>You can create as many templates as you want. You can also create multiple headers like this and include like a\same above code.</p>
<p>Thats It !! Enjoy different template for different posts.</p>
<p>If you have any wordpress customization query or any confusion, feel free to ask me or comment me.</p>
<p>Thanks,</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Image upload/display problem in FCK editor-solution</title>
		<link>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/</link>
		<comments>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 06:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[CK editor]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[Image uploading]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=436</guid>
		<description><![CDATA[TweetHello friends !! We generally use FCK Editor for the editor purpose in our website. But In many occation, every one has faced I mage uploading problem or Image not shown in frontend. Its an common errors of FCK editor. For resolving these errors you have to set some parameters in the fck config file. [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F07%2Fimage-uploaddisplay-problem-in-fck-editor-solution%2F&amp;text=Image+upload%2Fdisplay+problem+in+FCK+editor-solution&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello friends !!</p>
<p>We generally use FCK Editor for the editor purpose in our website. But In many occation, every one has faced I mage uploading problem or Image not shown in frontend. Its an common errors of FCK editor.</p>
<p>For resolving these errors you have to set some parameters in the fck config file.<span id="more-436"></span><br />
click below for more details :<br />
</p>
<p>If you have a problem of Image uploading, then follow below steps :</p>
<p>Go through this file FCKeditor\editor\filemanager\connectors\php\config.php and set absolute path of your directory. I think you all are know about absolute and relative path. Please set below path in your config file.</p>
<p>$Config['UserFilesPath'] = &#8216;http://www.abcd.com/userfiles/&#8217; ;</p>
<p>$Config['UserFilesAbsolutePath'] = &#8216;directody path of userfiles folder/&#8217; ; // like home/htdocs/..</p>
<p>Using above step, your image upload problem and Image display problem will be solved. I have already faced these problems and also solved this problems.</p>
<p>If you have any suggestion or any query the feel free to comment on this.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Send mail from your localhost</title>
		<link>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/</link>
		<comments>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 18:44:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cakePHP]]></category>
		<category><![CDATA[MAil from localhost]]></category>
		<category><![CDATA[SMTP mail]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=434</guid>
		<description><![CDATA[TweetHello Friends !! When you developing your site then you are facing a problem that how to send mail from your local host ? Because when you are testing your project/site in localhost then this problem occurred. At that time you think about upload your site on server. If you don&#8217;t want this type of uploading [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F07%2Fsend-mail-from-your-localhost%2F&amp;text=Send+mail+from+your+localhost&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !!</p>
<p>When you developing your site then you are facing a problem that how to send mail from your local host ?</p>
<p>Because when you are testing your project/site in localhost then this problem occurred. At that time you think about upload your site on server.</p>
<p>If you don&#8217;t want this type of uploading work and you want to test your mail form your localhost then here is the solution.<span id="more-434"></span><br />
<br />
First of all open your <strong>xamp</strong> or <strong>wamp</strong> installed directory.<br />
Then open php directory and find <strong>php.ini.</strong></p>
<p><strong> </strong>Then open this php.ini in notepad and find <strong>[mail function] </strong>in that file.</p>
<p>When you find it, remove semi colon before <strong>SMTP,smtp_port</strong> and <strong>sendmail_from.</strong></p>
<p>Set this parameters like this :</p>
<p><strong>SMTP=mail.test.com  //it indicates mail server</strong></p>
<p><strong>smtp_port=25            // it indicates port address</strong></p>
<p><strong>sendmail_from=test@test.com   // it indicates mail id from which you want to send mail</strong></p>
<p>After this, please stop you xamp/wamp services, do refresh and start it again.</p>
<p>Thats it.. Now you can send mail from your localhost..</p>
<p>If you have any query or any confusion then feel free to comment me.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>URL Rewriting in Opencart</title>
		<link>http://www.phpgenious.com/2010/07/url-rewriting-in-opencart/</link>
		<comments>http://www.phpgenious.com/2010/07/url-rewriting-in-opencart/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 17:33:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTACCESS]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Opencart HTACCESS]]></category>
		<category><![CDATA[URL rewriting in opencart]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=430</guid>
		<description><![CDATA[TweetHello Friends !! Today I am going to introduce that how to enable URL rewriting in Opencart. I have completed my two projects in opencart and I already faced the problem that how to enable URL rewriting in Opencart. So today I want to share with all of you guys that how to use URL [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F07%2Furl-rewriting-in-opencart%2F&amp;text=URL+Rewriting+in+Opencart&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !! Today I am going to introduce that how to enable URL rewriting in Opencart.</p>
<p>I have completed my two projects in opencart and I already faced the problem that how to enable URL rewriting in Opencart.</p>
<p>So today I want to share with all of you guys that how to use URL rewriting in Opencart.<span id="more-430"></span></p>
<p>Follow below steps :</p>
<p>1) Rename your htaccess.txt to .htaccess.<br />
2) Enter in admin area.<br />
3) Go to <strong>Admin-&gt;Configuration-&gt;Settings-&gt;Server</strong> and check <strong>SEO URL</strong> option Yes.<br />
4) Then you have to enter SEO keyword field in every products/categories/information etc.<br />
5) You can find this field at that time of insertion or edition.</p>
<p>After all this settings, I am sure that URL rewriting is working in your opencart site.</p>
<p>If you have further query or if you have any confusion, then feel free to comment me. I will try my best to solve your issues..</p>
<p>Thanks in advance !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/07/url-rewriting-in-opencart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 version Released</title>
		<link>http://www.phpgenious.com/2010/06/wordpress-3-0-version-released/</link>
		<comments>http://www.phpgenious.com/2010/06/wordpress-3-0-version-released/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 06:56:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=426</guid>
		<description><![CDATA[TweetHello Friends, Sorry for taking to long time for posting new posts. Here is the great news for lovers of wordpress and wordpress blogger. Because recently I heard that wordpress release the new latest version wordpress 3.0 for public use. In this latest version, they provide many new features for your site which makes your [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F06%2Fwordpress-3-0-version-released%2F&amp;text=Wordpress+3.0+version+Released&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends,</p>
<p>Sorry for taking to long time for posting new posts.</p>
<p>Here is the great news for lovers of wordpress and wordpress blogger.</p>
<p>Because recently I heard that wordpress release the new latest version <strong>wordpress 3.0 </strong>for public use.</p>
<p>In this latest version, they provide many new features for your site which makes your site batter.</p>
<p>For more Information, click below links:<br />
</p>
<p>Please go <a href="http://www.wordpress.org" target="_blank">wordpress.org</a> and you can find download link and also you ca get guide that how to use it.</p>
<p>Then go here and make your site unique then others.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/06/wordpress-3-0-version-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add dynamic sidebars in your wordpress themes</title>
		<link>http://www.phpgenious.com/2010/05/add-dynamic-sidebars-in-your-wordpress-themes/</link>
		<comments>http://www.phpgenious.com/2010/05/add-dynamic-sidebars-in-your-wordpress-themes/#comments</comments>
		<pubDate>Tue, 11 May 2010 17:40:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[sidebar customization]]></category>
		<category><![CDATA[Theming]]></category>
		<category><![CDATA[wordpress customization]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=421</guid>
		<description><![CDATA[TweetHello Friends !! You like wordpress theaming and working with wordpress ? But what is this, there is only one sidebar with your theme ? Then how can you add new sidebar ? I have faced same problem. Since last few days, I am working on wordpress project. I am doing theaming on wordpress. At [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F05%2Fadd-dynamic-sidebars-in-your-wordpress-themes%2F&amp;text=Add+dynamic+sidebars+in+your+wordpress+themes&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !!</p>
<p>You like wordpress theaming and working with wordpress ? But what is this, there is only one sidebar with your theme ? Then how can you add new sidebar ?</p>
<p>I have faced same problem. Since last few days, I am working on wordpress project. I am doing theaming on wordpress.</p>
<p>At one point, I want extra sidebar for my theme.Now at that time I am doing lots of search and I found the solution. Today I will show you how to add dynamic sidebars in your wordpress theme ?</p>
<p>First of all see all the files in your perticular theme. Do you find file called <em><strong>functions.php</strong></em>. If no, then create one php file and save it as <em><strong>functions.php. </strong></em>Just open this file and write below code in it..<span id="more-421"></span></p>
<div class="code">&lt;?php<br />
if ( function_exists(&#8216;register_sidebars&#8217;) )<br />
register_sidebars(2);<br />
?&gt;</div>
<p>After this save file as <em><strong>functions.php</strong></em> in theme folder. If your theme have more then one sidebar, then you can find <em><strong>functions.php</strong></em> file in your theme folder. You can change the code as you want. Now What the code douse actually ? <em><strong>register_sidebars(n) </strong></em>this function register <em><strong>n </strong></em>no of sidebars in your theme. Now when you go to your wordpress admin and browse the widgets,  you can see <em><strong>n </strong></em>no of sidebars in admin.</p>
<p>Now time comes for actual coading. Your theme have one sodebar.php. For these exmple, we make two side bars so we need two sidebar files. So copy sidebar.php and make new sidebar file named <em><strong>sidebar2.php .</strong></em>Open this sidebar2.php file and write below code in it:</p>
<div class="code">&lt;div&gt;<br />
&lt;ul&gt;<br />
&lt;?php if ( function_exists(&#8216;dynamic_sidebar&#8217;) &amp;&amp;  dynamic_sidebar(2) ) : else : ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</div>
<p>Hoooreey !! Our sidebar is ready. Now How to use this side bar in index.php ? You have to just write below code where you want this new sidebar :</p>
<div class="code">&lt;?php include (TEMPLATEPATH . &#8216;/sidebar2.php&#8217;); ?&gt;</div>
<p>Thats it. Using this technique, you can add no of sidebars on your wordpress themes. If you have any confusion regarding this or any question regarding wordpress customization or if you want to make site in wordpress then feel free to contact me.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/05/add-dynamic-sidebars-in-your-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Errors with full description</title>
		<link>http://www.phpgenious.com/2010/05/errors-with-full-description/</link>
		<comments>http://www.phpgenious.com/2010/05/errors-with-full-description/#comments</comments>
		<pubDate>Tue, 04 May 2010 12:21:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Errors]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=416</guid>
		<description><![CDATA[TweetHello Friends. We are using internet daily and we got may types of errors but do you know the meaning of that error codes ? Today I list the error codes with full descriptions and also I will show you whay these errors comes. 400 Bad File Request Usually means the syntax used in the [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F05%2Ferrors-with-full-description%2F&amp;text=Errors+with+full+description&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends. We are using internet daily and we got may types of errors but do you know the meaning of that error codes ?<br />
Today I list the error codes with full descriptions and also I will show you whay these errors comes.</p>
<p><strong>400 Bad File Request</strong> Usually means the syntax used in the URL is incorrect (e.g., uppercase letter should be lowercase letter; wrong punctuation marks).</p>
<p><strong>401 Unauthorized </strong> Server is looking for some encryption key from the client and is not getting it. Also, wrong password may have been entered. Try it again, paying close attention to case sensitivity.</p>
<p><strong>403 Forbidden/Access Denied</strong> Similar to 401; special permission needed to access the site &#8212; a password and/or username if it is a registration issue. Other times you may not have the proper permissions set up on the server or the site&#8217;s administrator just doesn&#8217;t want you to be able to access the site.<span id="more-416"></span></p>
<p><strong>404 File Not Found</strong> Server cannot find the file you requested. File has either been moved or deleted, or you entered the wrong URL or document name. Look at the URL. If a word looks misspelled, then correct it and try it again. If that doesn&#8217;t work backtrack by deleting information between each backslash, until you come to a page on that site that isn&#8217;t a 404. From there you may be able to find the page you&#8217;re looking for.for maore details click here </p>
<p><strong>408 Request Timeout</strong> Client stopped the request before the server finished retrieving it. A user will either hit the stop button, close the browser, or click on a link before the page loads. Usually occurs when servers are slow or file sizes are large.</p>
<p><strong>500 Internal Error</strong> Couldn&#8217;t retrieve the HTML document because of server-configuration problems. Contact site administrator.</p>
<p><strong>501 Not Implemented </strong> Web server doesn&#8217;t support a requested feature.</p>
<p><strong>502 Service Temporarily Overloaded</strong> Server congestion; too many connections; high traffic. Keep trying until the page loads.</p>
<p><strong>503 Service Unavailable</strong> Server busy, site may have moved ,or you lost your dial-up Internet connection.</p>
<p><strong>Connection Refused by Host</strong> Either you do not have permission to access the site or your password is incorrect.</p>
<p><strong>File Contains No Data</strong> Page is there but is not showing anything. Error occurs in the document. Attributed to bad table formatting, or stripped header information.</p>
<p><strong>Bad File Request</strong> Browser may not support the form or other coding you&#8217;re trying to access.</p>
<p><strong>Failed DNS Lookup</strong> The Domain Name Server can&#8217;t translate your domain request into a valid Internet address. Server may be busy or down, or incorrect URL was entered.</p>
<p><strong>Host Unavailable</strong> Host server down. Hit reload or go to the site later.</p>
<p><strong>Unable to Locate Host</strong> Host server is down, Internet connection is lost, or URL typed incorrectly.</p>
<p><strong>Network Connection</strong> Refused by the Server 	The Web server is busy.</p>
<p>If you have any query or confusion then feel free to comment on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/05/errors-with-full-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Preview Script like Template Monster</title>
		<link>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/</link>
		<comments>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 06:50:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Image Preview]]></category>
		<category><![CDATA[Javascript image popup]]></category>
		<category><![CDATA[jquery image]]></category>
		<category><![CDATA[template monster like image preview]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=407</guid>
		<description><![CDATA[TweetHello Friends !! Since last few days, I am looking for Image Preview Script like template monster. I was doing lots of googling to fing this type of script. I found one script from javascriptkit.com but its not browser compitible script. (Not working in Google Chrome and Safari). I was searching in goole to make [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F04%2Fimage-preview-script-like-template-monster%2F&amp;text=Image+Preview+Script+like+Template+Monster&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !!</p>
<p>Since last few days, I am looking for Image Preview Script like template monster. I was doing lots of googling to fing this type of script.</p>
<p>I found one script from javascriptkit.com but its not browser compitible script. (Not working in Google Chrome and Safari). I was searching in goole to make this script compitible with all the browsers. But I wasn&#8217;t get any help. At that time, I decided to make such type of script.</p>
<p><span id="more-407"></span></p>
<p>After long research and modification, I got success to make such type of script which shows your image properly.I have made script which preview your image same like template monster .</p>
<p>Today I will provide you this script. <a href="http://www.phpgenious.com/test/mouseover-popup/example.html" target="_blank"><strong>Click here</strong></a> to see the Demo of this script.</p>
<p>For Download full source code, <strong>Click Below</strong> links or <a href="http://www.phpgenious.com/test/mouseover-popup.rar" target="_blank">Click Here</a><br />
</p>
<p>If you have any suggestion or any query regarding this script, then feel free to comment on this post.<br />
Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/04/image-preview-script-like-template-monster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change DIV height/width with body width/height using jQuery</title>
		<link>http://www.phpgenious.com/2010/04/change-div-heightwidth-with-body-widthheight-using-jquery/</link>
		<comments>http://www.phpgenious.com/2010/04/change-div-heightwidth-with-body-widthheight-using-jquery/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 11:59:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[set div with jquery]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=398</guid>
		<description><![CDATA[TweetHello Friends !! SInce last few dyas, I am facing the problem that how can I change DIV height/width with body or browser height/width ? I want that DIV heoght is increase when browser heignt increase and decrease when browser height decrease. In short I wnat my DIV size browser friendly. For this, I search [...]]]></description>
			<content:encoded><![CDATA[<div class="igit_tsb_button" style="float: right; margin-left: 10px; margin-top: 10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.phpgenious.com%2F2010%2F04%2Fchange-div-heightwidth-with-body-widthheight-using-jquery%2F&amp;text=Change+DIV+height%2Fwidth+with+body+width%2Fheight+using+jQuery&amp;count=horizontal&amp;via=" style="" class="twitter-share-button">Tweet</a></div><p>Hello Friends !!</p>
<p>SInce last few dyas, I am facing the problem that how can I change DIV height/width with body or browser height/width ? I want that DIV heoght is increase when browser heignt increase and decrease when browser height decrease.</p>
<p>In short I wnat my DIV size browser friendly. For this, I search many things in google and finally I found the solution by jQuery. In this post, I will give you code that how to change your DIV height/width with browser height/width veries.</p>
<p>First download latest <a href="http://docs.jquery.com/Downloading_jQuery">jQuery</a> file. After this make one DIV for which you want to change the height/width.<br />
<span id="more-398"></span></p>
<p>&lt;div id=&#8221;test&#8221; style=&#8221;background-color:#000;&#8221;&gt;&lt;/div&gt;</p>
<p>In above DIV, i give background color <strong>black</strong> so you can see the change. Now write below code in you <strong>head</strong> section.I am giveng you some code whcih use for this.</p>
<p><strong>$(window).width(); =&gt; </strong>It returns width of the body<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>$(document).width(); =&gt; </strong>It returns width of the whole window<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>$(window).height(); =&gt; </strong>It returns height of the body<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>$(document).height(); =&gt;</strong> It returns height of the whole window</p>
<p>Now for an example you want the div height same as your body</p>
<p>then use below code. First make one div like</p>
<p><strong>&lt;div id=&#8221;test&#8221; style=&#8221;background-color:#000;&#8221;&gt;&lt;/div&gt;</strong> I set blacj background color because you can see the change.</p>
<p>Suppose in your web page, there is one header which height is 100px and you want the above div height after header. So follow below code. Put this code in <strong>head</strong> section.</p>
<div class="code">
<p>&lt;script language=&#8221;javascript&#8221;&gt;</p>
<p>$(document).ready(function(){</p>
<p>var height1 = $(document).height(); // height of full document</p>
<p>var height2 = $(&#8220;#header&#8221;).height(); // height of header</p>
<p>var height_diff = height1 &#8211;  height2 + &#8220;px&#8221;;</p>
<p>document.getElementById(&#8216;test&#8217;).style.height = height_diff; // Set the remaining height in <strong>test</strong> DIV.</p>
<p>});</p>
<p>&lt;/script&gt;</p>
</div>
<p>Thats it. You can also use span tag instead of div. You can set your DIV height/width as page resize. If you have any confusion or query about this than comment on this.</p>
<p>Thanks You !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/04/change-div-heightwidth-with-body-widthheight-using-jquery/feed/</wfw:commentRss>
		<slash:comments>79</slash:comments>
		</item>
	</channel>
</rss>
