<?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 &#187; Php</title>
	<atom:link href="http://www.quicksolutionproviders.com/tag/php/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, 22 Aug 2010 08:23:08 +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 to Post form data without using cURL</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-post-form-data-without-using-curl/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-post-form-data-without-using-curl/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 17:27:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[form data]]></category>
		<category><![CDATA[libcurl]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=365</guid>
		<description><![CDATA[
Its very easy to post form data without using curl If your hosting server does not come with cURL installed and you also don’t have access  		to server in order to install it, there are alternatives.
One of them is using PHP’s functions fsockopen() and fputs() to send properly formatted 		 data to a remote [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Its very easy to post form data without using curl If your hosting server does not come with cURL installed and you also don’t have access  		to server in order to install it, there are alternatives.</p>
<p>One of them is using PHP’s functions fsockopen() and fputs() to send properly formatted 		 data to a remote server. Here is a sample of code that does just this:</p>
<p><span id="more-365"></span></p>
<pre>	<span>&lt;?php</span>

	<span>//create array of data to be posted</span>
	<span>$post_data</span><span>[</span><span>'firstName'</span><span>]</span> <span>=</span> <span>'Name'</span><span>;</span>
	<span>$post_data</span><span>[</span><span>'action'</span><span>]</span> <span>=</span> <span>'Register'</span><span>;</span>

	<span>//traverse array and prepare data for posting (key1=value1)</span>
	<span>foreach</span> <span>(</span> <span>$post_data</span> <span>as</span> <span>$key</span> <span>=&gt;</span> <span>$value</span><span>)</span> <span>{</span>
		<span>$post_items</span><span>[]</span> <span>=</span> <span>$key</span> <span>.</span> <span>'='</span> <span>.</span> <span>$value</span><span>;</span>
	<span>}</span>

	<span>//create the final string to be posted using implode()</span>
	<span>$post_string</span> <span>=</span> <span>implode</span> <span>(</span><span>'&amp;'</span><span>,</span> <span>$post_items</span><span>);</span>

	<span>//we also need to add a question mark at the beginning of the string</span>
	<span>$post_string</span> <span>=</span> <span>'?'</span> <span>.</span> <span>$post_string</span><span>;</span>

	<span>//we are going to need the length of the data string</span>
	<span>$data_length</span> <span>=</span> <span>strlen</span><span>(</span><span>$post_string</span><span>);</span>

	<span>//let's open the connection</span>
	<span>$connection</span> <span>=</span> <span>fsockopen</span><span>(</span><span>'www.domainname.com'</span><span>,</span> <span>80</span><span>);</span> 

	<span>//sending the data</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span> <span>"POST  /target_url.php  HTTP/1.1\r\n"</span><span>);</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span> <span>"Host:  www.mysite.com \r\n"</span><span>);</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span>
	    <span>"Content-Type: application/x-www-form-urlencoded\r\n"</span><span>);</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span> <span>"Content-Length: $data_length\r\n"</span><span>);</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span> <span>"Connection: close\r\n\r\n"</span><span>);</span>
	<span>fputs</span><span>(</span><span>$connection</span><span>,</span> <span>$post_string</span><span>);</span> 

	<span>//closing the connection</span>
	<span>fclose</span><span>(</span><span>$fp</span><span>);</span>

	<span>?&gt;</span></pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-post-form-data-without-using-curl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Send post form data using curl</title>
		<link>http://www.quicksolutionproviders.com/php/send-post-form-data-using-curl/</link>
		<comments>http://www.quicksolutionproviders.com/php/send-post-form-data-using-curl/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 17:08:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[curl tutorial]]></category>
		<category><![CDATA[libcurl]]></category>
		<category><![CDATA[php curl]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[post data]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=359</guid>
		<description><![CDATA[&#60;?php
if(isset($_POST['Name']))     $Name   = urlencode($_POST['Name']);
if(isset($_POST['Email']))   $Email   = urlencode($_POST['Email']);
if(isset($_POST['Message'])) $Message= urlencode(htmlentities($_POST['Message']));
$Curl_Session = curl_init(&#8217;http://www.site.com/cgi-bin/waiting.php&#8217;);
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS,
&#8220;Name=$Name&#38;Email=$Email&#38;Message=$Message&#8221;);
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($Curl_Session, CURLOPT_RETURNTRANSFER, 1);
curl_exec ($Curl_Session);
curl_close ($Curl_Session);
?&#62;
In this example you can see one constant CURLOPT_RETURNTRANSFER.
if you put the value of CURLOPT_RETURNTRANSFER to 1 it means the output of [...]]]></description>
			<content:encoded><![CDATA[<p>&lt;?php</p>
<p>if(isset($_POST['Name']))     $Name   = urlencode($_POST['Name']);</p>
<p>if(isset($_POST['Email']))   $Email   = urlencode($_POST['Email']);</p>
<p>if(isset($_POST['Message'])) $Message= urlencode(htmlentities($_POST['Message']));</p>
<p>$Curl_Session = curl_init(&#8217;http://www.site.com/cgi-bin/waiting.php&#8217;);</p>
<p>curl_setopt ($Curl_Session, CURLOPT_POST, 1);</p>
<p>curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS,</p>
<p>&#8220;Name=$Name&amp;Email=$Email&amp;Message=$Message&#8221;);</p>
<p>curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);</p>
<p>curl_setopt ($Curl_Session, <strong>CURLOPT_RETURNTRANSFER</strong>, 1);</p>
<p>curl_exec ($Curl_Session);</p>
<p>curl_close ($Curl_Session);</p>
<p>?&gt;</p>
<p>In this example you can see one constant CURLOPT_RETURNTRANSFER.</p>
<p>if you put the value of CURLOPT_RETURNTRANSFER to 1 it means the output of this process will not be print directly.</p>
<p>To print the result you first take the result in a variable and than print that variable. And if you put</p>
<p>the value of CURLOPT_RETURNTRANSFER to 0 it means the output of this process will print automatically after successfully execution of curl.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/send-post-form-data-using-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disadvantage/Drawback of AJAX.</title>
		<link>http://www.quicksolutionproviders.com/php/disadvantagedrawback-of-ajax/</link>
		<comments>http://www.quicksolutionproviders.com/php/disadvantagedrawback-of-ajax/#comments</comments>
		<pubDate>Thu, 27 May 2010 21:37:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=338</guid>
		<description><![CDATA[Disadvantage,disadvantage,drawback of ajax,disadvantage of ajax,drawback ]]></description>
			<content:encoded><![CDATA[<p>AJAX technology is very help full but as we know every coin has two aspect . Like other AJAX technology also have some drawbacks/disadvantage  some are list below. So before developing your application with AJAX you should know about advantage and disadvantage of AJAX.</p>
<p>1. The page address doesn&#8217;t change while working ,  so you can&#8217;t bookmark<br />
AJAX-enabled pages.</p>
<p>2. Search engines may not be able to index all protions of your AJAx<br />
application site.</p>
<p>3. The Back button in browsers , doesn&#8217;t produce the same result as with<br />
classic web applications, because all actions happen inside the same page.</p>
<p>4.  Javascript can be disabled at the client side, which makes the AJAX<br />
application non-functional, so it&#8217;s good to have another plan in your<br />
site, whenever possible, to avoid losing visitors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/disadvantagedrawback-of-ajax/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[delete zip]]></category>
		<category><![CDATA[directory permission]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mkdir]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unzip]]></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>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>How to use Cookies in PHP</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-use-cookies-in-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-use-cookies-in-php/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 10:07:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[$_COOKIE]]></category>
		<category><![CDATA[access Cookie Value]]></category>
		<category><![CDATA[check cookies]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[cookies in php]]></category>
		<category><![CDATA[delete cookies]]></category>
		<category><![CDATA[destroy cookies]]></category>
		<category><![CDATA[expire]]></category>
		<category><![CDATA[isset]]></category>
		<category><![CDATA[print_r]]></category>
		<category><![CDATA[Retrieve Cookie Value]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[sessions]]></category>
		<category><![CDATA[setcookie]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=247</guid>
		<description><![CDATA[In the starting Cookies were not in common use but this is very common to use Cookies now a days.
Cookies allow the us to store information about the site visitor on their computer to be accessed again the next time they visit. One common use of cookies is to store your username and password on [...]]]></description>
			<content:encoded><![CDATA[<p>In the starting Cookies were not in common use but this is very common to use Cookies now a days.</p>
<p>Cookies allow the us to store information about the site visitor on their computer to be accessed again the next time they visit. One common use of cookies is to store your username and password on your computer so you don&#8217;t need to login again each time you visit a website. Cookies can also store other things such as your name, last visit, shopping cart contents, etc.</p>
<p>Cookies are just like sessions.The main difference between a cookie and a session is that a cookie is stored on your computer, and a session is not. Although cookies have been around for many years but sessions can be stored only for a perticular user session and when user leave a site or close the browser sessions gets destroy. Cookies and sessions can be removed by the user at any time, so don&#8217;t use them to store anything too important.</p>
<p><span id="more-247"></span></p>
<p>A cookie is a small file that the server embeds on the user&#8217;s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.Like a session array php also have a cookie array.</p>
<p><strong>How to Create a Cookie?</strong></p>
<p>The setcookie() function is used to set a cookie.</p>
<p>The setcookie() function must appear BEFORE the &lt;html&gt; tag.</p>
<p><strong>setcookie(name, value, expire, path, domain);</strong></p>
<p>All the arguments except the name  argument are optional. You may also replace an argument with an empty string (&#8221;") in order to skip that argument. Because the expire argument is integer, it cannot be skipped with an empty string, use a zero (0) instead.</p>
<p>In the example below, we will create a cookie named &#8220;user&#8221; and assign the value &#8220;planet&#8221; to it. We also specify that the cookie should expire after one hour:<br />
&lt;?php<br />
setcookie(&#8221;user&#8221;, &#8220;planet&#8221;, time()+3600);<br />
?&gt;</p>
<p>&lt;?php<br />
$Month = 2592000 + time();<br />
//this adds 30 days to the current time<br />
setcookie(&#8221;user&#8221;, date(&#8221;F jS &#8211; g:i a&#8221;), $Month);<br />
?&gt;</p>
<p>The above code sets a cookie in the visitor&#8217;s browser called &#8220;planet&#8221;. The cookie sets the value to the current date, and set&#8217;s the expiration to be be in 30 days (2592000 = 60 seconds * 60</p>
<p><strong>How to access a Cookie Value?</strong></p>
<p>The PHP $_COOKIE variable is used to retrieve a cookie value.</p>
<p>In the example below, we retrieve the value of the cookie named &#8220;user&#8221; and display it on a page:<br />
&lt;?php<br />
// Print a cookie<br />
echo $_COOKIE["user"];</p>
<p>// A way to view all cookies<br />
print_r($_COOKIE);<br />
?&gt;</p>
<p>we can use the <strong>isset() </strong>function to find out if a cookie has been set or not:</p>
<p>&lt;?php<br />
if (isset($_COOKIE["user"]))<br />
echo &#8220;Welcome &#8221; . $_COOKIE["user"] . &#8220;!&lt;br /&gt;&#8221;;<br />
else<br />
echo &#8220;Welcome guest!&lt;br /&gt;&#8221;;<br />
?&gt;</p>
<p><strong>How to destroy a Cookie?</strong></p>
<p>To destroy the cookie, simply use setcookie again but When deleting a cookie you should assure that the expiration date is in the past.</p>
<p>example:<br />
&lt;?php<br />
// set the expiration date to one hour ago<br />
setcookie(&#8221;user&#8221;, &#8220;&#8221;, time()-3600);<br />
?&gt;</p>
<p>Some browser&#8217;s support cookies and some not so you must think about this fact before using cookies. Most browser&#8217;s (IE, firefox,safari) support cookies so you don&#8217;t have to worry about this.</p>
<p>You would also love this:-&gt; <a title="Permanent Link to Sessions in php" href="http://www.quicksolutionproviders.com/php/sessions-in-php/"><span style="color: #990000;">Sessions in php </span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-use-cookies-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best open source CMS in php</title>
		<link>http://www.quicksolutionproviders.com/php/best-open-source-cms-in-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/best-open-source-cms-in-php/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:28:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[basic cms]]></category>
		<category><![CDATA[best]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[complete control over design and look]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[Joomla 1.0.5]]></category>
		<category><![CDATA[joomla 1.5.11]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[php nuke]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=242</guid>
		<description><![CDATA[There are lot of articles on internet about this topic. But after reading those articles i felt that they are making confusion in reader&#8217;s mind because they are providing list of all the open source CMS and comparing them .After reading these articles a normal user can&#8217;t decide which CMS is best for him/her even [...]]]></description>
			<content:encoded><![CDATA[<p>There are lot of articles on internet about this topic. But after reading those articles i felt that they are making confusion in reader&#8217;s mind because they are providing list of all the open source CMS and comparing them .After reading these articles a normal user can&#8217;t decide which CMS is best for him/her even they find them self in a hacting situation where they can&#8217;t decide best. There are near about 50 cms in php ,some of them are free and some of them are paid. They all cms has different length of functionality means some provides basic functionality and some provides complete control over site management (look and coding).</p>
<p><span id="more-242"></span></p>
<p>Experts says that this cms is best , another group of people says this cms is best but have you thought which cms is best for you.It&#8217;s not compulsory that if a cms is best for others is also best for you because it&#8217;s completely depends on your requirement. A small and non popular cms is best for you if that is fulfilling your needs whether that is a popular or multifunctional cms or not.</p>
<p>So don&#8217;t get confused after reading lot of articles about best cms in world because it&#8217;s not depend on a person&#8217;s thinking or a group of person,Its completely depends on your requirement.</p>
<p>Before choosing any cms for your website you should have to think about your requirement and performance level because choosing best cms from the list of cms is very difficult for you if you don&#8217;t have clear requirement. May be you will choose a big cms which has lot of functionality but you have a short requirement. It will make extra weight on server and take time to load because big cms means lot of files and lot of files included in a page which is loading and it will definitely slow down the page .So always clear your mind with your real need and then choose best cms according to your requirement.</p>
<p>I have worked on lot of cms in php and very well know about their functionality but here i want to talk only about joomla because according to me joomla is best cms i have ever seen. In my opinion joomla is not just a cms but a platform to work. Using joomla you can make any type of site. The best part about joomla is its really easy navigation, its complete documentation (for beginners and experts).A non technical person can easily make a website using joomla because of its detailed documentation. special thing is that joomla has lot of plugins ,modules and components to fulfill your needs so just pick and install them and they are ready for use just like that. The main thing about any software is support for that and joomla has lot of support on internet from basic to coding level. Its template system provides complete control on look and feel and if you little bit about programming then you can easily edit html or css in admin panel. The important thing is that you can use multiple templates for a single site in joomla means different look &amp; fell for different pages. Well organized administration panel gives you step by step instruction for a section. Joomla is highly secure .Joomla provides complete control over title and meta tags for pages so you don&#8217;t have to worry about search engine optimization. Joomla provides lot of components for url rewriting so you can make page title and url seo friendly</p>
<p>The best thing about joomla which i feel that you don&#8217;t have to code for any normal or special requirement because joomla provides everything which you want in your website .What you have to do is just pick any module or plugin and install in joomla on a single click and your site is ready to touch the sky.</p>
<p>currently joomla has 2 series.</p>
<p>1. Joomla 1.0.x (Latest release is joomla 1.0.5)</p>
<p>2. Joomla 1.5.x (Latest release is joomla 1.5.11)</p>
<p>Anybody can manage website in joomla whether he is technical or nontechnical and any type of site whether that is small or big.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/best-open-source-cms-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php latest news &#8211; PHP 5.3.0 &amp; PHP 5.2.11 Released!</title>
		<link>http://www.quicksolutionproviders.com/php/php-latest-news-php-5-3-0-php-5-2-11-released/</link>
		<comments>http://www.quicksolutionproviders.com/php/php-latest-news-php-5-3-0-php-5-2-11-released/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 06:29:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[full list of changes in PHP 5.3.0]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[php 5.2.11]]></category>
		<category><![CDATA[php 5.3.0]]></category>
		<category><![CDATA[PHP Latest Development News]]></category>
		<category><![CDATA[php latest news]]></category>
		<category><![CDATA[php release]]></category>
		<category><![CDATA[php vlatest version]]></category>
		<category><![CDATA[PHPDeveloper]]></category>
		<category><![CDATA[the best and latest in PHP]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=237</guid>
		<description><![CDATA[PHP 5.3.0
The PHP development team  has announced the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.
Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHP 5.3.0</strong></p>
<p>The PHP development team  has announced the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.</p>
<p>Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, ext/intl and ext/fileinfo), over 140 bug fixes and much more.</p>
<p><strong>PHP 5.2.11</strong></p>
<p>The PHP  team has announced the immediate      availability of PHP 5.2.11. This release focuses on improving the stability of      the PHP 5.2.x branch with over 75 bug fixes, some of which are security related.      All users of PHP 5.2 are encouraged to upgrade to this release.</p>
<p><strong>Security Enhancements and Fixes in PHP 5.2.11:</strong></p>
<ul>
<li>Fixed certificate validation inside php_openssl_apply_verification_policy.</li>
<li>Fixed sanity check for the color index in imagecolortransparent().</li>
<li>Added missing sanity checks around exif processing.</li>
<li>Fixed bug #44683 (popen crashes when an invalid mode is passed).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/php-latest-news-php-5-3-0-php-5-2-11-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php mail function</title>
		<link>http://www.quicksolutionproviders.com/php/php-mail-function/</link>
		<comments>http://www.quicksolutionproviders.com/php/php-mail-function/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 09:55:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[delivery]]></category>
		<category><![CDATA[from]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[html mail]]></category>
		<category><![CDATA[mail function]]></category>
		<category><![CDATA[mail()]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[php mail]]></category>
		<category><![CDATA[send mail]]></category>
		<category><![CDATA[subject]]></category>
		<category><![CDATA[text mail]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=230</guid>
		<description><![CDATA[The mail() function allows you to send emails directly from a script.  This function returns TRUE if the email was successfully accepted for delivery, otherwise it returns FALSE.
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
To send email using PHP, you use the mail() [...]]]></description>
			<content:encoded><![CDATA[<p>The mail() function allows you to send emails directly from a script.  This function returns TRUE if the email was successfully accepted for delivery, otherwise it returns FALSE.</p>
<p><span>bool</span> <span><strong>mail</strong></span> ( <span><span>string</span> <tt>$to</tt></span> , <span><span>string</span> <tt>$subject</tt></span> , <span><span>string</span> <tt>$message</tt></span> [, <span><span>string</span> <tt>$additional_headers</tt></span> [, <span><span>string</span> <tt>$additional_parameters</tt></span> ]] )</p>
<p>To send email using PHP, you use the <em>mail()</em> function. This accepts 5 parameters as follows (the last 2 are optional)</p>
<p><span id="more-230"></span></p>
<table border="0">
<tbody>
<tr>
<td valign="top">to</td>
<td valign="top">Required. The recipient&#8217;s email address.</td>
</tr>
<tr>
<td valign="top">subject</td>
<td valign="top">Required. The email&#8217;s subject line.</td>
</tr>
<tr>
<td valign="top">message</td>
<td valign="top">Required. The actual email body.</td>
</tr>
<tr>
<td valign="top">headers</td>
<td valign="top">Optional. Additional header fields such as &#8220;From&#8221;, &#8220;Cc&#8221;, &#8220;Bcc&#8221; etc.</td>
</tr>
<tr>
<td valign="top">parameters</td>
<td valign="top">Optional. Any additional parameters.</td>
</tr>
</tbody>
</table>
<p>You can email as a text type mail or html mail.<br />
<strong>A simple text type mail example :</strong></p>
<p>&lt;?php<br />
$to      = &#8216;nobody@example.com&#8217;;<br />
$subject = &#8216;the subject&#8217;;<br />
$message = &#8216;hello&#8217;;<br />
$headers = &#8216;From: webmaster@example.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;Reply-To: webmaster@example.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;X-Mailer: PHP/&#8217; . phpversion();</p>
<p>mail($to, $subject, $message, $headers);<br />
?&gt;</p>
<p><strong>A simple html mail example :</strong></p>
<p>// multiple recipients<br />
$to  = &#8216;nobody@example.com&#8217; . &#8216;, &#8216;; // note the comma<br />
$to .= &#8216;admin@example.com&#8217;;</p>
<p>// subject<br />
$subject = &#8216;Birthday Reminders for August&#8217;;</p>
<p>// message<br />
$message = &#8216;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Birthday Reminders for August&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&#8216;;</p>
<p>// To send HTML mail, the Content-type header must be set<br />
$headers  = &#8216;MIME-Version: 1.0&#8242; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Content-type: text/html; charset=iso-8859-1&#8242; . &#8220;\r\n&#8221;;</p>
<p>// Additional headers<br />
$headers .= &#8216;To: nobody , nobody &#8216; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;From: Birthday Reminder &#8216; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Cc: admin1@example.com&#8217; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Bcc: admin2@example.com&#8217; . &#8220;\r\n&#8221;;</p>
<p>// Mail it<br />
mail($to, $subject, $message, $headers);<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/php-mail-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
