<?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>How To PHP - PHP Technology, PHP Tutorial, Database Tutorials, CMS System</title>
	<atom:link href="http://www.phpmind.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmind.com/blog</link>
	<description>Future of web development</description>
	<lastBuildDate>Fri, 04 May 2012 20:59:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to restrict directory listing using .htaccess</title>
		<link>http://www.phpmind.com/blog/2012/05/how-to-restrict-directory-listing-using-htaccess/</link>
		<comments>http://www.phpmind.com/blog/2012/05/how-to-restrict-directory-listing-using-htaccess/#comments</comments>
		<pubDate>Fri, 04 May 2012 20:59:11 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1111</guid>
		<description><![CDATA[Add these 2 lines in your .htaccess file. Create if already not exisit in your server and put in root level. You don&#8217;t have to restart Apache server. View Code PHPIndexIgnore * Options -Indexes]]></description>
			<content:encoded><![CDATA[<p>Add these 2 lines in your .htaccess file. Create if already not exisit in your server and put in root level.<br />
You don&#8217;t have to restart Apache server.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1111code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p11112"><td class="code" id="p1111code2"><pre class="php" style="font-family:monospace;">IndexIgnore <span style="color: #339933;">*</span>
Options <span style="color: #339933;">-</span>Indexes</pre></td></tr></table></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2012%2F05%2Fhow-to-restrict-directory-listing-using-htaccess%2F&amp;title=How%20to%20restrict%20directory%20listing%20using%20.htaccess" id="wpa2a_2"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2012/05/how-to-restrict-directory-listing-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Submit form through PHP CURL ?</title>
		<link>http://www.phpmind.com/blog/2012/05/how-to-submit-form-through-php-curl/</link>
		<comments>http://www.phpmind.com/blog/2012/05/how-to-submit-form-through-php-curl/#comments</comments>
		<pubDate>Fri, 04 May 2012 20:41:26 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[CURL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1106</guid>
		<description><![CDATA[Last week I was working with salesforce form to collect data from third party website. If you have to just submit form its easy salesforce does not restrict to use CURL in order to post data but my requirement was to post salesforce from data and store that data in my database too. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I was working with salesforce form to collect data from third party website. If you have to just submit form its easy salesforce does not restrict to use CURL in order to post data but my requirement was to post salesforce from data and store that data in my database too. This is easy and simple and has a lot of ways to do.<br />
Now I would like to show you PHP CURL way to post form data. You can use PHP Jquery and Ajax to make it more fancy. But I want to keep it simple.<br />
Step 1 -<br />
I am using one sales force form as example.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1106code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p11065"><td class="code" id="p1106code5"><pre class="html" style="font-family:monospace;">&lt;form action=&quot;form-action-curl.php&quot; method=&quot;POST&quot;&gt;
&lt;input type=hidden name=&quot;oid&quot; value=&quot;00D400000009mUU&quot;&gt;
&lt;input type=hidden name=&quot;retURL&quot; value=&quot;http://thank-you.html&quot;&gt;
&lt;label for=&quot;first_name&quot;&gt;First Name&lt;/label&gt;&lt;input  id=&quot;first_name&quot; maxlength=&quot;40&quot; name=&quot;first_name&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label for=&quot;last_name&quot;&gt;Last Name&lt;/label&gt;&lt;input  id=&quot;last_name&quot; maxlength=&quot;80&quot; name=&quot;last_name&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label for=&quot;street&quot;&gt;Address&lt;/label&gt;&lt;textarea name=&quot;street&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
&lt;label for=&quot;city&quot;&gt;City&lt;/label&gt;&lt;input  id=&quot;city&quot; maxlength=&quot;40&quot; name=&quot;city&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label for=&quot;zip&quot;&gt;Zip&lt;/label&gt;&lt;input  id=&quot;zip&quot; maxlength=&quot;20&quot; name=&quot;zip&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;&lt;input  id=&quot;email&quot; maxlength=&quot;80&quot; name=&quot;email&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;label for=&quot;phone&quot;&gt;Phone&lt;/label&gt;&lt;input  id=&quot;phone&quot; maxlength=&quot;40&quot; name=&quot;phone&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot;&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>Step 2  -  This is standard PHP CURL script (form-action-curl.php) to post from you can use anywhere without any modification in from you can add more fields if you need.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1106code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p11066"><td class="code" id="p1106code6"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">//Initialize the $query_string variable for later use</span>
<span style="color: #000088;">$query_string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//If there are POST variables</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Initialize the $kv array for later use</span>
<span style="color: #000088;">$kv</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//For each POST variable as $name_of_input_field =&gt; $value_of_input_field</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Set array element for each POST variable (ie. first_name=Arsham)</span>
<span style="color: #000088;">$kv</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;=&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/stripslashes"><span style="color: #990000;">stripslashes</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Create a query string with join function separted by &amp;</span>
<span style="color: #000088;">$query_string</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$kv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Check to see if cURL is installed ...</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'curl_init'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry cURL is not installed!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//The original form action URL from Step 2 :)</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Open cURL connection</span>
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_init"><span style="color: #990000;">curl_init</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Set the url, number of POST vars, POST data</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$kv</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #000088;">$query_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Set some settings that make it all work :)</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/curl_setopt"><span style="color: #990000;">curl_setopt</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_FOLLOWLOCATION<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Execute SalesForce web to lead PHP cURL</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/curl_exec"><span style="color: #990000;">curl_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//close cURL connection</span>
<a href="http://www.php.net/curl_close"><span style="color: #990000;">curl_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'ok'</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//echo '&amp;lt;script&amp;gt;alert(&quot;Posted -- &quot;)&amp;lt;/script&amp;gt;';</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">// Here you can write mysql query to insert data in table.</span>
&nbsp;
<span style="color: #000088;">$insert_tbl_index_page</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;insert into tbl_form_data(first_name,last_name,street,city,zip,phone,email)values('<span style="color: #006699; font-weight: bold;">$first_name</span>','<span style="color: #006699; font-weight: bold;">$last_name</span>','<span style="color: #006699; font-weight: bold;">$street</span>','<span style="color: #006699; font-weight: bold;">$city</span>','<span style="color: #006699; font-weight: bold;">$zip</span>','<span style="color: #006699; font-weight: bold;">$phone</span>','<span style="color: #006699; font-weight: bold;">$email</span>')&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2012%2F05%2Fhow-to-submit-form-through-php-curl%2F&amp;title=How%20to%20Submit%20form%20through%20PHP%20CURL%20%3F" id="wpa2a_4"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2012/05/how-to-submit-form-through-php-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boost your website performance with &#8220;Page Speed&#8221; tool.</title>
		<link>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/</link>
		<comments>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:30:01 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1095</guid>
		<description><![CDATA[Page Speed is a family of tools for optimizing the performance of web pages. The Page Speed browser extensions, available for Chrome and Firefox, allow you to evaluate the performance of your web pages and to get suggestions on how to improve them. Page Speed Tool Download]]></description>
			<content:encoded><![CDATA[<p>Page Speed is a family of tools for optimizing the performance of web pages.<br />
The Page Speed browser extensions, available for Chrome and Firefox, allow you to evaluate the performance of your web pages and to get suggestions on how to improve them.<br />
<a href="http://code.google.com/speed/page-speed/download.html" title="Page Speed Tool Download" target="_blank">Page Speed Tool Download</a></p>
<p><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/_MuVoabSLeY&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/_MuVoabSLeY&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed></object></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F10%2Fboost-your-website-performance-with-page-speed-tool%2F&amp;title=Boost%20your%20website%20performance%20with%20%26%238220%3BPage%20Speed%26%238221%3B%20tool." id="wpa2a_6"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development With HTML5</title>
		<link>http://www.phpmind.com/blog/2011/09/development-with-html5/</link>
		<comments>http://www.phpmind.com/blog/2011/09/development-with-html5/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 20:21:31 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1093</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/BatqHLWy5NE" frameborder="0" allowfullscreen></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F09%2Fdevelopment-with-html5%2F&amp;title=Development%20With%20HTML5" id="wpa2a_8"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/09/development-with-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developer Tools for Chrome</title>
		<link>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/</link>
		<comments>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 20:04:36 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1090</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/nOEw9iiopwI" frameborder="0" allowfullscreen></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F09%2Fdeveloper-tools-for-chrome%2F&amp;title=Developer%20Tools%20for%20Chrome" id="wpa2a_10"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Show hide content using core JavaScript ?</title>
		<link>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/</link>
		<comments>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/#comments</comments>
		<pubDate>Wed, 11 May 2011 22:36:28 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1082</guid>
		<description><![CDATA[Today I was working on another website and had very long text/content and thought to use Jquery, there are several examples given on internet. I tried to use some of them of course they are very simple but because of some reason it didn&#8217;t work for me either in IE and chrome. So decided to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was working on another website and had very long text/content and thought to use Jquery, there are several examples given on internet. I tried to use some of them of course they are very simple but because of some reason it didn&#8217;t work for me either in IE and chrome.<br />
So decided to compile my own show hide JavaScript which is based on DOM!<br />
Here is very simple code and it works everywhere, Firefox, Internet Explorer, Chrome, Safari etc.</p>
<p>Steps are self explanatory.<br />
A.	Use JavaScript code<br />
B.	Use Css Class<br />
C.	See the example and compile your own!</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1082code9'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10829"><td class="code" id="p1082code9"><pre class="js" style="font-family:monospace;">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
function PM_show_Hide(pmID) {
   if (document.getElementById(pmID)) {
      if (document.getElementById(pmID+'-show').style.display != 'none') {
         document.getElementById(pmID+'-show').style.display = 'none';
         document.getElementById(pmID).style.display = 'block';
      }
      else {
         document.getElementById(pmID+'-show').style.display = 'inline';
         document.getElementById(pmID).style.display = 'none';
      }
   }
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
   .more-pm {
      display: none;
&lt;/style&gt;</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1082code10'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p108210"><td class="code" id="p1082code10"><pre class="html" style="font-family:monospace;">&nbsp;
&lt;p&gt;This is first paragraph of my big content. 
&lt;a href=&quot;#&quot; id=&quot;PM-show&quot; class=&quot;showLink&quot; onclick=&quot;PM_show_Hide('PM');return false;&quot;&gt;Click to See more.&lt;/a&gt; &lt;p&gt;
&nbsp;
&lt;div id=&quot;PM&quot; class=&quot;more-PM&quot;&gt;
         &lt;p&gt;Here is your hidden text which you want to hide!! Copy your text here!&lt;/p&gt;
         &lt;p&gt;&lt;a href=&quot;#&quot; id=&quot;PM-hide&quot; class=&quot;hideLink&quot; onclick=&quot;PM_show_Hide('PM');return false;&quot;&gt;Click to hide this  content.&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;</pre></td></tr></table></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F05%2Fhow-to-show-hide-content-using-core-javascript%2F&amp;title=How%20to%20Show%20hide%20content%20using%20core%20JavaScript%20%3F" id="wpa2a_12"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to upgrade  Drupal ?</title>
		<link>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/</link>
		<comments>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 22:54:22 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1074</guid>
		<description><![CDATA[Drupal is always releasing security updates every now and then. PHP communality called it patches! So here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application. 1. Download latest release of Drupal package from Drupal site. 2. Put your PHP Drupal site in maintenance mode [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal is always releasing security updates  every now and then.<br />
PHP communality called it patches!<br />
So here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application.<br />
1.	Download latest release of  Drupal package from Drupal site.<br />
2.	Put your PHP Drupal site in maintenance  mode (offline)<br />
3.	Take a database backup/export using any MYSQL  tools,  like phpmyadmin (I use it in MAMP environment ).  Same thing you can do by command line if you want to do so.<br />
(mysql –u  ROOT –p  YOURPASSWORD  yourdatabasename  &gt; exporteddbname.sql)<br />
4.	 Make backup of your Drupal  application folder.<br />
5.	Now it is time to copy all files – untar or unzip your downloaded new Drupal patch package.<br />
6.	Copy all files and folders Except “Site folder”, “.htaccess” file and “robot.txt”,  you can have custom configuration and setting to these files and folder so it is good not to overwrite these files and folder.</p>
<p><img class="aligncenter size-full wp-image-1079" title="phpmind-how-to-update-drupal" src="http://www.phpmind.com/blog/wp-content/uploads/2011/04/phpmind-how-to-update-drupal1.jpg" alt="" width="488" height="487" /><br />
7.	Run CRON  in your Drupal application.<br />
8.	Run update.php  it will detect automatically type of database and schema you are using  and update it.  It takes few seconds, so please don’t halt upgrading process.</p>
<p>http://localhost/drupal/update.php</p>
<p>9.	If above process is successful, put back your site in (Online mode) live mode.<br />
10.	See status report and you will notice your Drupal is updated.</p>
<p>Your Drupal application is safe now !</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F04%2Fhow-to-upgrade-drupal%2F&amp;title=How%20to%20upgrade%20%20Drupal%20%3F" id="wpa2a_14"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is Windows Azure?</title>
		<link>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/</link>
		<comments>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 21:39:37 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[PHP Windows]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1072</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/twFl0iLRbyk&#038;rel=0&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/twFl0iLRbyk&#038;rel=0&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390"></embed></object></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fwhat-is-windows-azure%2F&amp;title=What%20is%20Windows%20Azure%3F" id="wpa2a_16"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is difference between setInterval () and  setTimeout () ?</title>
		<link>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/</link>
		<comments>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:05:32 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1069</guid>
		<description><![CDATA[setTimeout execute javascript statement AFTER x interval. For example &#8211; setTimeout(“execute_something();”, 2000); This is execute function execute_something() after 2 seconds. setInterval execute javascript statement EVERY x interval. For example &#8211; setInterval(“execute_something();”, 2000); This is execute function execute_something() in every 2 seconds.]]></description>
			<content:encoded><![CDATA[<p>setTimeout execute javascript statement AFTER x interval.<br />
For example &#8211; setTimeout(“execute_something();”, 2000);<br />
This is execute function execute_something() after 2 seconds. </p>
<p>setInterval execute javascript statement EVERY x interval.<br />
For example &#8211; setInterval(“execute_something();”, 2000);<br />
This is execute function execute_something() in every 2 seconds. </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fwhat-is-difference-between-setinterval-and-settimeout%2F&amp;title=What%20is%20difference%20between%20setInterval%20%28%29%20and%20%20setTimeout%20%28%29%20%3F" id="wpa2a_18"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use Firebug within Google Chrome?</title>
		<link>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/</link>
		<comments>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 23:59:31 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Google Hacks]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1065</guid>
		<description><![CDATA[Google Chrome does not support plug-ins, there is Firebug-like too already available built within Google Chrome. That is called “Inspect element” just right click on page anywhere and click on “Inspect element” menu command. It will open a new panel like firebug. It works well for CSS debugging and you can change CSS in real [...]]]></description>
			<content:encoded><![CDATA[<p>Google Chrome does not support plug-ins, there is Firebug-like too already available built within Google Chrome. That is called “Inspect element” just right click on page anywhere and click on “Inspect element” menu command. It will open a new panel like firebug.  It works well for CSS debugging and you can change CSS in real time like firebug but JavaScript debugging is not very good supported.<br />
<img src="http://www.phpmind.com/blog/wp-content/uploads/2011/02/phpmind-firebug-chrome.jpg" alt="" title="phpmind-firebug-chrome" width="634" height="268" class="alignleft size-full wp-image-1067" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fhow-to-use-firebug-within-google-chrome%2F&amp;title=How%20to%20use%20Firebug%20within%20Google%20Chrome%3F" id="wpa2a_20"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

