<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>PHP Freelancer</title>
	
	<link>http://php-freelancer.in</link>
	<description />
	<lastBuildDate>Mon, 08 Apr 2013 10:43:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PhpFreelancer" /><feedburner:info uri="phpfreelancer" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://superfeedr.com/hubbub" /><feedburner:emailServiceId>PhpFreelancer</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How To Swap Columns Values In Mysql by Query</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/5O7uJviHHyA/</link>
		<comments>http://php-freelancer.in/2012/12/07/how-to-swap-columns-values-in-mysql-by-query/#comments</comments>
		<pubDate>Fri, 07 Dec 2012 10:23:40 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Swap column values in mysql table]]></category>
		<category><![CDATA[Swap columns values query]]></category>
		<category><![CDATA[Swap Values of two columns mysql]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=346</guid>
		<description><![CDATA[Mysql is mostly used for all website made in PHP because of its so many good advantages. I am also working in PHP MYSQL from more than 6 years. I am PHP Freelancer India and I am available to hire. Now in this article I am going to explain you how we can swap values &#8230; <a href="http://php-freelancer.in/2012/12/07/how-to-swap-columns-values-in-mysql-by-query/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Mysql is mostly used for all website made in PHP because of its so many good advantages. I am also working in PHP MYSQL from more than 6 years. I am PHP Freelancer India and I am available to hire. Now in this article I am going to explain you how we can swap values of two columns of a table in mysql database.<span id="more-346"></span></p>
<p>For example we have 2 columns &#8216;state_id&#8217; and &#8216;district_id&#8217; in a table called &#8216;state_and_district&#8217;, So while inserting data into this table by mistake state id inserted into district_id and District id inserted into state_id, So instead of changing each row values we can do this by using a simple query of mysql.</p>
<p>We cant use a query like assign state_id = district_id and district_id = state_id because it will just set both value to district_id. Instead of this we will use temporary variable to swap column values. So below is query which can be used to swap values of 2 columns in table and will work for &#8220;IS NOT NULL&#8221;</p>
<pre class="brush: plain; title: ; notranslate">UPDATE swap_test SET state_id=district_id, district_id=@temp WHERE (@temp:=state_id) IS NOT NULL;</pre>
<p>Above query is using temporary variable to swap values of column values and It is working properly. Although there is second query also available which is perfect way to do this and will work for NOT NULL and NULL both values.</p>
<pre class="brush: plain; title: ; notranslate">UPDATE swap_test SET state_id=(@temp:=state_id), state_id = district_id, district_id = @temp;</pre>
<p>Above query is perfect query to swap two column values with each other in Db table. I am sure there will be lots of other ways to do this and if you know any other better way then let us know in comments.</p>
<p>I hope this article help someone for sure. I am PHP Freelancer India and I am having more than 6 years of experience. So <a href="http://php-freelancer.in/contact-me/" class="kblinker" title="More about contact me &raquo;">contact me</a> if you have any work.</p>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/5O7uJviHHyA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2012/12/07/how-to-swap-columns-values-in-mysql-by-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2012/12/07/how-to-swap-columns-values-in-mysql-by-query/</feedburner:origLink></item>
		<item>
		<title>Change Small WordPress Logo At Top Left Corner After Login Into Admin</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/4fOsu9mC6Po/</link>
		<comments>http://php-freelancer.in/2012/06/21/change-small-wordpress-logo-at-top-left-corner-after-login-into-admin/#comments</comments>
		<pubDate>Thu, 21 Jun 2012 21:34:47 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Change admin header small logo in wordpress]]></category>
		<category><![CDATA[Change Wordpress admin logo at top left]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=328</guid>
		<description><![CDATA[Hi Friends, In this article I am going to explain that how you can Change Small WordPress Logo At Top Left Corner After Login Into Admin. Many times when we work for clients then they need to include their brand name and logo into wordpress admin also at that time we need to change wordpress logo at &#8230; <a href="http://php-freelancer.in/2012/06/21/change-small-wordpress-logo-at-top-left-corner-after-login-into-admin/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, In this article I am going to explain that how you can <strong>Change Small <a href="http://wordpress.org/" class="kblinker" title="More about wordpress &raquo;">WordPress</a> Logo At Top Left Corner After Login Into Admin. </strong>Many times when we work for clients then they need to include their brand name and logo into wordpress admin also at that time we need to change wordpress logo at top left corner after login into admin. So I am going to explain it here step by step that how you can change wordpress top left logo in admin.<span id="more-328"></span></p>
<p>We are going to use wordpress action hooks, WordPress providing many hooks by which we can change or add wordpress functionality without changing core files of wordpress.So here we are going to use &#8216;admin_head&#8217; action hook by which you can change admin head logo and other things. So below are code to change admin head logo at top left of screen :</p>
<pre class="brush: php; title: ; notranslate">
function change_admin_head_logo() {
echo '
&lt;style type=&quot;text/css&quot;&gt;
#header-logo{
background:url(images/my-logo.png) left center no-repeat;
width:100px;
height:32px;
}
&lt;/style&gt;';
}
add_action('admin_head', 'change_admin_head_logo', 11);
</pre>
<p>So in above code you can see we use &#8216;admin_head&#8217; action hook and one CSS block to override current admin logo image. Upload your login logo image in wp-content/themes/[current_theme]/images/ and then replace image name &#8216;my-logo.png&#8217; with your logo image name. Now put this above code in functions.php file of your theme and then check your admin logo at top left.</p>
<p>I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than 5 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/4fOsu9mC6Po" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2012/06/21/change-small-wordpress-logo-at-top-left-corner-after-login-into-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2012/06/21/change-small-wordpress-logo-at-top-left-corner-after-login-into-admin/</feedburner:origLink></item>
		<item>
		<title>jQuery : How to Use jQuery Validation By Element or Input Id Instead of Name</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/Ffiyr_KApoU/</link>
		<comments>http://php-freelancer.in/2012/06/07/jquery-how-to-use-jquery-validation-by-element-or-input-id-instead-of-name/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 15:17:41 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Validate By Input Id Instead of Name]]></category>
		<category><![CDATA[Jquery validation by input Id]]></category>
		<category><![CDATA[Validate input by id jQuery validation]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=324</guid>
		<description><![CDATA[Hi Friends, Right now I am working on CakePHP project in which I have to use jQuery Validation Library  for validation of forms. jQuery validation library is really best option to make validation for any form because it is having too many options and we can use it very easy. But in this validation by default &#8230; <a href="http://php-freelancer.in/2012/06/07/jquery-how-to-use-jquery-validation-by-element-or-input-id-instead-of-name/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, Right now I am working on CakePHP project in which I have to use <a href="http://docs.jquery.com/Plugins/Validation" target="_blank">jQuery Validation Library</a>  for validation of forms. jQuery validation library is really best option to make validation for any form because it is having too many options and we can use it very easy. But in this validation by default we have to use element name for any validation instead of class name or id of element, for example :</p>
<pre class="brush: jscript; title: ; notranslate">
$().ready(function() {
	// validate signup form on keyup and submit
	$(&quot;#signupForm&quot;).validate({
		rules: {
			firstname: &quot;required&quot;,
		},
		messages: {
			firstname: &quot;Please enter your firstname&quot;,
		}
	});
});
</pre>
<p>You can see in above code &#8220;signupForm&#8221; is form id, But you can also see that to make First Name required we use &#8220;firstname&#8221;(which is the name of text box element of First Name). If I was using custom PHP language then I was not having any issues if this validation use name of element for validation instead of id or class, But in cakePHP when we create any element then it created it name like this :</p>
<pre class="brush: plain; title: ; notranslate">data['ModelName']['firstname']</pre>
<p>So we can&#8217;t use this name in this validation, otherwise it will not work. So I stuck into one big problem that I want to use this library but can&#8217;t use it with name and I can&#8217;t change name of cakePHP otherwise it will increase my code time while working on other functionality related to this form.</p>
<p>So I googling on internet to find solution for it because i knew that I am not only one developer who is using cakephp and want to use this library and having same issue like me. I got some clues but didn&#8217;t find perfect solution for it. But based upon on that solution I tried many things and finally I made jQuery validation library working with id of element.</p>
<p>So let me explain how we can do it.Lets take one example.We have one form which is taking information &#8220;First Name&#8221; and &#8220;Last Name&#8221; and we want to validate it with jQuery validation library. So form id is &#8220;testingform&#8221; and id of First name is &#8220;first_name&#8221; and Last Name id is &#8220;last_name&#8221;.So js code to validate this field would be like this :</p>
<pre class="brush: jscript; title: ; notranslate">
$().ready(function() {
    // validate the form when it is submitted
   	 $(&quot;#testingform&quot;).validate();
   	 $(&quot;#first_name&quot;).rules(&quot;add&quot;, {
   		 required:true,
   		 messages: {
   				required: &quot;Please Enter Title of Project.&quot;
   		 }
   	  });
   	 $(&quot;#last_name&quot;).rules(&quot;add&quot;, {
   		 required:true,
   		 messages: {
   				required: &quot;Please Enter Description of Project.&quot;
   		 }
   	  });
	 /*  You Can add oter fields like above
	 	 Here with messages. But remember you have to mention
		 $(&quot;#testingform&quot;).validate(); first and then write
		 all other code
	 */
});
</pre>
<p>You Can add other more fields like above,but remember you have to mention $(&#8220;#testingform&#8221;).validate(); first and then write all other code for more fields to validate.</p>
<p>So this is way to use id of input box or element while validation form by jQuery Validation Library. You can post you problems, thoughts in comments.</p>
<p>I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than 5 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/Ffiyr_KApoU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2012/06/07/jquery-how-to-use-jquery-validation-by-element-or-input-id-instead-of-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2012/06/07/jquery-how-to-use-jquery-validation-by-element-or-input-id-instead-of-name/</feedburner:origLink></item>
		<item>
		<title>jQuery: Solution of $(…) is null on pages</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/JVd3vFjpq3M/</link>
		<comments>http://php-freelancer.in/2012/06/07/jquery-solution-of-is-null-on-pages/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 14:26:34 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery : $(..) is null error solution]]></category>
		<category><![CDATA[Solution of "jQuery .. Is Null" Issue]]></category>
		<category><![CDATA[Solve jauery error $(..) is null]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=317</guid>
		<description><![CDATA[Hi Friends, Sometime when you used jquery on somepages and mostly in wordpress then I think you must got encountered with this error &#8220;$(&#8230;) is null&#8221; where &#8230; would be your element class name or id. I know this error is very small but really frustating because we didnt find what we are doing wrong. &#8230; <a href="http://php-freelancer.in/2012/06/07/jquery-solution-of-is-null-on-pages/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, Sometime when you used jquery on somepages and mostly in <a href="http://wordpress.org/" class="kblinker" title="More about wordpress &raquo;">wordpress</a> then I think you must got encountered with this error &#8220;$(&#8230;) is null&#8221; where &#8230; would be your element class name or id. I know this error is very small but really frustating because we didnt find what we are doing wrong. So I also got this issue and solve it and really it seems very easy when I solved this issue.<span id="more-317"></span></p>
<p>Anyway when we use $ as jquery object then the $ function in jQuery will never return null. So it is likely it is a different non-jQuery $ in use may be prototype.js or other library being used.We all know that $ is itself not null because the exception would be different, like : &#8220;$ is not a function&#8221; but In this case the browser is saying that the result of the expression $(&#8230;)) is null, which is main cause of this error is $ which is different non-jquery object used by another library.So to solve this error you should use try this :</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function($) {
// your code goes here ...
});
</pre>
<p>Or you can try this also :</p>
<pre class="brush: jscript; title: ; notranslate">
jQuery(function($) {
// your code goes here ...
});
</pre>
<p>Or you can replace &#8220;$&#8221; with &#8220;jQuery&#8221; (without quotes) in your code(which is not a good idea, but works.) Now you can try any of this method and let us know in comment that it is working or not or you can suggest any other solution in comments too.</p>
<p>I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than 5 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/JVd3vFjpq3M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2012/06/07/jquery-solution-of-is-null-on-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2012/06/07/jquery-solution-of-is-null-on-pages/</feedburner:origLink></item>
		<item>
		<title>Colorbox : Change Position of Close Button To Top Right</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/RNMvL_YeSHc/</link>
		<comments>http://php-freelancer.in/2012/05/14/colorbox-change-position-of-close-button-to-top-right/#comments</comments>
		<pubDate>Mon, 14 May 2012 10:16:40 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Change position of close button in Colorbox]]></category>
		<category><![CDATA[Colorbox change position close button top corner]]></category>
		<category><![CDATA[Colorbox close button position change]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=311</guid>
		<description><![CDATA[Hi Friends, After many days now I am again back to blogging. Today I am going to write about one small thing  about Colorbox (A lightweight customizable lightbox plugin for jQuery).When I implemented Colorbox in one of my client site, My client liked it very much but he got one comment only that he want close &#8230; <a href="http://php-freelancer.in/2012/05/14/colorbox-change-position-of-close-button-to-top-right/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, After many days now I am again back to blogging. Today I am going to write about one small thing  about <a href="http://www.jacklmoore.com/colorbox" target="_blank">Colorbox </a>(A lightweight customizable lightbox plugin for jQuery).When I implemented Colorbox in one of my client site, My client liked it very much but he got one comment only that he want close button at top right corner because we all mostly have habit to find close button at top right corner because close button always found on top right corner of Browser, Windows etc<span id="more-311"></span> ..</p>
<p>So to make this I thought first that I need to change some html part of colorbox script but finally I found one easiest way to do it by CSS. So to make close button at top right corner, You need to add one CSS block to colorbox CSS. Below is CSS block which you need to add in colorbox CSS :</p>
<pre class="brush: css; title: ; notranslate">/* To change position of close button to Top Right Corner */
#colorbox #cboxClose
{
top: 0;
right: 0;
}
#cboxLoadedContent{
margin-top:28px;
margin-bottom:0;
}
</pre>
<p>Add this to your CSS file or Colorbox CSS file and then you can see close button will automatically show on top right corner of Colorbox.</p>
<p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than 5 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/RNMvL_YeSHc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2012/05/14/colorbox-change-position-of-close-button-to-top-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2012/05/14/colorbox-change-position-of-close-button-to-top-right/</feedburner:origLink></item>
		<item>
		<title>WordPress How To Get Embed HTML of Video Using oEmbed By Video Link</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/8zuCOCUHQIM/</link>
		<comments>http://php-freelancer.in/2011/12/06/wordpress-how-to-get-embed-html-of-video-using-oembed-by-video-link/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:16:17 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Get Vimeo Vidoe HTML by Link]]></category>
		<category><![CDATA[Get youtube html by link]]></category>
		<category><![CDATA[Wordpress Get Video HTML by link]]></category>
		<category><![CDATA[Wordpress Get Video HTML by URL]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=297</guid>
		<description><![CDATA[Hello Friends, WordPress have feature to convert to its embed HTML by video link/URL, meaning if we put link of video in editor it automatically converts that video link to its embed HTML code. But as we know we always like to use simple things in different way so that somtimes we want to use &#8230; <a href="http://php-freelancer.in/2011/12/06/wordpress-how-to-get-embed-html-of-video-using-oembed-by-video-link/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hello Friends, <a href="http://wordpress.org/" class="kblinker" title="More about wordpress &raquo;">WordPress</a> have feature to convert to its embed HTML by video link/URL, meaning if we put link of video in editor it automatically converts that video link to its embed HTML code. But as we know we always like to use simple things in different way so that somtimes we want to use this feature in our theme So user enter video link in any custom field and we want to convert that video link to its embed HTML, So it shows videos automatically as it is showing link in editor.<span id="more-297"></span></p>
<p>We can do this by using the_content filter but for example if we are showing that video after title and before content using the_content filter then if we using any plugin which use the_content filter to add social sharing buttons or related posts then it will show twice because the_content called 2 times, first call to parse video link and second to show content.So to overcome this problem I found one wordpress functions who return Embed HTML of Video using oEmbed by passing link of video.</p>
<p><a href="http://codex.wordpress.org/Function_Reference/wp_oembed_get" target="_blank">wp_oembed_get</a> takes a URL and Attempts to fetch the embed HTML for it using oEmbed. Here is <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">list of sites </a> which you can embed from. So this method will work only for sites exists in lists, So if you are using any other website video link then it will not work. But as we can see it support mostly all famous video sites, So this is not a big issue.</p>
<p>We can use wp_oembed_get like this :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $embed_code = wp_oembed_get('http://www.youtube.com/watch?v=8h85FZL5Khk'); ?&gt;
</pre>
<p>Get embed html code by link by passing width argument :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $embed_code = wp_oembed_get('http://www.youtube.com/watch?v=8h85FZL5Khk', array('width'=&amp;gt;400)); ?&gt;
</pre>
<p>So wp_oembed_get is function by which you can get embed HTML using oEmbed by passing link of video.</p>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/8zuCOCUHQIM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/12/06/wordpress-how-to-get-embed-html-of-video-using-oembed-by-video-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2011/12/06/wordpress-how-to-get-embed-html-of-video-using-oembed-by-video-link/</feedburner:origLink></item>
		<item>
		<title>Get Hostgator Hosting For First Month In 1 Cent</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/oGkPN51MBF4/</link>
		<comments>http://php-freelancer.in/2011/08/05/get-hostgator-hosting-for-first-month-in-1-cent/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 19:12:15 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[Coupon Codes]]></category>
		<category><![CDATA[1 cent hostgator hosting]]></category>
		<category><![CDATA[Hostgator Hosting in 1 cent]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=290</guid>
		<description><![CDATA[Hi Friends, Today I am going to provide you coupon code for best hosting services in 1 Cent only for one month. Hostgator is best hosting service I experienced in last four years, They have many plans for unlimited shared hosting, reseller hosting and also VPS plans which are best plans in hosting industry with &#8230; <a href="http://php-freelancer.in/2011/08/05/get-hostgator-hosting-for-first-month-in-1-cent/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, Today I am going to provide you coupon code for best hosting services in 1 Cent only for one month. Hostgator is best hosting service I experienced in last four years, They have many plans for unlimited shared hosting, reseller hosting and also VPS plans which are best plans in hosting industry with great support and great uptime. So today I am going to share one coupon code by which you can get first month hosting of hostgator in 1 cent.<span id="more-290"></span></p>
<p>Hostgator established in 2002, HostGator has been a world-leading provider of web hosting service. Although its office is in Houston, Texas, It provide top-notch service to clients from over 200 countries internationally with staff of over 600 employees. Hostgator offer <a title="Shared Web Hosting" href="http://www.hostgator.com/shared.shtml">Shared</a>, <a title="Reseller Hosting" href="http://www.hostgator.com/resellers.shtml">Reseller</a>, <a title="VPS Hosting" href="http://www.hostgator.com/vps-hosting/">VPS</a>, and <a title="Dedicated Servers" href="http://www.hostgator.com/dedicated.shtml">Dedicated</a> server packages for both beginners and professionals alike. Each of shared Web Hosting plans includes 24/7/365 support, a 99.9% uptime guarantee, and a 45-day money-back guarantee. If you would like to learn more, please visit <a title="About HostGator Web Hosting" href="http://www.hostgator.com/company.shtml">hostgator company page</a>.</p>
<p>So to get 25% discount on hostgator total price you just need to enter coupon code &#8220;1CENTHECOUPON&#8221; (without quotes) in coupon code box and you will get $9.94 off from your first month amount. So in this way you can get hosting for first month in 1 cent.</p>
<p>Let me Know if you have any problem in this coupon code.</p>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/oGkPN51MBF4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/08/05/get-hostgator-hosting-for-first-month-in-1-cent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2011/08/05/get-hostgator-hosting-for-first-month-in-1-cent/</feedburner:origLink></item>
		<item>
		<title>[WordPress] How To Repair Database In WordPress Or Automatic Database Optimizing</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/a7taJfywd2o/</link>
		<comments>http://php-freelancer.in/2011/06/28/how-to-repair-database-in-wordpress-or-automatic-database-optimizing/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 22:05:40 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Automatic Database Optimizing]]></category>
		<category><![CDATA[Repair Database In Wordpress]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=277</guid>
		<description><![CDATA[Hi Friends, Some days ago I was searching to optimize tips of database for wordpress blog and got so many tips to make it optimized and also got so many plugins to make it optimize and then finally I got one tip from wordpress codex for &#8220;Automatic Database Optimizing&#8221; and I was not aware of &#8230; <a href="http://php-freelancer.in/2011/06/28/how-to-repair-database-in-wordpress-or-automatic-database-optimizing/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, Some days ago I was searching to optimize tips of database for <a href="http://wordpress.org/" class="kblinker" title="More about wordpress &raquo;">wordpress</a> blog and got so many tips to make it optimized and also got so many plugins to make it optimize and then finally I got one tip from wordpress codex for &#8220;Automatic Database Optimizing&#8221; and I was not aware of this thing before and might be you also not knowing this thing that WordPress providing functionality by which your database automatically repair periodically to optimize database.<span id="more-277"></span></p>
<p>So if you want to enable this functionality just open wp-config.php file exists in root of wordpress site and then simply added below line anywhere :</p>
<pre class="brush: php; title: ; notranslate">
define('WP_ALLOW_REPAIR', true);
</pre>
<p>The script can be found at {$your_site}/wp-admin/maint/repair.php, So If you want to run it manually you can run it by go to http://www.yoursite.com/wp-admin/maint/repair.php.</p>
<p>Also Please Note: That this define enables the functionality, The user does not need to be logged in to access this functionality when this define is set. This is because its main intent is to repair a corrupted database, Users can often not login when the database is corrupt.</p>
<p>I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.</p>
<blockquote><p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than  4 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p></blockquote>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/a7taJfywd2o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/06/28/how-to-repair-database-in-wordpress-or-automatic-database-optimizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2011/06/28/how-to-repair-database-in-wordpress-or-automatic-database-optimizing/</feedburner:origLink></item>
		<item>
		<title>[Magento] How To Fetch Products Of Specific Category In Magento</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/XZYUKxlFkUQ/</link>
		<comments>http://php-freelancer.in/2011/06/28/how-to-fetch-products-of-specific-category-in-magento/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 21:47:07 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Fetch Products Of Specific Category]]></category>
		<category><![CDATA[Get Products Of Specific Category]]></category>
		<category><![CDATA[retrive Products Of Specific Category]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=273</guid>
		<description><![CDATA[Hi Friends, Some days ago I was working on one magento project in which I need to get products of a specific category, Magento is best eCommerce software and having kostly all functionlity yo retrive data, so I search about it and got one solution to get/fetch/retrive products of specific category. We need to use &#8230; <a href="http://php-freelancer.in/2011/06/28/how-to-fetch-products-of-specific-category-in-magento/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, Some days ago I was working on one magento project in which I need to get products of a specific category, Magento is best eCommerce software and having kostly all functionlity yo retrive data, so I search about it and got one solution to get/fetch/retrive products of specific category. We need to use 2 line of code to get products  from particular category.<span id="more-273"></span></p>
<p>Here is code to get particular category products :</p>
<pre class="brush: php; title: ; notranslate">
$cObj = Mage::getModel(‘catalog/category’)-&gt;load($categoryId);
$productObj = $cObj-&gt;getProductCollection()-&gt;getData();
</pre>
<p>In above code in first line $categoryId is category id for which you want to fetch products. So just pass category id in this code and you will get products object in $productObj.</p>
<p>I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.</p>
<blockquote><p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than  4 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p></blockquote>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/XZYUKxlFkUQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/06/28/how-to-fetch-products-of-specific-category-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2011/06/28/how-to-fetch-products-of-specific-category-in-magento/</feedburner:origLink></item>
		<item>
		<title>PHP Formatter – PHP Beautifier – PHP Pretty Printer – Format Your PHP Code</title>
		<link>http://feedproxy.google.com/~r/PhpFreelancer/~3/HuCFVugOPq8/</link>
		<comments>http://php-freelancer.in/2011/06/16/php-formatter-php-beautifier-php-pretty-printer-format-your-php-code/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 20:34:34 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Format Your PHP Code]]></category>
		<category><![CDATA[PHP Beautifier]]></category>
		<category><![CDATA[PHP Formatter]]></category>
		<category><![CDATA[PHP Pretty Printer]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=270</guid>
		<description><![CDATA[Hi Friends, I am working from last 5 years on PHP and we all know that while make code we have to do so much debugging to make code work, So after complete project if we see our files then we found that files are having less code but comments and debugging code more . &#8230; <a href="http://php-freelancer.in/2011/06/16/php-formatter-php-beautifier-php-pretty-printer-format-your-php-code/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi Friends, I am working from last 5 years on PHP and we all know that while make code we have to do so much debugging to make code work, So after complete project if we see our files then we found that files are having less code but comments and debugging code more . I am using one tool to remove all comments, make proper commenting, remove spaces between lines etc.. which we can call PHP Formatter &#8211; PHP Beautifier &#8211; PHP Pretty Printer.<span id="more-270"></span></p>
<p>Below is URL of PHP Formatter :</p>
<p><a href="http://beta.phpformatter.com/" target="_blank">PHP Formatter - PHP Beautifier &#8211; PHP Pretty Printer</a></p>
<p>This PHP Formatter having so many options like :</p>
<dt><label for="indent_style">- Indentation style</label></dt>
<dt><label for="indent_style">- Remove all comments<br />
- Remove empty lines<br />
- Align assignments statements nicely<br />
- Put a comment with the condition after if, while, for, foreach, declare and catch statements</label></dt>
<dt>- Remove lines with just a semicolon (;)<br />
- Make normal comments (//) from perl comments (#)<br />
- Make long opening tag (&lt;?php) from short one (&lt;?)</dt>
<dt>- Space inside brackets &#8211; ( )<br />
- Space inside empty brackets &#8211; ( )<br />
- Space inside block brackets &#8211; [ ]<br />
- Space inside empty block brackets &#8211; [ ]</dt>
<dt> </dt>
<dt>So this php formatter is best I ever used and above is features which is very useful by which you can make your file format according to your need.</dt>
<p>I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.</p>
<blockquote><p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than  4 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p></blockquote>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<img src="http://feeds.feedburner.com/~r/PhpFreelancer/~4/HuCFVugOPq8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/06/16/php-formatter-php-beautifier-php-pretty-printer-format-your-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://php-freelancer.in/2011/06/16/php-formatter-php-beautifier-php-pretty-printer-format-your-php-code/</feedburner:origLink></item>
	</channel>
</rss>
