<?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>Quick Solution Providers</title>
	<atom:link href="http://www.quicksolutionproviders.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quicksolutionproviders.com</link>
	<description>Complete Solution for your problems under one roof</description>
	<lastBuildDate>Sun, 17 Jan 2010 07:18:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How can I fetch data from one database on a server and store them in other database on another server using PHP?</title>
		<link>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:17:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Experts]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[transfer data]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=332</guid>
		<description><![CDATA[How can we transfer data from one database to another]]></description>
			<content:encoded><![CDATA[<p>Many times we need to transfer data from one database exists on a server to another database exists on another server ,in that case we can use fourth parameter of mysql_connect function which is an optional parameter. If fourth parameter is true then it will create a new link for another database connection even if we have created database connection earlier with same detail with same database or with another database. Lets discuss how it works by an example.<br />
Function syntax:<br />
<strong>mysql_connect ( [string $server [, string $username [, string $password [, bool $new_link [, int $client_flags]]]]] )</strong></p>
<p>Now Connect database1 using host, username and password as given below<br />
<strong>$db1 = mysql_connect(”host”,”user”,”pwd”)<br />
mysql_select_db(&#8217;db1name&#8217;, $db1);<br />
Fire a query on db1<br />
$res1 = mysql_query(”query”,$db1);</strong></p>
<p>Connect database2 using host, username and password and include fourth parameter true as given below<br />
<strong>$db2 = mysql_connect(”host”,”user”,”pwd”, true)<br />
mysql_select_db(&#8217;db2name&#8217;, $db2);<br />
Fire a query on db2<br />
$res2 = mysql_query(”query”,$db2);</strong></p>
<p>Now both link will remain live.If you will not use fourth parameter than setting of $db1 will be overwrite by $db2 so you can not use both objects without using this fourth parameter as true.Now after using fourth parameter you can use both database1 and database2 on same page.You can fetch data from first database and than insert that data in second database .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript validation to check only one checkbox among multiple checkboxes</title>
		<link>http://www.quicksolutionproviders.com/php/javascript-validation-to-check-only-one-checkbox-among-multiple-checkboxes/</link>
		<comments>http://www.quicksolutionproviders.com/php/javascript-validation-to-check-only-one-checkbox-among-multiple-checkboxes/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 10:30:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=325</guid>
		<description><![CDATA[Suppose you have a page with the listing of all the users registered on your site. Every record has a check box with it to select that record . Client want that user can select only one record at a time from that list and user must select one record for further action. Now what [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you have a page with the listing of all the users registered on your site. Every record has a check box with it to select that record . Client want that user can select only one record at a time from that list and user must select one record for further action. Now what to do . Don&#8217;t worry this is not so hard , you can found the solution on web for this or you can write your logic for this. But i am giving here so you can find it very easily.Here it is:<br />
<span id="more-325"></span><br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function checkBoxValidationForSingle(checkBoxName)<br />
{</p>
<p>var name=checkBoxName+&#8217;[]&#8216;;<br />
var hasChecked=false;<br />
var chk=document.getElementsByName(name);<br />
for(var i=0, c=0; i&lt; chk.length ; i++)<br />
{<br />
if(chk[i].checked==true)<br />
{<br />
c++;<br />
var cValue = chk[i].value;<br />
hasChecked = true;<br />
}<br />
}<br />
if(!hasChecked)<br />
{<br />
alert(&#8217;Please select checkBox&#8217;);<br />
return false;<br />
}else if(c &gt; 1){<br />
alert(&#8217;Please select only one checkbox&#8217;);<br />
return false;<br />
}else {<br />
return cValue;<br />
return true;<br />
}<br />
}<br />
&lt;/script&gt;</p>
<p><a href="http://www.quicksolutionproviders.com/check_select.html" target="_blank">see live example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/javascript-validation-to-check-only-one-checkbox-among-multiple-checkboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript validation to check if two combo boxes has same value</title>
		<link>http://www.quicksolutionproviders.com/javascript/javascript-validation-to-check-if-two-combo-boxes-has-same-value/</link>
		<comments>http://www.quicksolutionproviders.com/javascript/javascript-validation-to-check-if-two-combo-boxes-has-same-value/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:54:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript validation]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=321</guid>
		<description><![CDATA[Suppose you have a form with 5 different combo boxes and those combo boxes have same data. Now client want that you can not select same data in 2 combo boxes.Also you have to select all 5 combo boxes.
How to do this by javascript. ok let me show you these 2 functions. I made these [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you have a form with 5 different combo boxes and those combo boxes have same data. Now client want that you can not select same data in 2 combo boxes.Also you have to select all 5 combo boxes.<br />
How to do this by javascript. ok let me show you these 2 functions. I made these 2 functions when i faced this problem in one of my website , now i am giving this to you. Have it and enjoy the programming.<br />
<span id="more-321"></span><br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function check()<br />
{<br />
var listTotal=document.getElementsByName(&#8217;list[]&#8216;);<br />
var count=listTotal.length;<br />
var state=true;<br />
//check for null<br />
for(i=0;i&lt;count;i++)<br />
{<br />
if(listTotal[i].value==0)<br />
{</p>
<p>alert(&#8217;Please select valid options.&#8217;);<br />
return false;<br />
}<br />
}</p>
<p>}<br />
// check double vlaue selected<br />
function checkOptions(val,id)<br />
{<br />
var listTotal=document.getElementsByName(&#8217;list[]&#8216;);<br />
var count=listTotal.length;<br />
//var countryPreferState=true;<br />
for(i=0;i&lt;count;i++)<br />
{<br />
if(id!=(parseInt(i+1)))<br />
if(listTotal[i].value==val)<br />
{<br />
alert(&#8217;Please select another options field.&#8217;);<br />
listTotal[parseInt(id-1)].value=0;<br />
return false;<br />
}<br />
}<br />
}<br />
&lt;/script&gt;</p>
<p>First function check() is putting a validation whether user has selected any value in all 5 combo boxes or not.<br />
Second function checkOptions() is checking if user has selected same value in 2 combo boxes.In this function first argument is value of that combo adn second argument is number of that combo box.</p>
<p>Example:</p>
<p>&lt;form method=&#8221;get&#8221; action=&#8221;" onsubmit=&#8221;return check();&#8221;&gt;<br />
First   :  &lt;select name=&#8221;list[]&#8221; id=&#8221;list1&#8243; onChange=&#8221;return checkOptions(this.value,1);&#8221; &gt;<br />
&lt;option value=&#8221;0&#8243;&gt;Select&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;First&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Second&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Three&lt;/option&gt;<br />
&lt;option value=&#8221;4&#8243;&gt;Four&lt;/option&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;Five&lt;/option&gt;<br />
&lt;/select&gt;&lt;br /&gt;<br />
Second  : &lt;select name=&#8221;list[]&#8221; id=&#8221;list2&#8243; onChange=&#8221;return checkOptions(this.value,2);&#8221;&gt;<br />
&lt;option value=&#8221;0&#8243;&gt;Select&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;First&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Second&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Three&lt;/option&gt;<br />
&lt;option value=&#8221;4&#8243;&gt;Four&lt;/option&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;Five&lt;/option&gt;<br />
&lt;/select&gt;&lt;br /&gt;<br />
Third  : &lt;select name=&#8221;list[]&#8221; id=&#8221;list3&#8243; onChange=&#8221;return checkOptions(this.value,3);&#8221; &gt;<br />
&lt;option value=&#8221;0&#8243;&gt;Select&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;First&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Second&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Three&lt;/option&gt;<br />
&lt;option value=&#8221;4&#8243;&gt;Four&lt;/option&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;Five&lt;/option&gt;<br />
&lt;/select&gt;&lt;br /&gt;<br />
Fourth  : &lt;select name=&#8221;list[]&#8221; id=&#8221;list4&#8243; onChange=&#8221;return checkOptions(this.value,4);&#8221;&gt;<br />
&lt;option value=&#8221;0&#8243;&gt;Select&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;First&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Second&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Three&lt;/option&gt;<br />
&lt;option value=&#8221;4&#8243;&gt;Four&lt;/option&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;Five&lt;/option&gt;<br />
&lt;/select&gt;&lt;br /&gt;<br />
Fifth  : &lt;select name=&#8221;list[]&#8221; id=&#8221;list5&#8243; onChange=&#8221;return checkOptions(this.value,5);&#8221;&gt;<br />
&lt;option value=&#8221;0&#8243;&gt;Select&lt;/option&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;First&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Second&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Three&lt;/option&gt;<br />
&lt;option value=&#8221;4&#8243;&gt;Four&lt;/option&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;Five&lt;/option&gt;<br />
&lt;/select&gt;&lt;br /&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;Submit&#8221; /&gt;<br />
&lt;/form&gt;</p>
<p><a href="http://www.quicksolutionproviders.com/comboValidation.html" target="_blank">see live example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/javascript/javascript-validation-to-check-if-two-combo-boxes-has-same-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to unzip a zip file using php</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-unzip-a-zip-file-using-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-unzip-a-zip-file-using-php/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 12:38:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[create directory]]></category>
		<category><![CDATA[delete zip]]></category>
		<category><![CDATA[directory permission]]></category>
		<category><![CDATA[directory structure]]></category>
		<category><![CDATA[folder permission]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mkdir]]></category>
		<category><![CDATA[overwrite]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[subdirectory]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[zip_open]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=312</guid>
		<description><![CDATA[Very exciteing and challenging work!.You are thinking that what is exciteing and challenging in this work but i am talking about how to unzip a zip file using php.
Some times programmer has the requirment to select a zip file and unzip all the files and folder at a particular location and then delete that zip [...]]]></description>
			<content:encoded><![CDATA[<p>Very exciteing and challenging work!.You are thinking that what is exciteing and challenging in this work but i am <strong>talking about how to unzip a zip file using php</strong>.<br />
Some times programmer has the requirment to select a zip file and unzip all the files and folder at a particular location and then delete that zip file.</p>
<p>I faced this problem first time when i was making a file manager in php . That was not just a file manger but also a full featured ftp client.I tried to search on<br />
google but not found anything .finally i got a small help from google and than i made a good function for you all to unzip a zip file.<br />
<span id="more-312"></span><br />
&lt;?php<br />
function unzipnew($src_file, $dest_dir=false, $create_zip_name_dir=true, $overwrite=true, $delzip=true)<br />
{<br />
if ($zip = zip_open($src_file))<br />
{<br />
if ($zip)<br />
{<br />
$splitter = ($create_zip_name_dir === true) ? &#8220;.&#8221; : &#8220;/&#8221;;<br />
if ($dest_dir === false) $dest_dir = substr($src_file, 0, strrpos($src_file, $splitter)).&#8221;/&#8221;;<br />
// else $dest_dir = $desdir.&#8221;/&#8221;;</p>
<p>// Create the directories to the destination dir if they don&#8217;t already exist<br />
create_dirs($dest_dir);</p>
<p>// For every file in the zip-packet<br />
while ($zip_entry = zip_read($zip))<br />
{<br />
// Now we&#8217;re going to create the directories in the destination directories<br />
// If the file is not in the root dir<br />
$pos_last_slash = strrpos(zip_entry_name($zip_entry), &#8220;/&#8221;);<br />
if ($pos_last_slash !== false)<br />
{<br />
// Create the directory where the zip-entry should be saved (with a &#8220;/&#8221; at the end)<br />
create_dirs($dest_dir.substr(zip_entry_name($zip_entry), 0, $pos_last_slash+1));<br />
}<br />
// Open the entry<br />
if (zip_entry_open($zip,$zip_entry,&#8221;r&#8221;))<br />
{</p>
<p>// The name of the file to save on the disk<br />
$file_name = $dest_dir.zip_entry_name($zip_entry);<br />
// Check if the files should be overwritten or not<br />
if ($overwrite === true || $overwrite === false &amp;&amp; !is_file($file_name))<br />
{<br />
// Get the content of the zip entry<br />
$fstream = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));</p>
<p>file_put_contents($file_name, $fstream );<br />
// Set the rights<br />
chmod($file_name, 0777);<br />
echo &#8220;save: &#8220;.$file_name.&#8221;&lt;br /&gt;&#8221;;<br />
}<br />
// Close the entry<br />
zip_entry_close($zip_entry);<br />
}<br />
}<br />
// Close the zip-file<br />
zip_close($zip);<br />
if($delzip) unlink($src_file);<br />
}<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
return true;<br />
}</p>
<p>/** * This function creates recursive directories if it doesn&#8217;t already exist<br />
* * @param String  The path that should be created *  * @return  void */<br />
function create_dirs($path)<br />
{<br />
if (!is_dir($path))<br />
{<br />
$directory_path = &#8220;&#8221;;<br />
$directories = explode(&#8221;/&#8221;,$path);<br />
array_pop($directories);</p>
<p>foreach($directories as $directory)<br />
{<br />
$directory_path .= $directory.&#8221;/&#8221;;<br />
if (!is_dir($directory_path))<br />
{<br />
mkdir($directory_path);<br />
@chmod($directory_path, 0777);<br />
}<br />
}<br />
}<br />
}</p>
<p>?&gt;</p>
<p>Lets talk one by one:<br />
The function &#8216;<strong>unzipnew</strong>&#8216; unzip a zip file with same name and if file or folder already exists with same name then you have option to overwrite or not overwrite that.<br />
<strong>syntex : unzipnew($src_file, $dest_dir=false, $create_zip_name_dir=true, $overwrite=true,$delzip=true)</strong><br />
first argument is $src_file , this is the full path of zip file to which we have to unzip.<br />
second argument is $dest_dir and that should be false every time.<br />
Third one is $create_zip_name_dir.$create_zip_name_dir=true means code will create a sub directory with the same name as main directory, means if u are unzipping abcd.zip then directory structure will be abcd/abcd/subfolders and files.$create_zip_name_dir=false means directory structure will be same as zip means abcd/subfolders and files.<br />
forth argument is $overwrite means if there is already a folder with same name than we have to overwrite the or not.<br />
Fifth is $delzip measn after unzip we have to delete the zip file or not.If true then it will delete the zip.</p>
<p>Now second function is <strong>create_dirs($path)</strong>.This function has only one argument adn we are using this function in &#8216;unzipnew&#8217; function to create directory structure .You can use this function independently if you want.</p>
<p><strong>Now I show you how to use these functions below:</strong></p>
<p>first put these 2 functions in a file and include that file in main file like below.Then put a full path of that zip file in a variable and then call the function &#8216;unzipnew&#8217; with all required parameters.</p>
<p><strong>&lt;?php<br />
include(&#8221;functions/zip_funct.php&#8221;);<br />
$dirLocal =&#8217;/home/work/anoop/test.zip&#8217;;<br />
unzipnew($dirLocal, false, true, true,true)<br />
?&gt;</strong></p>
<p>In the function &#8216;create_dirs&#8217; we are making directory structure and giving 0777 permission to each directory so we can write folders and files in those directories.But may be your server has no permission to edit the rules then you have to give the 0777 permission using ftp or cpanel.</p>
<p><strong>Important note: we are using zip functions of php&#8217;s php_zip.dll. so php_zip.dll must be installed on that server. php_zip.dll is different for windows and Linux so download latest dll according to server.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-unzip-a-zip-file-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to download a file without display download request</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 10:20:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[Content type]]></category>
		<category><![CDATA[Content-Disposition]]></category>
		<category><![CDATA[direct download]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filename]]></category>
		<category><![CDATA[pdf download]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=297</guid>
		<description><![CDATA[Usually when we try to download something from a server we get a confirmation request whether you want to save the file or open it.
To avoid this request you can use the below code and then user can directly download that file without any message.
First give a link or a button for user to download [...]]]></description>
			<content:encoded><![CDATA[<p>Usually when we try to download something from a server we get a confirmation request whether you want to save the file or open it.<br />
To avoid this request you can use the below code and then user can directly download that file without any message.</p>
<p>First give a link or a button for user to download and when they click redirect them to a file which will have the code below.</p>
<p><strong>suppose you want user to download a pdf file then first make a link like this:</strong></p>
<p><strong>&lt;a href=&#8221;javascript:void();&#8221; onClick=&#8221;location.href=&#8217;doc/document_download.php&#8217;&#8221;&gt;download pdf&lt;/a&gt;</strong></p>
<p><span id="more-297"></span></p>
<p>Then make a file document_download.php with the code below:</p>
<p>&lt;?php<br />
// We&#8217;ll be outputting a PDF<br />
header(&#8217;Content-type: application/pdf&#8217;);</p>
<p>// It will be called downloaded.pdf<br />
header(&#8217;Content-Disposition: attachment; filename=my.pdf&#8217;);</p>
<p>// The PDF source is in original.pdf<br />
readfile(&#8217;my.pdf&#8217;);</p>
<p>?&gt;</p>
<p><strong>Replace my.pdf with the name of your pdf.If you don&#8217;t want to hardcode the file name then you can send file name with the url like this:</strong></p>
<p>&lt;ahref=&#8221;javascript:void();&#8221; onClick=&#8221;location.href=&#8217;doc/document_download.php?fileName=my.pdf&#8217;&#8221;&gt;download pdf&lt;/a&gt;<br />
<strong>and then:</strong><br />
&lt;?php<br />
// We&#8217;ll be outputting a PDF<br />
header(&#8217;Content-type: application/pdf&#8217;);</p>
<p>// It will be called downloaded.pdf<br />
header(&#8217;Content-Disposition: attachment; filename=&#8221;&#8216;.$_REQUEST['fileName'].&#8217;&#8221;&#8216;);</p>
<p>// The PDF source is in original.pdf<br />
readfile($_REQUEST['fileName']);</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run code of php5 on a server with php4 using htaccess</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 09:52:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Experts]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[AddHandler]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=294</guid>
		<description><![CDATA[This is big question for beginners every time.Now as we know that php5 is in full flow but still there are lot of servers out there with php4 and if you upload your php5 code on those servers then it will be mess.May be your site will not run or any part or your will [...]]]></description>
			<content:encoded><![CDATA[<p>This is big question for beginners every time.Now as we know that php5 is in full flow but still there are lot of servers out there with php4 and if you upload your php5 code on those servers then it will be mess.May be your site will not run or any part or your will go down.But don&#8217;t worry friends , there are only 2 lines to put this problem far from you.<br />
Just put these 2 lines below in a htaccess file and put that htaccess at the root directory.</p>
<p><strong>AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4</strong></p>
<p>Now all the modules either they have written in php4 or php5 will work very well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess file at godaddy</title>
		<link>http://www.quicksolutionproviders.com/php/htaccess-at-godaddy/</link>
		<comments>http://www.quicksolutionproviders.com/php/htaccess-at-godaddy/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:10:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[644]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ASCII mode]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[godaddy server]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[rewrite rule]]></category>
		<category><![CDATA[rewrite rules]]></category>
		<category><![CDATA[search engine markting]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=286</guid>
		<description><![CDATA[Godaddy a big name in the world of internet and web hosting. There are thousand of websites hosted on godaddy.com. Lot of programmers have faced godaddy, may be they are experienced or fresher. In today&#8217;s programming world htaccess is a comman name but its always an advanced topic specially for beginners. As search engine markting [...]]]></description>
			<content:encoded><![CDATA[<p>Godaddy a big name in the world of internet and web hosting. There are thousand of websites hosted on godaddy.com. Lot of programmers have faced godaddy, may be they are experienced or fresher. In today&#8217;s programming world htaccess is a comman name but its always an advanced topic specially for beginners. As search engine markting is growing everyday , the use of htaccess is also growing . But there is difference between godaddy&#8217;s htaccess and other htaccess , not very much but that is important to know for everybody.If you are not familiar with the rules of godaddy&#8217;s htaccess then it will make headache for you.<br />
<span id="more-286"></span><br />
when i first time worked on Godaddy i put my head on the table , oh god my htaccess was not working on that server .On that day the demo was scheduled for my site and that damn htaccess killed my all happiness.Here I will not talk very much about htaccess rules but common problems with Godaddy&#8217;s htaccess.</p>
<p><strong>1.</strong>In lot of accounts at godaddy there are stil php4 working .This may be because of user don&#8217;t know about php4 or php5.Its not necessary that the person which is buying space on server must be a technical person.Our Lot of clients don&#8217;t know about php4 or php5 , they only know that their site has been made in php.But now a days php5 is very much in use and when you will upload a site made in php5 on server which has php4 then it may generate errors . If you faces this prob then just put these 2 lines at the top of your htaccess file and you will see the magic.</p>
<p><strong>AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4</strong></p>
<p><strong>These both lines can also be used to manage PHP file extensions.I tell you:<br />
By default, files with a .php extension run under PHP 4 and files with the .php5 extension run under PHP 5. The .htaccess file, located at the root of your site, can be used to change these default settings. The following entries in a directory&#8217;s .htaccess file designate .php files to run under PHP 5 and .php4 files to run under PHP 4.</strong></p>
<p><strong>2.</strong>Most important thing that always upload htaccess at godaddy using ASCII mode and change permission to 644.<br />
<strong>3.</strong>Make sure you create an .htaccess file using a plain text editor that doesn&#8217;t use word wrap.<br />
<strong>4.</strong>One problem i faced on godaddy when i used this line <strong>&#8220;RewriteRule ^((.*/cdirections|cdirections)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)?)$ community_directions.php?id=$3&amp;name=$4&#8243;</strong>. This line works very well at other servers but not at godaddy.This line rewrite the url like this www.yoursite.com/cdirections/rewrite-url.<br />
You can see a rule in this line &#8216;<strong>a-zA-Z0-9-_</strong>&#8216; , It means you can use chars from a-z , A-Z and 0-9 and &#8211; and _ in the url. After taking lot of time i found that when used on godaddy this rule was making another meaning . That was making an another range of words  &#8220;<strong>9-_</strong>&#8221; but actually this is not a range so it was making problem.finally i changed this and made this line and now its working fine.<br />
&#8220;<strong>RewriteRule ^((.*/cdirections|cdirections)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)?)$ community_directions.php?id=$3&amp;name=$4</strong>&#8221;</p>
<p>You can see the change in both lines.</p>
<p>so this is the summary of my exp. with godaddy&#8217;s htaccess.Just use these rules and feel happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/htaccess-at-godaddy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Latest news in php &#8211; What is new in PHP 5.3</title>
		<link>http://www.quicksolutionproviders.com/php/latest-news-in-php-what-is-new-in-php-5-3/</link>
		<comments>http://www.quicksolutionproviders.com/php/latest-news-in-php-what-is-new-in-php-5-3/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 05:28:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[bug fixes]]></category>
		<category><![CDATA[Class Constants]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[improvement]]></category>
		<category><![CDATA[latest development]]></category>
		<category><![CDATA[Latest news]]></category>
		<category><![CDATA[Letest Announcement]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Namespace Aliases]]></category>
		<category><![CDATA[namespaces]]></category>
		<category><![CDATA[PHP 5.3]]></category>
		<category><![CDATA[static binding]]></category>
		<category><![CDATA[use Keyword]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=280</guid>
		<description><![CDATA[This release of PHP 5.3 is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.
The key features of PHP 5.3.0 include:
* Support for namespaces
* Late static binding
* Lambda Functions and Closures
* Syntax additions: NOWDOC, ternary short cut &#8220;?:&#8221; and jump label (limited goto), __callStatic()
* Under the [...]]]></description>
			<content:encoded><![CDATA[<p>This release of PHP 5.3 is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.</p>
<p>The key features of PHP 5.3.0 include:</p>
<p>* Support for namespaces<br />
* Late static binding<br />
* Lambda Functions and Closures<br />
* Syntax additions: NOWDOC, ternary short cut &#8220;?:&#8221; and jump label (limited goto), __callStatic()<br />
* Under the hood performance improvements<br />
* Optional garbage collection for cyclic references<br />
* Optional mysqlnd PHP native replacement for libmysql<br />
* Improved Windows support including VC9 and experimental X64 binaries as well as portability to other supported    platforms</p>
<p><span id="more-280"></span><br />
* More consistent float rounding<br />
* Deprecation notices are now handled via E_DEPRECATED (part of E_ALL) instead of the E_STRICT error level<br />
* Several enhancements to enable more flexiblity in php.ini (and ini parsing in general)<br />
* New bundled extensions: ext/phar, ext/intl, ext/fileinfo, ext/sqlite3, ext/enchant<br />
* Over 140 bug fixes and improvements to PHP, in particular to: ext/openssl, ext/spl and ext/date<br />
* Namespaces for classes and functions<br />
* MySQL Native Driver<br />
* phar &#8211; PHp ARchive :- This is a cool new feature.  Think of it like an archive, like a .zip file or a .tar file. Besides just  being able to group all the files  into one simple file, we will be able to deliver and run an entire PHP application from a single file! We will also be able to use phar   archives within PHP, so the following will work in PHP 5.3 and above view plaincopy to clipboardprint?</p>
<p>&lt;?php<br />
include &#8220;singlefilelibrary.phar&#8221;<br />
?&gt;<br />
* Closures &amp; Lambdas</p>
<p>&lt;?php<br />
$hellolambda = function () {<br />
echo &#8220;Hello world via Lambda&#8221;;<br />
}<br />
$hellolambda(); // Outputs Hello world via Lambda<br />
?&gt;</p>
<ol>
<li><span> </span></li>
</ol>
<p>*Functors: This allows an object to be invoked as a function.<br />
*Traits: This is a new unit of reuse, traits can be incomplete, provides reusability, modularity and structure. In short it is copy-paste glorified!<br />
*Magic functions: We have a couple of new magic functions for classes (interceptors) __callstatic() and invoke()<br />
*Ternary operator: You can now display the a value that exists $value1 or $value2 using this simple statement echo $value1?:$value2;<br />
There are many more things added like Late Static Binding, Variable Static Calls, Changes to PHP Error Levels, new PHP functions, improvements to help with  OpenID, Command line and many more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/latest-news-in-php-what-is-new-in-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Left Outer Join</title>
		<link>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 12:21:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[fetch]]></category>
		<category><![CDATA[inner join]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[joins]]></category>
		<category><![CDATA[left join]]></category>
		<category><![CDATA[left outer join]]></category>
		<category><![CDATA[mysql join]]></category>
		<category><![CDATA[mysql joins]]></category>
		<category><![CDATA[records]]></category>
		<category><![CDATA[right join]]></category>
		<category><![CDATA[right outer join]]></category>
		<category><![CDATA[self join]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=270</guid>
		<description><![CDATA[Joins are very interesting topic in mysql.In my 4 years exp. i feel that every body knows about joins (experts and freshers) but freshers use joins very few.This may be because of their low thinking capability in starting or may be they find joins more typical then their local logic.Maximum beginners try to put their [...]]]></description>
			<content:encoded><![CDATA[<p>Joins are very interesting topic in mysql.In my 4 years exp. i feel that every body knows about joins (experts and freshers) but freshers use joins very few.This may be because of their low thinking capability in starting or may be they find joins more typical then their local logic.Maximum beginners try to put their own logic rather then joins.</p>
<p>Today we will talk about left outer join .Not very common join but very effective join.<br />
Suppose you have 2 tables. First &#8220;table1&#8243; with 2 fields &#8216;id&#8217; and &#8216;name.&#8217; . Second &#8220;table2&#8243; with 2 fields &#8216;id&#8217; and &#8217;salary&#8217;.In table1 &#8220;id&#8221; is primary key and in table2 field &#8220;id&#8221; is foreign key.</p>
<p><span id="more-270"></span></p>
<p><strong>Suppose structure for 2 tables are like this:<br />
Table1:                                                        Table2:<br />
id       name                                                id       salary<br />
&#8212;&#8212;&#8212;&#8212;&#8211;                                                  &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1         aa                                                     2        2000<br />
2          bb                                                   5         3000<br />
3          cc                                                   NULL     NULL<br />
4          cc<br />
5          cc<br />
6          cc<br />
7          cc<br />
8          cc<br />
9          cc<br />
10          cc</strong></p>
<p>Now you want to fetch all records from table1 <strong>where id in table1 is not equal to id from table2 means we have to fetch records from both table1 where table1.id!=table2.id. One important thing about table2 that there may be null in id column.</strong><br />
Lot of programmers will try to do this by their logic means they will not use joins but try to fetch records saperatly from both tables and then make array and then write a logic to remove duplicate entries from array and then again run a query to fetch records for ids exists in final array.This is my thinking , may be they use another logic.</p>
<p>This process will take time to write whole code , also this will take extra space in file and we have to write more queries to fetch records.<br />
Now here our left outer join is very effective solution.Using left outer join only single query will fetch all the records according to our need.<br />
Here is the query:<br />
&#8220;select table1.* from table1 LEFT OUTER JOIN table2 ON table1.id = table2.id WHERE table2.id IS NULL&#8221;</p>
<p><strong>This will give you result like this.<br />
Table1:<br />
id       name<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1         aa<br />
3          cc<br />
4          cc<br />
6          cc<br />
7          cc<br />
8          cc<br />
9          cc<br />
10          cc</strong></p>
<p>This will give me a list off all the records that are in table1 but don&#8217;t have an entry in table2.</p>
<p>Just use this join and it will save your time and space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check if an email address exists or not using php</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-check-if-an-email-address-exists-or-not-using-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-check-if-an-email-address-exists-or-not-using-php/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:28:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[email address]]></category>
		<category><![CDATA[email bounce]]></category>
		<category><![CDATA[email bouncing]]></category>
		<category><![CDATA[emailId]]></category>
		<category><![CDATA[host array]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[valid email]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=265</guid>
		<description><![CDATA[We make lot of websites every month and 90% of them have a registration page or a contact us page where users have to fill their email id for get in touch with site owner.We hope that they will provide correct email address but what if user fill out a wrong email id that is [...]]]></description>
			<content:encoded><![CDATA[<p>We make lot of websites every month and 90% of them have a registration page or a contact us page where users have to fill their email id for get in touch with site owner.We hope that they will provide correct email address but what if user fill out a wrong email id that is not actually exists.In that case it will just fill one record in our database nothing else and if lot of users will do the same then it will make a burden on our database.</p>
<p>So before filling our database or executing a script we have to check if the email id provided by user is really exists or that is a bogus email address.<br />
While there&#8217;s no foolproof way to make sure a user isn&#8217;t giving you a completely bogus email address, you can at least help cut down on the problem by making sure that email addresses your site is given at least correspond to a real domain.</p>
<p><span id="more-265"></span></p>
<p><strong>Php provides pre defined functions to check this.We can do this by two ways.<br />
1.Using getmxrr function of php<br />
or<br />
2.Using checkdnsrr function of php</strong></p>
<p>Let me explain one by one.</p>
<p><strong>1.Using getmxrr function of php.</strong></p>
<p><strong>getmxrr </strong>function Get MX records corresponding to a given Internet host name.<br />
Every email address has host name after @ sign Exam. harry@gmail.com means gmail.com is host name.</p>
<p><strong>getmxrr  ( string $hostname  , array &amp;$mxhosts  [, array &amp;$weight  ] )</strong></p>
<p>This function has 3 Parameters. first Parameters is host name and that is compulsory and 2 Parameters is mxhosts (array) and that is compulsory and 3 Parameters weight (array) is optional.<br />
mxhosts is an array.A list of the MX records found is placed into the array mxhosts .<br />
If the weight array is given, it will be filled with the weight information gathered.</p>
<p>Now I show you how to use this function:-</p>
<p>&lt;?php<br />
$mailparts                    =    explode( &#8216;@&#8217;, &#8216;abc@yahoo.com&#8217;, 2 );<br />
$domain                        =    $mailparts[1];<br />
$mxFound                    =    false;<br />
while ( strpos( $domain, &#8216;.&#8217; ) !== false ) {<br />
// Validate domain:<br />
$mxRecords            =    array();<br />
$mxWeights            =    array();<br />
if ( @getmxrr( $domain . &#8216;.&#8217;, $mxRecords, $mxWeights ) ) {<br />
$mxFound    =    true;<br />
break;<br />
} else {<br />
$subDomains        =    explode( &#8216;.&#8217;, $domain, 2 );<br />
if ( count( $subDomains ) == 2 ) {<br />
$domain        =    $subDomains[1];<br />
} else {<br />
break;<br />
}<br />
}<br />
}<br />
print_r($mxRecords);<br />
echo &#8216;&lt;hr&gt;&#8217;;<br />
print_r($mxWeights);<br />
?&gt;</p>
<p>First we will take email address filled by user and explode that with @.This will make an array with 2 indexes and on 2th index there will be host name like this<br />
$mailparts(0=&gt;&#8217;abc&#8217;,1=&gt;&#8217;yahoo.com&#8217;)</p>
<p>Then we are checking if the host name is valid or not .After that we are passing host name in getmxrr function.Don&#8217;t get confused by $mxRecords and $mxWeights because we just have to declare them nothing else , getmxrr function will return both arrays with values if successful or blank if not successful.</p>
<p>At the end we will check both arrays .If email id is valid then both array will contain some values.<br />
$mxRecords will contain maximum host names for that domain and $mxWeights will contain weight information gathered.<br />
So if arrays are empty then email id not exists and if arrays have some values then email id exists.</p>
<p><strong>2.Using checkdnsrr function of php.</strong></p>
<p>The checkdnsrr function Check DNS records corresponding to a given Internet host name or IP address. It has this format:</p>
<p><strong>int checkdnsrr(string $host [,string $type]);</strong></p>
<p>This PHP function checks the DNS records for the given host to see if there are any records of the specified type. Note that the type parameter is optional, and if you don&#8217;t supply it then the type defaults to &#8220;MX&#8221; (which means Mail Exchange). If any records are found, the function returns TRUE or 1. Otherwise, it returns FALSE or 0.<br />
&lt;?php</p>
<p>// take a given email address and split it into the username and domain.<br />
$mailparts                    =    explode( &#8216;@&#8217;, &#8216;abc@yahoo.com&#8217;, 2 );<br />
$domain                        =    $mailparts[1];<br />
if (checkdnsrr($domain, &#8220;MX&#8221;)) {<br />
// this is a valid email domain!<br />
}<br />
else {<br />
// this email domain doesn&#8217;t exist!<br />
}<br />
?&gt;</p>
<p>you can use both functions (getmxrr and checkdnsrr) or one of them to check if email is exists.Using both of them will be good so it will be more secure.<br />
Before some years these function were available only for linux but these function now available also on Windows platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-check-if-an-email-address-exists-or-not-using-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
