<?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>Raju Sykam &#187; php</title>
	<atom:link href="http://raju.net.in/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://raju.net.in/blog</link>
	<description>Electrical engineer / Web Developer</description>
	<lastBuildDate>Sat, 01 Jan 2011 18:10:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ajax Multiple file upload script with Progress bar, Drag and Drop</title>
		<link>http://raju.net.in/blog/2011/01/01/ajax-multiple-file-upload-script-with-progress-bar-drag-and-drop/</link>
		<comments>http://raju.net.in/blog/2011/01/01/ajax-multiple-file-upload-script-with-progress-bar-drag-and-drop/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 18:10:54 +0000</pubDate>
		<dc:creator>Raju Sykam</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[upload script]]></category>

		<guid isPermaLink="false">http://raju.net.in/blog/?p=457</guid>
		<description><![CDATA[This script uses XMLHttpRequest for uploading multiple files with progress-bar with drag and drop feature in Firefox 3.6+, Safari 4+ and Chrome; and falls back to hidden iframe based upload in other browsers. Features multiple file select, progress-bar in Firefox, Chrome, Safari drag-and-drop file select in Firefox, Chrome uploads are cancellable no external dependencies doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>This script uses <a href="http://www.w3schools.com/XML/xml_http.asp">XMLHttpRequest</a> for uploading multiple files with progress-bar with drag and drop feature in Firefox 3.6+, Safari 4+ and Chrome; and falls back to hidden iframe based upload in other browsers.</p>
<p><strong>Features</strong></p>
<ul>
<li>multiple file select, progress-bar in Firefox, Chrome, Safari</li>
<li>drag-and-drop file select in Firefox, Chrome</li>
<li>uploads are cancellable</li>
<li>no external dependencies</li>
<li>doesn&#8217;t use Flash</li>
<li>fully working with https</li>
<li>keyboard support in Firefox, Chrome, Safari</li>
</ul>
<p><strong>Demo:</strong><a href="http://valums.com/ajax-upload/">Check the demo</a><br />
<strong>URL:</strong><a href="http://valums.com/ajax-upload/">http://valums.com/ajax-upload/</a><br />
<strong>Download:</strong><a href="http://github.com/valums/file-uploader/zipball/master">Download the source code</a></p>
<p><strong>Usage:</strong></p>
<p>Download the script, unzip to a folder; let’s say ajax-<em>upload-script</em> in your root folder.</p>
<p>For me, its http://localhost/ajax-upload-script such that folders server,client, tests  will be in your folder <em>ajax-upload-script</em></p>
<p>Create a new file; let’s say <em>upload.php</em> in your <em>ajax-upload-script</em> folder.</p>
<p>Include fileuploader.js and fileuploader.css into upload.php</p>
<p>The required two files are in your <em>ajax-upload-script/client</em> folder.</p>
<pre class="brush: xml; title: Code;">
&lt;script src=&quot;client/fileuploader.js&quot; language=&quot;javascript1.1&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;client/fileuploader.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt;
</pre>
<p>Now create a container element on the page, which accepts the files, we drop to it.</p>
<pre class="brush: xml; title: Code;">
  &lt;div id=&quot;file-uploader&quot;&gt;
        &lt;noscript&gt;
            &lt;p&gt;Please enable JavaScript to use file uploader.&lt;/p&gt;
            &lt;!-- or put a simple form for upload here --&gt;
        &lt;/noscript&gt;
    &lt;/div&gt;
</pre>
<p>Now initialize your uploader. Paste the below the javascript below the container div tag.</p>
<pre class="brush: jscript; title: Code;">

 &lt;script&gt;
        function createUploader(){
            var uploader = new qq.FileUploader({
                //  pass the dom node (ex. $(selector)[0] for jQuery users)
                element: document.getElementById('file-uploader'),
               // path to server-side upload script. In our case server/php.php
               action: 'server/php.php'
            });
        }
        window.onload = createUploader;
    &lt;/script&gt;
</pre>
<p>Pass the DOM node to the element, and the server side script path to the action.<br />
This script comes with sever side script also, to upload files, in different platforms-PHP, Coldfusion, CGI and Java.</p>
<p>We will take the PHP file,  php.php in server folder as our server side script to upload files.<br />
You can delete the other platform files in this folder, no harm at all.</p>
<p>That’s all. Our Ajax multiple file upload script with progress bar, drag and drop is completed. Just open the file in browser http://localhost/ajax-upload-script/upload.php<br />
You can upload the files by clicking the ‘Upload a File’ button or simply dragging and dropping files on it. Files will be uploaded to server/uploads folder.</p>
<p>Some test files and demos are there in tests folder. If you want to play with this script further, have a look into it. If not, you can simply delete it.</p>
<p>You can use jQuery also with this script, and other settings such as allowed extensions, file size limits and events.</p>
<pre class="brush: jscript; title: Code;">
    // additional data to send, name-value pairs
    params: {},

    // validation
    // ex. ['jpg', 'jpeg', 'png', 'gif'] or []
    allowedExtensions: [],
    // each file size limit in bytes
    // this option isn't supported in all browsers
    sizeLimit: 0, // max size
    minSizeLimit: 0, // min size

    // set to true to output server response to console
    debug: false,

    // events
    // you can return false to abort submit
    onSubmit: function(id, fileName){},
    onProgress: function(id, fileName, loaded, total){},
    onComplete: function(id, fileName, responseJSON){},
    onCancel: function(id, fileName){},

    messages: {
        // error messages, see qq.FileUploaderBasic for content
    },
    showMessage: function(message){ alert(message); }        
</pre>
<p><strong>To Use with jQuery:</strong></p>
<p><strong> </strong></p>
<p>Include jQuery javascript into your page.</p>
<pre class="brush: xml; title: Code;">
&lt;script src=&quot;http://code.jquery.com/jquery-1.4.4.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>And replace the script below container DIV with this.</p>
<pre class="brush: jscript; title: Code;">
    jQuery(function(){
        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader'),
          // url of the server-side upload script, should be on the same domain
	action: 'server/php.php',

        }); 

    });
</pre>
]]></content:encoded>
			<wfw:commentRss>http://raju.net.in/blog/2011/01/01/ajax-multiple-file-upload-script-with-progress-bar-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>php4 vs php5 &#8211; Key features added in php 5</title>
		<link>http://raju.net.in/blog/2009/12/16/php4vsphp5/</link>
		<comments>http://raju.net.in/blog/2009/12/16/php4vsphp5/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:22:40 +0000</pubDate>
		<dc:creator>Raju Sykam</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web resources]]></category>
		<category><![CDATA[mysqli]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[SimpleXML]]></category>
		<category><![CDATA[SOAP]]></category>

		<guid isPermaLink="false">http://raju.net.in/blog/?p=404</guid>
		<description><![CDATA[One of the questions you face in interview on PHP  is  about the key features added in PHP 5.? I have not found any single  page on web which lists the key features introduced in php5. so here is the list. The final release of PHP 5 was announced on 13 July 2004.(as per php.net [...]]]></description>
			<content:encoded><![CDATA[<p>One of the questions you face in interview on PHP  is  about the <strong>key features added in PHP 5.?</strong> I have not found any single  page on web which lists the key features introduced in php5. so here is the list.</p>
<div id="attachment_405" class="wp-caption alignright" style="width: 160px"><a class="highslide" onclick="return vz.expand(this)" href="http://raju.net.in/blog/wp-content/uploads/2009/12/php5.gif"><img class="size-full wp-image-405" title="php5" src="http://raju.net.in/blog/wp-content/uploads/2009/12/php5.gif" alt="php 5" width="150" height="150" /></a><p class="wp-caption-text">php 5</p></div>
<p>The final release of PHP 5 was announced on 13 July 2004.(as per php.net news archives)</p>
<p>Some of the key features of PHP 5 include:</p>
<ul>
<li> The <a href="http://www.zend.com/php5/zend-engine2.php">Zend Engine II</a> with a new object model and dozens of new features.</li>
<li> XML support has been completely redone in PHP 5, all extensions are now   focused around the excellent libxml2 library   (<a href="http://www.xmlsoft.org/">http://www.xmlsoft.org/</a>).</li>
<li> A new SimpleXML extension for easily accessing and manipulating XML as   PHP objects. It can also interface with the DOM extension and vice-versa.</li>
<li> A brand new built-in SOAP extension for interoperability with Web Services.</li>
<li> A new MySQL extension named MySQLi for developers using MySQL 4.1 and later.   This new extension includes an object-oriented interface in addition to   a traditional interface; as well as support for many of MySQL&#8217;s new features,   such as prepared statements.</li>
<li> SQLite has been bundled with PHP. For more information on SQLite,   please visit <a href="http://www.sqlite.org/">their website</a>.</li>
<li> Streams have been greatly improved, including the ability to access   low-level socket operations on streams.</li>
</ul>
<p>Did I missed anything? or went wrong? if so, please let me know by commenting here.</p>
]]></content:encoded>
			<wfw:commentRss>http://raju.net.in/blog/2009/12/16/php4vsphp5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

