<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>---  Welcome To  Anand Sharma World ---</title>
	<atom:link href="http://anandshahil11.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anandshahil11.wordpress.com</link>
	<description>If u have a dream ,, chase it and try to protect it even from urself  ~~ Anand</description>
	<lastBuildDate>Fri, 25 Nov 2011 12:39:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anandshahil11.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>---  Welcome To  Anand Sharma World ---</title>
		<link>http://anandshahil11.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anandshahil11.wordpress.com/osd.xml" title="---  Welcome To  Anand Sharma World ---" />
	<atom:link rel='hub' href='http://anandshahil11.wordpress.com/?pushpress=hub'/>
		<item>
		<title>CSS behaviour on  IE &amp; Other Browsers</title>
		<link>http://anandshahil11.wordpress.com/2011/11/25/css-ie-other-browser-behaviour/</link>
		<comments>http://anandshahil11.wordpress.com/2011/11/25/css-ie-other-browser-behaviour/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 12:25:02 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Active link]]></category>
		<category><![CDATA[visited link]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[hyperlink]]></category>
		<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=182</guid>
		<description><![CDATA[In this post , i want to emphasize how exactly the css behave on IE and Other browsers like firefox , google chrome , opera etc. I would like to share my personal experience and challenges which i have faced during working on different different browser for an application. here are the some challenges in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=182&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post , i want to emphasize how exactly the css behave on IE and Other browsers like firefox , google chrome , opera etc.</p>
<p>I would like to share my personal experience and challenges which i have faced during working on different different browser for an application.<br />
here are the some challenges in key points:<br />
<br />
<strong>1.Display box in IE &amp; other browser</strong><br />
<br />
Solution:<br />
For IE:-<br />
<!--[if IE]&gt;--></p>
<p>#box{ display:inline; border: solid 1px; } </p>
<p>For  Other browser:-<br />
#box {<br />
     display: inline-block;<br />
     border: solid 1px;<br />
}</p>
<p><strong>2.Anchor tag (hyperlink) visited issue</strong></p>
<p>Html code : </p>
<p>tesing hyperlink</p>
<p>a:link {<br />
	color: #A5ACB0;<br />
}<br />
/* visited link */<br />
a:visited {<br />
	color: #00ADEF;<br />
}<br />
/* selected or active link */<br />
a:active {<br />
	color: #A5ACB0;<br />
}<br />
/* Hover link */<br />
a:hover {<br />
	color: #00338E;<br />
}</p>
<p><a href="”#”">Test IE</a><br />
<a href="”test.html”">Test ALL</a></p>
<p>For IE Broswer:-<br />
After clicking on  TestIE  link , it will show a:visited  color  but when you go to other page and come back to the same  page where you have TestIE link , the color of hyperlink will as a:link .<br />
Logically , it should be a:visited color because you have visited the link.<br />
This logic won’t work on IE 6,7,8 and other latest IE versions but work perfectly fine on any other browsers.</p>
<p>But After clicking on TestALL link on any browser, it shows  visited color .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=182&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2011/11/25/css-ie-other-browser-behaviour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
		<item>
		<title>Image onmouseout , onmouseover and onclick</title>
		<link>http://anandshahil11.wordpress.com/2011/11/10/imagerollover/</link>
		<comments>http://anandshahil11.wordpress.com/2011/11/10/imagerollover/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 11:07:23 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=179</guid>
		<description><![CDATA[Requirement:- A web page should contain an image say top arrow image. When user visit to a page , top arrow image should be in disable form (say in grey color) , when user hover over the image , it should get activated and turns to other color (say in green) and when user clicks [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=179&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Requirement:- A web page should contain an image say top arrow image.<br />
When user visit to a page , top arrow image should be in disable form (say in grey color) , when user hover over the image , it should get activated and turns to other color (say in green) and when user clicks on that image , it should turns to other color (say blue).</p>
<p>images:- top_arrow_disable.jpg , top_arrow_active.jpg and top_arrow_visited.jpg </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=179&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2011/11/10/imagerollover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP PDO</title>
		<link>http://anandshahil11.wordpress.com/2011/04/26/php-pdo/</link>
		<comments>http://anandshahil11.wordpress.com/2011/04/26/php-pdo/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 05:23:21 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[PDO]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=151</guid>
		<description><![CDATA[PHP PDO HP Data object is a database connection abstraction library for PHP 5. What is  PDO ? Its written in complied language(c/c++) , other php libraries are written in Interpreted language (AdoDB , PEAR DB) its lightweight database connection abstraction library WHY PDO ? It support many databases , so you don&#8217;t need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=151&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP PDO <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> HP Data object is a database connection abstraction library for PHP 5.</p>
<p>What is  PDO ?</p>
<ul>
<li>Its written in complied language(c/c++) , other php libraries are written in Interpreted language (AdoDB , PEAR DB)</li>
<li>its lightweight database connection abstraction library</li>
</ul>
<p>WHY PDO ?</p>
<ul>
<li>It support many databases , so you don&#8217;t need to write lines of code of each database , just write one code and run on any database</li>
<li>Speed . PDO is written in complied language but others php libraries like PEAR DB ,Adodb are written in interpreted language.</li>
</ul>
<p>PHP supports many databases like mysql , sqllite , postgre sql etc.</p>
<p>mysql_connect($host,$user,$password)</p>
<p>sqllite_open($host,$user,$password)</p>
<p>pg_connect($host,$user,$password)</p>
<p>so if you have to change your database from say mysql to postgre or viceversa , then you have to change your code , so you have to do rework on that.</p>
<p>thats way PDO cam ein picture , so that you have to write just one code and it will be work on any database platform without changing codes again and again.</p>
<p><span style="text-decoration:underline;">PDO: Activation PHP Data Objects Extension</span></p>
<p>Goto PHP/ext folder and check whether pdo extension exists or not.</p>
<p>php_pdo.dll , php_pdo_mysql.dll etc.</p>
<p>To enable PDO , go to PHP.INI file and uncommnet the code</p>
<p>;extension=php_pdo.dll -&gt; extension=php_pdo.dll</p>
<p>;extension=php_mysql_pdo.dll -&gt; extension=php_mysql_pdo.dll</p>
<p>Restart your apache server.</p>
<p><span style="text-decoration:underline;">PDO: connection to databases</span></p>
<p>//mysql connection</p>
<p>$con = new PDO(&#8216;mysql:host=$host,dbname=$DB&#8217;,$user,$pwd);</p>
<p>//sqllite connection</p>
<p>$con = new PDO(&#8216;sqllite:$DB&#8217;);</p>
<p>//postgre connection</p>
<p>$con = new PDO(&#8216;pqsql:host=$host,dbname=$DB&#8217;,$user,$pwd);</p>
<p>or we can write like this also</p>
<pre>&lt;?php
// configuration
$dbtype		= "sqlite";
$dbhost 	= "localhost";
$dbname		= "test";
$dbuser		= "root";
$dbpass		= "admin";
$dbpath		= "c:/test.db";

// switching
switch($dbtype){
  case "mysql":
    $dbconn = "mysql:host=$dbhost;dbname=$dbname";
    break;

  case "sqlite":
    $dbconn = "sqlite:$dbpath";
	break;

  case "postgresql":
    $dbconn = "pgsql:host=$host dbname=$db";
	break;
}

// database connection
$conn = new PDO($dbconn,$user,$pass);

?&gt;

<span style="text-decoration:underline;">PDO: Fetch Mode</span>

// database connection
$conn = new PDO("mysql:host=$dbhost;dbname=$dbname",$dbuser,$dbpass);

// query
$sql = "SELECT title FROM books ORDER BY title";
$q	 = $conn-&gt;query($sql);

// fetch
while($r = $q-&gt;fetch()){
  print_r($r);
}

<span style="color:#ff0000;">// result //Array ( [title] =&gt; PHP AJAX [0] =&gt; PHP AJAX )
<span style="color:#808080;">
</span></span>
// query
$sql = "SELECT title FROM books ORDER BY title";
$q	 = $conn-&gt;query($sql);
<strong>$q-&gt;setFetchMode(PDO::FETCH_ASSOC); //fetch association </strong>
// fetch
while($r = $q-&gt;fetch()){
  print_r($r);
}

<span style="color:#ff0000;">// result //Array ( [title] =&gt; PHP AJAX)

</span>
$q-&gt;setFetchMode(PDO::FETCH_NUM);

// fetch
while($r = $q-&gt;fetch()){
  print_r($r);
}

<span style="color:#ff0000;">// result //Array ( [0] =&gt; PHP AJAX )</span>
$q-&gt;setFetchMode(PDO::FETCH_BOTH);
$q	 = $conn-&gt;query($sql);

// fetch
while($r = $q-&gt;fetch()){
  print_r($r);
}

<span style="color:#ff0000;">// result //Array ( [title] =&gt; PHP AJAX [0] =&gt; PHP AJAX ) </span>
<span style="color:#ff0000;">

</span>
<span style="color:#ff0000;"><span style="color:#808080;">
</span></span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=151&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2011/04/26/php-pdo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal termnology</title>
		<link>http://anandshahil11.wordpress.com/2011/03/13/drupal-termnology/</link>
		<comments>http://anandshahil11.wordpress.com/2011/03/13/drupal-termnology/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 18:33:31 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=147</guid>
		<description><![CDATA[Basically, there are 5 main layers in Drupal where information flows, Data (Node, ETC) Modules Blocks and Menus User Permissions Template &#160; Data Base of the system is collection of Nodes. – the data pool Modules These are functional plugins that are either part of the Drupal core (they ship with Drupal) or they are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=147&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Basically, there are 5 main layers in Drupal where information flows,</p>
<ol>
<li>Data (Node, ETC)</li>
<li>Modules</li>
<li>Blocks and Menus</li>
<li>User Permissions</li>
<li>Template</li>
</ol>
<p>&nbsp;</p>
<p><strong>Data</strong><br /> Base of the system is collection of Nodes. – the data pool</p>
<p><strong>Modules</strong><br /> These are functional plugins that are either part of the Drupal core (they ship with Drupal) or they are contributed items that have been created by members of the Drupal community.</p>
<p><strong>Blocks and Menus</strong><br /> This is the next layer where we find blocks and menus. <em>Blocks often provide the output from a module or can be created to display whatever you want, and then can be placed in various spots in your template (theme) layout. Blocks can be configured to output in various ways, as well as only showing on certain defined pages, or only for certain defined users.</em></p>
<p><strong>User Permissions</strong><br /> Here is the next layer where settings are configured to determine what different kinds of users are allow to work and see.</p>
<p><strong>Template</strong><br /> This is mainly the site theme or the skin. <em>This is made up predominantly of XHTML and CSS, with some PHP variables intermixed</em></p>
<p>Understanding this flow of information is very important if you are facing A Drupal project targeted interview as the interviewer might test your overall knowledge  of  Drupal CMS by asking this sort of questions.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>What is taxonomy in drupal?</p>
<p>We can define any number of vocabularies (category types) and terms (categories)<br /> e.g.<br /> Controversial Content: (vocabulary)<br /> – violence (term)<br /> – adult content (term)</p>
<p>Genre (Vocabulary)<br /> – Comedy (term)<br /> – Romance (term)</p>
<p>We can config which content types are compatible with which vocabulary and which nodes are belong to which terms.</p>
<p>Some important drupal modules: Views, CCK, Path auto, FCK Editor, User points, Flags, Panels, Image cache</p>
<p>&nbsp;</p>
<p>What is a block?</p>
<p>Block is a section in a page (recent posts, news, vote to something, login box, navigation), which is movable to regions (header, footer, content top etc) in a page. Blocks can be configured to show/hide only to certain type of user roles, url patterns or some other advanced criteria. (Content area is not a block)</p>
<p>What is a node in Drupal?</p>
<p>A node is a unit of content. It has a type. Page, News or as Testimonial.</p>
<p><strong><a href="http://drupal-interview-questions.blogspot.com/2010/02/35-which-are-core-required-modules-in.html">Which are the core required modules in drupal 6.x ?</a> </strong></p>
<p>1. Block &#8212; Controls the boxes that are displayed around the main content. <br /> 2. Filter &#8212; Handles the filtering of content in preparation for display. <br /> 3. Node &#8212; Allows content to be submitted to the site and displayed on pages. <br /> 4. System &#8212; Handles general site configuration for administrators. <br /> 5. User &#8212; Manages the user registration and login system.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration:underline;">Drupal Modules</span></strong></p>
<p>These key modules are some of the most important ones to add no matter what type of site you want to build with Drupal.</p>
<ul>
<li><a href="http://drupal.org/project/mollom">Mollom</a> for spam protection</li>
<li><a href="http://drupal.org/project/pathauto">PathAuto</a> for configurable automated URLs</li>
</ul>
<p>We need  TOKEN module http://drupal.org/project/token</p>
<p>&nbsp;</p>
<ul>
<li><a href="http://drupal.org/project/fckeditor">FCKEditor</a> for WYSIWYG post editing [download FCK Editor from this link <a href="http://sourceforge.net/projects/fckeditor/files/FCKeditor/2.6.6/FCKeditor_2.6.6.zip/download">http://sourceforge.net/projects/fckeditor/files/FCKeditor/2.6.6/FCKeditor_2.6.6.zip/download</a> ]</li>
</ul>
<p>Download FCKEDitor from sourcrforge and unzip it.</p>
<p>Place this unzip FCKEditor folder inside sites/aa/modules/FCKEditor .</p>
<p>There will be another folder as FCKEditor in FCKedior module folder ,copy the unzip from above link and copy here .</p>
<ul>
<li><a href="http://drupal.org/project/imce">IMCE</a> for      uploading images to insert into posts</li>
<li><a href="http://drupal.org/project/poormanscron">Poor      Mans Cron</a> for easy execution of the Drupal cron file</li>
</ul>
<p><strong><span style="text-decoration:underline;"> </span></strong>What is VIEW Module ?</p>
<p>VIEW is a powerful query builder for Drupal that allows you to fetch and present lists and tables of content (posts/nodes) to the user in ways that are tailored to your site and your content.</p>
<p>The Views module provides a flexible method for Drupal site designers to control how lists and tables of content (nodes in Views 1, almost anything in Views 2) are presented. Views can be used to generate reports, create summaries, and display collections of images and other content.</p>
<p>&nbsp;</p>
<p><strong>You need Views if:</strong></p>
<ul>
<li>You like the default front page view, but you find you      want to sort it differently. </li>
<li>You like the default taxonomy/term view, but you find      you want to sort it differently; for example, alphabetically. </li>
<li>You use /tracker, but you want to restrict it to posts      of a certain type. </li>
<li>You like the idea of the &#8216;article&#8217; module, but it      doesn&#8217;t display articles the way you like. </li>
<li>You want a way to display a block with the 5 most      recent posts of some particular type. </li>
<li>You want to provide &#8216;unread forum posts&#8217;. </li>
<li>You want a monthly archive similar to the typical      Movable Type/Wordpress archives that displays a link to the in the form of      &#8220;Month, YYYY (X)&#8221; where X is the number of posts that month, and      displays them in a block. The links lead to a simple list of posts for      that month. </li>
</ul>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=147&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2011/03/13/drupal-termnology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery Tutorial Demo: Select All Checkboxes &amp; validate Form</title>
		<link>http://anandshahil11.wordpress.com/2011/03/07/jquery-tutorial-demo-select-all-checkboxes-validate-form/</link>
		<comments>http://anandshahil11.wordpress.com/2011/03/07/jquery-tutorial-demo-select-all-checkboxes-validate-form/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:01:39 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=139</guid>
		<description><![CDATA[This tutorial will teach you to add validation using JQUERY validate.js file and get multiple checkbox valu using JQUERY jquery.js file. These two js files jquery.js , jquery.validate.js is very useful when user wants to do validation of form on client side server . Here the attached code.just download these two js files from JQUERY [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=139&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>This tutorial will teach you to add validation using JQUERY validate.js file and get multiple checkbox valu using JQUERY jquery.js file.</code></p>
<p>These two js files jquery.js , jquery.validate.js is very useful when user wants to do validation of form on client side server .</p>
<p><a href="http://anandshahil11.files.wordpress.com/2011/03/jqueryimage1.jpg"><img class="aligncenter size-full wp-image-140" title="jqueryImage1" src="http://anandshahil11.files.wordpress.com/2011/03/jqueryimage1.jpg?w=468&#038;h=267" alt="" width="468" height="267" /></a></p>
<p>Here the attached code.just download these two js files from JQUERY site and embedd in below code and run the file on browser .</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;jQuery Tutorial Demo: Select All Checkboxes&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;/jquery/jquery.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;/jquery/jquery.validate.js&#8221;&gt;&lt;/script&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;body{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px}<br />
h1, h2{font-size:20px;}&lt;/style&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function()<br />
{<br />
$(&#8220;#paradigm_all&#8221;).click(function()<br />
{<br />
var checked_status = this.checked;<br />
$(&#8220;input[name=paradigm[]]&#8221;).each(function()<br />
{<br />
this.checked = checked_status;<br />
});<br />
});<br />
});</p>
<p>//initiate validator on load<br />
$(function() {<br />
// validate contact form on keyup and submit<br />
$(&#8220;#userForm&#8221;).validate({<br />
//set the rules for the field names<br />
rules: {<br />
first_name: {<br />
required: true,<br />
minlength: 2<br />
},<br />
last_name: {<br />
required: true,<br />
minlength: 2<br />
},<br />
email: {<br />
required: true,<br />
email: true<br />
},<br />
company: {<br />
required: true,<br />
minlength: 2<br />
},<br />
},<br />
//set messages to appear inline<br />
messages: {<br />
first_name: &#8220;*Please enter First Name&#8221;,<br />
last_name: &#8220;*Please enter Last Name&#8221;,<br />
email: &#8220;*Please enter a valid Email address&#8221;,<br />
company: &#8220;*Please enter Company Name&#8221;<br />
}<br />
});<br />
});</p>
<p>&lt;/script&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
.error {<br />
color: red;<br />
font: 12pt verdana;<br />
padding-left: 10px<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</p>
<p>&lt;h1&gt;jQuery Tutorial: Multiple Checkbox values &amp; Validation of FORM &lt;/h1&gt;<br />
&lt;p&gt;You will learn how to select/deselect all checkbox and get all the values of checked box.&lt;br/&gt;<br />
This will also teach you to validate your FORM using JQUERY validate.js.<br />
&lt;/p&gt;<br />
&lt;br/&gt;&lt;br/&gt;<br />
&lt;?php<br />
if(isset($_POST) &amp;&amp; !empty($_POST))<br />
{<br />
var_dump($_POST);<br />
}<br />
?&gt;<br />
&lt;form name=&#8221;myform&#8221; action =&#8221;#&#8221; id=&#8221;userForm&#8221; method=&#8217;post&#8217; enctype=&#8217;multipart/form-data&#8217;&gt;<br />
&lt;label for=&#8221;first_name&#8221;&gt;First Name&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;first_name&#8221; id=&#8221;first_name&#8221; /&gt;&lt;br /&gt;<br />
&lt;label for=&#8221;last_name&#8221;&gt;Last Name&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;last_name&#8221; id=&#8221;last_name&#8221; /&gt;&lt;br /&gt;<br />
&lt;label for=&#8221;email&#8221;&gt;Email address/Username&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;email&#8221; id=&#8221;email&#8221; /&gt;&lt;br /&gt;<br />
&lt;label for=&#8221;company&#8221;&gt;Company&lt;/label&gt;&lt;br /&gt;<br />
&lt;input name=&#8221;company&#8221; id=&#8221;company&#8221; /&gt;&lt;br /&gt;&lt;br /&gt;<br />
&lt;label&gt;Role&lt;/label&gt;&lt;br/&gt;<br />
&lt;input type=&#8221;checkbox&#8221; name=&#8221;paradigm[]&#8221; value=&#8221;Imperative&#8221;&gt;Imperative&lt;br/&gt;<br />
&lt;input type=&#8221;checkbox&#8221; name=&#8221;paradigm[]&#8221; value=&#8221;Object-Oriented&#8221;&gt;Object-Oriented&lt;br/&gt;<br />
&lt;input type=&#8221;checkbox&#8221; name=&#8221;paradigm[]&#8221; value=&#8221;Functional&#8221;&gt;Functional&lt;br/&gt;<br />
&lt;input type=&#8221;checkbox&#8221; id=&#8221;paradigm_all&#8221;&gt;Select All&lt;br&gt;&lt;br /&gt;<br />
&lt;input type=&#8221;submit&#8221;  value=&#8221;save&#8221; /&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=139&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2011/03/07/jquery-tutorial-demo-select-all-checkboxes-validate-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2011/03/jqueryimage1.jpg" medium="image">
			<media:title type="html">jqueryImage1</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal 6 Installation on windows</title>
		<link>http://anandshahil11.wordpress.com/2010/08/05/drupal-6-installation-on-windows/</link>
		<comments>http://anandshahil11.wordpress.com/2010/08/05/drupal-6-installation-on-windows/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 15:21:13 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=115</guid>
		<description><![CDATA[DRUPAL INSTALLATION 1.UNZIP  Drupal-6.15 and rename folder drupal-6.1.5 to drupal and copy that in your server webroot I am using XAMPP , so I kept this “drupal”  folder in “htdocs” folder Start your Xampp server. On browser , type:- http://localhost/drupal it will show this page as in screenshot 2.Follow drupal instructions Choose language to English [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=115&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DRUPAL INSTALLATION</p>
<p>1.UNZIP  Drupal-6.15 and rename folder drupal-6.1.5 to drupal and copy that in your server webroot<br />
I am using XAMPP , so I kept this “drupal”  folder in “htdocs” folder<br />
Start your Xampp server.<br />
On browser , type:-</p>
<p>http://localhost/drupal</p>
<p>it will show this page as in screenshot<br />
2.Follow drupal instructions<br />
Choose language to English</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/11.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/11.jpg?w=468&#038;h=344" alt="1" title="1" width="468" height="344" class="aligncenter size-full wp-image-123" /></a></p>
<p>3. After that you will get this screen</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/2.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/2.jpg?w=468&#038;h=344" alt="2" title="2" width="468" height="344" class="aligncenter size-full wp-image-124" /></a></p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/3.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/3.jpg?w=468&#038;h=105" alt="3" title="3" width="468" height="105" class="aligncenter size-full wp-image-125" /></a></p>
<p>4.You will get screen like below and enter your DB name and all , after that click on ” SAVE AND CONTIUNE “ button</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/4.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/4.jpg?w=468&#038;h=365" alt="4" title="4" width="468" height="365" class="aligncenter size-full wp-image-126" /></a></p>
<p>5. After that you will see screen as shown below .<br />
This prompt error message because we don’t have “drupal_team”  database in MYSQL DB</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/51.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/51.jpg?w=468&#038;h=374" alt="5" title="5" width="468" height="374" class="aligncenter size-full wp-image-128" /></a></p>
<p> First create “drupal_team” db in MYSQL database<br />
As  shown in screenshot</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/6.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/6.jpg?w=468&#038;h=455" alt="6" title="6" width="468" height="455" class="aligncenter size-full wp-image-129" /></a></p>
<p>After creating DB name in MYSQL</p>
<p>6.Goto drupal installation browser<br />
 <br />
NOTE:- if u want then put prefix for your tables in “drupal_team” database. Its optional<br />
See screenshot:-</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/7.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/7.jpg?w=468&#038;h=491" alt="7" title="7" width="468" height="491" class="aligncenter size-full wp-image-130" /></a></p>
<p>7. after that we will see screen as shown and fill appropriate data .</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/8.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/8.jpg?w=468&#038;h=303" alt="8" title="8" width="468" height="303" class="aligncenter size-full wp-image-131" /></a></p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/9.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/9.jpg?w=468&#038;h=412" alt="9" title="9" width="468" height="412" class="aligncenter size-full wp-image-132" /></a><br />
<a href="http://anandshahil11.files.wordpress.com/2010/08/10.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/10.jpg?w=468&#038;h=306" alt="10" title="10" width="468" height="306" class="aligncenter size-full wp-image-133" /></a></p>
<p>8. AT last you will see screen as shown below , SMTP error will come but its just for mailing functionality which you can resolve in php.ini file.</p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/08/111.jpg"><img src="http://anandshahil11.files.wordpress.com/2010/08/111.jpg?w=468&#038;h=221" alt="11" title="11" width="468" height="221" class="aligncenter size-full wp-image-134" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=115&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2010/08/05/drupal-6-installation-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/11.jpg" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/2.jpg" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/3.jpg" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/4.jpg" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/51.jpg" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/6.jpg" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/7.jpg" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/8.jpg" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/9.jpg" medium="image">
			<media:title type="html">9</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/10.jpg" medium="image">
			<media:title type="html">10</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/08/111.jpg" medium="image">
			<media:title type="html">11</media:title>
		</media:content>
	</item>
		<item>
		<title>Beautiful paintings</title>
		<link>http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/</link>
		<comments>http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:47:05 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Anand stuff's]]></category>
		<category><![CDATA[Paintings]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=104</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=104&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://anandshahil11.files.wordpress.com/2010/01/les-tournesols_1772x1398.jpg"><img class="aligncenter size-full wp-image-105" title="beautiful house " src="http://anandshahil11.files.wordpress.com/2010/01/les-tournesols_1772x1398.jpg?w=468&#038;h=369" alt="" width="468" height="369" /></a></p>

<a href='http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/les-tournesols_1772x1398/' title='beautiful house '><img data-attachment-id='105' data-orig-size='1772,1398' data-liked='0'width="200" height="157" src="http://anandshahil11.files.wordpress.com/2010/01/les-tournesols_1772x1398.jpg?w=200&#038;h=157" class="attachment-thumbnail" alt="beautiful house" title="beautiful house" /></a>
<a href='http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/pommiers-en-fleurs_1240x958/' title='Utimate one'><img data-attachment-id='106' data-orig-size='1240,958' data-liked='0'width="200" height="154" src="http://anandshahil11.files.wordpress.com/2010/01/pommiers-en-fleurs_1240x958.jpg?w=200&#038;h=154" class="attachment-thumbnail" alt="Utimate one" title="Utimate one" /></a>
<a href='http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/flowers/' title='flowers'><img data-attachment-id='109' data-orig-size='640,480' data-liked='0'width="200" height="150" src="http://anandshahil11.files.wordpress.com/2010/01/flowers.jpg?w=200&#038;h=150" class="attachment-thumbnail" alt="flowers" title="flowers" /></a>
<a href='http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/flower/' title='Flower'><img data-attachment-id='110' data-orig-size='640,480' data-liked='0'width="200" height="150" src="http://anandshahil11.files.wordpress.com/2010/01/flower.jpg?w=200&#038;h=150" class="attachment-thumbnail" alt="Flower" title="Flower" /></a>
<a href='http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/anand_2/' title='Anand_2'><img data-attachment-id='111' data-orig-size='1400,1050' data-liked='0'width="200" height="150" src="http://anandshahil11.files.wordpress.com/2010/01/anand_2.jpg?w=200&#038;h=150" class="attachment-thumbnail" alt="Anand_2" title="Anand_2" /></a>

<p><a href="http://anandshahil11.files.wordpress.com/2010/01/flowers.jpg"><img class="aligncenter size-full wp-image-109" title="flowers" src="http://anandshahil11.files.wordpress.com/2010/01/flowers.jpg?w=468&#038;h=351" alt="" width="468" height="351" /></a><a href="http://anandshahil11.files.wordpress.com/2010/01/flower.jpg"><img class="aligncenter size-full wp-image-110" title="Flower" src="http://anandshahil11.files.wordpress.com/2010/01/flower.jpg?w=468&#038;h=351" alt="" width="468" height="351" /></a></p>
<p><a href="http://anandshahil11.files.wordpress.com/2010/01/pommiers-en-fleurs_1240x958.jpg"><img class="aligncenter size-full wp-image-106" title="Utimate one" src="http://anandshahil11.files.wordpress.com/2010/01/pommiers-en-fleurs_1240x958.jpg?w=468&#038;h=361" alt="" width="468" height="361" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=104&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2010/01/13/beautiful-paintings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/les-tournesols_1772x1398.jpg" medium="image">
			<media:title type="html">beautiful house </media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/les-tournesols_1772x1398.jpg?w=200" medium="image">
			<media:title type="html">beautiful house</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/pommiers-en-fleurs_1240x958.jpg?w=200" medium="image">
			<media:title type="html">Utimate one</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/flowers.jpg?w=200" medium="image">
			<media:title type="html">flowers</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/flower.jpg?w=200" medium="image">
			<media:title type="html">Flower</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/anand_2.jpg?w=200" medium="image">
			<media:title type="html">Anand_2</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/flowers.jpg" medium="image">
			<media:title type="html">flowers</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/flower.jpg" medium="image">
			<media:title type="html">Flower</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2010/01/pommiers-en-fleurs_1240x958.jpg" medium="image">
			<media:title type="html">Utimate one</media:title>
		</media:content>
	</item>
		<item>
		<title>JQuery Table Sorter Plugin</title>
		<link>http://anandshahil11.wordpress.com/2009/12/09/jquery-table-sorter-plugin/</link>
		<comments>http://anandshahil11.wordpress.com/2009/12/09/jquery-table-sorter-plugin/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:20:01 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=99</guid>
		<description><![CDATA[TableSorter plugin is used to do single column sorting as well as multiple column sorting without refreshing a whole page . Here is a small Example to show  how Tablesorter plugin works. STEP 1:- download jquery.js and jquery-tablesorter.js file STEP 2:- Embedd that js file into your source code or in your webpage. Between  &#60;HEAD&#62;&#60;/HEAD&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=99&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#800000;">TableSorter plugin is used to do single column sorting as well as multiple column sorting without refreshing a whole page .</p>
<p>Here is a small Example to show  how Tablesorter plugin works.</p>
<p></span></p>
<p><span style="color:#800000;"><span style="color:#339966;">STEP 1:- </span><br />
download jquery.js and jquery-tablesorter.js file</p>
<p><span style="color:#339966;">STEP 2:-</span> Embedd that js file into your source code or in your webpage.</p>
<p>Between  &lt;HEAD&gt;&lt;/HEAD&gt; tag , copy these lines</p>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;/path/to/jquery.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;/path/to/jquery.tablesorter.js&#8221;&gt;&lt;/script&gt;</p>
<p>NOTE:- provide jquery.js and jquery-tablesorter.js path in src attribute</p>
<p><span style="color:#339966;">STEP 3:-</span> Between  &lt;BODY&gt;&lt;/BODY&gt; tag, copy these lines and paste<br />
</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;">&lt;h1&gt;&lt;u&gt;Multiple Column Sorting  Example&lt;/u&gt;&lt;/h1&gt;</p>
<p>&lt;table  cellpadding=&#8221;3&#8243; cellspacing=&#8221;1&#8243;  width=&#8221;100%&#8221;  <span style="color:#ff0000;">id=&#8221;myTable&#8221;</span>&gt;<br />
&lt;thead &gt;<br />
&lt;tr&gt;&lt;th  width=&#8221;60&#8243; &gt;Name&lt;/th&gt;<br />
&lt;th width=&#8221;60&#8243;&gt;Task&lt;/th&gt;<br />
&lt;th  width=&#8221;60&#8243;&gt;Cell No.&lt;/th&gt;<br />
&lt;th  width=&#8221;60&#8243;&gt;Start Date&lt;/th&gt;<br />
&lt;th  width=&#8221;60&#8243;&gt;End Date&lt;/th&gt;<br />
&lt;th  width=&#8221;60&#8243;&gt;Completed By&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;/thead&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;&lt;td&gt;<br />
Anand<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
PHP<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3333<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
ak60991<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Vishal<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Coldfusion<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3334<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
vu60998<br />
&lt;/td&gt;</p>
<p>&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Anand<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Coldfusion<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3334<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
ak60991<br />
&lt;/td&gt;</p>
<p>&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Himadri<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Coldfusion<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3334<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
hr60001<br />
&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;tr&gt;<br />
&lt;td&gt;<br />
Gaurav<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Coldfusion<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3336<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
gt56001<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Himadri<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Oracle<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3336<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
gt56001<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
Vishal<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
Oracle<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
111-222-3336<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/16/2009<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
11/23/2009&lt;/td&gt;<br />
&lt;td&gt;<br />
vu60998<br />
&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;/tbody&gt;<br />
&lt;/table&gt;<br />
&lt;p&gt;&lt;span&gt;&lt;font color=&#8221;#990000&#8243; size=&#8221;+1&#8243;&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;/font&gt;&lt;/span&gt; hold  shift key and click on  multiple headers/columns to do multiple column sorting!&lt;/p&gt;</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;"><span style="color:#339966;">STEP 4:-</span>Between &lt;HEAD&gt;&lt;/HEAD&gt; tag , copy and paste these lines<br />
</span></p>
<p><span style="color:#800000;">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;jQuery.noConflict();&#8211;&gt;<br />
var $j = jQuery.noConflict();</p>
<p>$j (document).ready(function()     {<br />
//$j (&#8220;#myTable&#8221;).tablesorter({widgets: ['zebra']});</p>
<p>$j (&#8220;#myTable&#8221;).tablesorter();<br />
}<br />
);<br />
&lt;/script&gt;</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;">Description: </span></p>
<p><span style="color:#800000;">this particular script will apply tablesorter() function of JQuery to table which has id &#8216;myTable&#8217;</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;"><span style="color:#339966;">STEP 5:-</span> Add CSS style sheet into your code .</span></p>
<p><span style="color:#800000;">Copy and paste these lines between &lt;HEAD&gt;&lt;/HEAD&gt; tag</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;">&lt;style type=&#8221;text/css&#8221;&gt;<br />
.sort{font-size:9px;}</p>
<p>table.tablesorter .header {<br />
background-image: url(&#8220;/path/to/bg.png&#8221;);<br />
background-repeat: no-repeat;<br />
padding-left: 30px;<br />
padding-top: 8px;<br />
width:auto;<br />
}</p>
<p>table.tablesorter th.no_sort {<br />
background-image: url(&#8220;/path/to/header.PNG&#8221;);<br />
}<br />
table.tablesorter .headerSortUp {<br />
background-image: url(&#8220;/path/to/asc.png&#8221;);<br />
background-repeat: no-repeat;<br />
}<br />
table.tablesorter .headerSortDown {<br />
background-image: url(&#8220;/path/to/desc.png&#8221;);<br />
background-repeat: no-repeat;<br />
}<br />
table.tablesorter .even {<br />
background-color: #9999CC;<br />
}<br />
table.tablesorter .odd {<br />
background-color: #FFFFFF;<br />
}<br />
&lt;/style&gt;</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;">Save your code and run it . Congrats you have implemented sorting on your table .</span></p>
<p><span style="color:#800000;">Screenshot is added</span></p>
<p><a href="http://anandshahil11.files.wordpress.com/2009/12/sort2.jpg"><img class="alignnone size-full wp-image-102" title="sort" src="http://anandshahil11.files.wordpress.com/2009/12/sort2.jpg?w=468&#038;h=166" alt="" width="468" height="166" /></a></p>
<p><span style="color:#800000;"><br />
</span></p>
<p><strong><span style="color:#ffcc00;">FEW Tips: open JQuery-tablesorter.js file,</span></strong></p>
<p><span style="color:#800000;">you will see  some default values , you can change these values based on your requirements.i have commented on some parameters in below code .<br />
</span></p>
<p><span style="color:#800000;">this.defaults = {<br />
cssHeader: &#8220;header&#8221;,// css header class<br />
cssAsc: &#8220;headerSortUp&#8221;, // css headerSortUp class<br />
cssDesc: &#8220;headerSortDown&#8221;, // css headerSortDown class<br />
sortInitialOrder: &#8220;asc&#8221;, // you can change it based on how you want initial sorting<br />
sortMultiSortKey: &#8220;shiftKey&#8221;,// here you can use CTRL key also<br />
sortForce: null,<br />
sortAppend: null,<br />
textExtraction: &#8220;simple&#8221;,<br />
parsers: {},<br />
widgets: ['zebra'],<br />
widgetZebra: {css: ["even","odd"]},// css even ,odd class<br />
// below commented code will disable sorting on first and second column<br />
//headers: {0: { sorter: false}, 1: {sorter: false}},<br />
headers: {},<br />
widthFixed: false,<br />
cancelSelection: true,<br />
sortList: [],<br />
headerList: [],<br />
dateFormat: &#8220;us&#8221;,<br />
decimal: &#8216;.&#8217;,<br />
debug: false<br />
};</span></p>
<p><span style="color:#800000;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=99&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2009/12/09/jquery-table-sorter-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>

		<media:content url="http://anandshahil11.files.wordpress.com/2009/12/sort2.jpg" medium="image">
			<media:title type="html">sort</media:title>
		</media:content>
	</item>
		<item>
		<title>LIGHTBOX Tutorial</title>
		<link>http://anandshahil11.wordpress.com/2009/11/05/lightbox-tutorial/</link>
		<comments>http://anandshahil11.wordpress.com/2009/11/05/lightbox-tutorial/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 13:17:13 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=96</guid>
		<description><![CDATA[Lightbox is a useful JavaScript, which allows you to watch photos in a semi-transparent overlay to your site. When you click on a link, the picture is shown above the content of your page, which frees you of limitations like columns. This tutorial is about setting up Lightbox to work on your page. STEP 1: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=96&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lightbox is a useful JavaScript, which allows you to watch photos in a semi-transparent overlay to your site. When you click on a link, the picture is shown above the content of your page, which frees you of limitations like columns.</p>
<p>This tutorial is about setting up Lightbox to work on your page.</p>
<p>STEP 1: download lightbox.js , lightbox.css ,prototype.js,scriptaculous.js,effects.js and builder.js</p>
<p>&nbsp;</p>
<p>STEP 2: Create a folder &#8221;launchpad&#8221; and &#8221;js&#8221; , &#8220;css&#8221; and &#8220;image&#8221; sub folder inside &#8221;launchpad&#8221; folder.</p>
<p>NOTE:- you can create a folder structure according to your wish also .</p>
<p>In &#8220;js&#8221; folder , keep all js files like:</p>
<p>lightbox.js ,prototype.js,scriptaculous.js,effects.js and builder.js</p>
<p>In &#8220;css&#8221; folder . keep lightbox.css file.</p>
<p>In &#8220;images&#8221; folder , keep all your images that you want to be displayed as photo gallery.</p>
<p>STEP 3: keep &#8220;lauchpad&#8221; folder inside C:\ drive</p>
<p>NOTE:- you can put this folder anywhere according to your wish but then you have to take care of Path of these folder.</p>
<p>STEP 4: Create lightbox.html page (you can rename your filename also.)</p>
<p>source code of lightbox.html :-</p>
<p>&nbsp;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; Lightbox Example&lt;/title&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;c:/lightbox/css/lightbox.css&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</p>
<p>// Lightbox.css :- for lightbox layout designing<br />
&lt;br/&gt;<br />
&lt;script src=&#8221;c:/lightbox/js/prototype.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
//prototype.js :-This will call to a needed Javascript file, &#8216;prototype.&#8217; Without prototype, Lightbox WILL NOT function.<br />
&lt;br/&gt;</p>
<p>&lt;script src=&#8221;c:/lightbox/js/scriptaculous.js?load=effects,builder&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<p>//scriptaculous.js :- Above statement  Not only  it calls to scriptaculous, but it will also call to effects.js and builder.js. Scriptaculous has a feature that will load the needed JS files with itself, hence the ?load after scriptaculous.js</p>
<p>&lt;br/&gt;</p>
<p>&lt;script src=&#8221;c:/lightbox/js/lightbox.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
//Lightbox.js</p>
<p>&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Light Box Example&lt;/h1&gt;<br />
&lt;br/&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/a.jpg&#8221; rel=&#8221;lightbox&#8221; title=&#8221;Gallery&#8221;&gt;What is it?&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</p>
<p>// The beauty of Lightbox is that you only need to call to it in link attributes, and not image attributes. &lt;br/&gt;<br />
// rel=&#8221;lightbox&#8221; tells the webserver that the relation of this link is Lightbox, so, it will link Lightbox.js and all other JS files to the link. &lt;br/&gt;<br />
// Title is optional, it will be displayed below the image&lt;br/&gt;<br />
// Now, we&#8217;ll link some images together, commented code will be after so you understand.&lt;br/&gt;</p>
<p>&lt;br/&gt;&lt;br/&gt;</p>
<p>&lt;a href=&#8221;c:/lightbox/images/a.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 1&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/b.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 2&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/c.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 3&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/d.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 4&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/e.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 5&lt;/a&gt;&lt;br/&gt;<br />
&lt;br/&gt;&lt;br/&gt;<br />
//Everything is the same as above, except that we&#8217;ve added within brackets the word &#8216;outdoors.&#8217; Outdoors links those five images together so that we will get &#8216;Next&#8217; and/or &#8216;Previous&#8217; linkings within Lightbox.<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>copy and paste this code into lightbox.html file</p>
<p>NOTE: -</p>
<p>&lt;a href=&#8221;c:/lightbox/images/a.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 1&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/b.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 2&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/c.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 3&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/d.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 4&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href=&#8221;c:/lightbox/images/e.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 5&lt;/a&gt;&lt;br/&gt;</p>
<p>In the above code ,</p>
<p>you   can rename your image name as well as you can use &#8220;n&#8221;  number of images that has to be displayed.</p>
<p>suppose , i can add other statement in above code,like this</p>
<p>&lt;a href=&#8221;c:/lightbox/images/hello.jpg&#8221; rel=&#8221;lightbox[outdoors]&#8220;&gt;Gallery 6&lt;/a&gt;</p>
<p>STEP 5: In lightbox.css,</p>
<p>change  path of images for these attributes</p>
<p>fileLoadingImage:        &#8216;c:/lightbox/images/loading.gif&#8217;,     <br />
 fileBottomNavCloseImage: &#8216;c:/lightbox/images/closelabel.gif&#8217;,</p>
<p>STEP 6: run lightbox.html page and click on  any of links to see lightbox effects .</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=96&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2009/11/05/lightbox-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Magic Methods</title>
		<link>http://anandshahil11.wordpress.com/2009/07/21/php-magic-methods/</link>
		<comments>http://anandshahil11.wordpress.com/2009/07/21/php-magic-methods/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:14:26 +0000</pubDate>
		<dc:creator>anandshahil</dc:creator>
				<category><![CDATA[php stuff]]></category>

		<guid isPermaLink="false">http://anandshahil11.wordpress.com/?p=93</guid>
		<description><![CDATA[MAGIC METHODS 1.Why magic methods ? Ans: In PHP,  a variable can take any form depending on the data passed to it. Also PHP automatically creates variable and assigns values to it even if the variables are not defined. But in Object Oriented Programming all the data members/methods needs to be defined. To solve some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=93&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;"><span style="color:#339966;">MAGIC METHODS</span></span></strong></p>
<p><span style="color:#800000;">1.<strong><span style="color:#ff6600;">Why magic methods ?</span></strong></span></p>
<p><span style="color:#800000;">Ans:</span></p>
<p><span style="color:#800000;">In PHP,  a variable can take any form depending on the data passed to it. Also PHP automatically creates variable and assigns values to it even if the variables are not defined. But in Object Oriented Programming all the data members/methods needs to be defined. To solve some of these problems in OOPS environment magic methods have been introduced in PHP5.</span></p>
<ol>
<li><span style="color:#800000;">Magic methods are member function that is available for all instance of class.</span></li>
<li><span style="color:#800000;">Magic method stars with __(double underscore), like: __get () ,__set()</span></li>
<li><span style="color:#800000;">Magic methods are always declared as PUBLIC.</span></li>
</ol>
<p><span style="color:#800000;"><strong><span style="color:#339966;">LIST of MAGIC METHODS used in PHP 5 :</span></strong><strong> </strong></span></p>
<p><strong><span style="color:#800000;">__get() , __set() , __autoload , __sleep() , __wakeup() , __construct() , __destruct() , __isset() , __unset() , __clone , __call ,__toString()</span></strong> <span style="color:#800000;"><strong> </strong></span></p>
<p><span style="color:#800000;"><strong>1. </strong><strong><span style="color:#339966;">__construct()</span></strong><strong><span style="color:#339966;"> </span>:- </strong>This methods gets called whenever an object of a class is instantiated.</span> <span style="color:#800000;"><strong></strong></span></p>
<p><span style="color:#800000;"><strong>2. </strong><strong><span style="color:#339966;">__destruct()</span></strong><strong> :</strong>-  This methods gets called whenever an object of a class is destroyed or object goes out of scope.</span> <span style="color:#800000;"><strong></strong></span></p>
<p><span style="color:#800000;"><strong>3. </strong><strong><span style="color:#339966;">__set()</span></strong><strong> :</strong>-  This methods get automatically called whenever you assigns data to a undefined attributes of an class in PHP 5. With this method the programmer can keep track on the variables which are not defined inside the class.</span></p>
<ol></ol>
<p><span style="color:#000000;"><strong>Syntax:</strong></span></p>
<p style="padding-left:30px;text-align:justify;"><span style="color:#800000;">&lt; ?</span><span style="color:#800000;"><strong></strong></span></p>
<p><span style="color:#800000;"><strong>function</strong> __set($data,$value){</span></p>
<p><span style="color:#800000;"> <em>//$data &#8211; holds the name of the undefined attributes</em></span></p>
<p><span style="color:#800000;"><em> //$value &#8211; holds the value assigned to the undefined attributes.</em></span></p>
<p><span style="color:#800000;">}</span></p>
<p><strong><span style="color:#800000;">?&gt;<br />
</span></strong></p>
<p><span style="color:#000000;"><strong>Example:</strong></span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> magicmethod{</span>
<span style="color:#800000;">               <strong>function</strong> __set($data,$value)</span>
<span style="color:#800000;">               {</span>
<span style="color:#800000;">                               echo "Error assigning values to undefined attributes";</span>
<span style="color:#800000;">                               echo "attributes Called:".$data;</span>
<span style="color:#800000;">                               echo "Value assigned to attributes:".$value;</span>
<span style="color:#800000;">               } </span>
<span style="color:#800000;">}</span>
<span style="color:#800000;">$a = <strong>new</strong> magicmethod();</span>
<span style="color:#800000;">$a-&gt;setData = 20;</span>
<strong><span style="color:#800000;">?&gt;</span></strong>
<strong></strong><span style="color:#800000;">In Above example :</span><span style="color:#800000;"> </span></pre>
<ol></ol>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Error assigning values to undefined attributes<br />
attributes Called:setData<br />
Value assigned to attributes:20</span></p>
<p><strong><span style="color:#800000;">Explain:</span></strong><span style="color:#800000;"><br />
</span></p>
<p><span style="color:#800000;">In the magicmethod class setData is not defined so the php compiler excutes __set() magic method and displays error message.</span></p>
<p><span style="color:#800000;">And  assigned value 20 to an attribute setData of magicmethod class.</span> <span style="color:#800000;"></span></p>
<p><span style="color:#800000;"><span style="color:#339966;"><span style="color:#000000;">5. </span>__get()</span> :- This methods get automatically called when you try to retrieves the data of undefined attributes of an class in PHP 5.</span></p>
<ol></ol>
<p><span style="color:#800000;"> </span></p>
<p><strong><span style="color:#000000;">Syntax:</span></strong></p>
<pre><span style="color:#800000;"><strong>function</strong> __get($data)</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">     <em>//$data holds the name of the undefined attributes getting called.</em></span>
<span style="color:#800000;">}</span>
<span style="color:#800000;"> </span><span style="color:#800000;"> </span>
<strong><span style="color:#000000;">Example:</span>
</strong><span style="color:#800000;"><strong>&lt;</strong> ?</span>
<span style="color:#800000;"><strong>class</strong> magicmethod</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">   <strong>function</strong> __get($data)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">       echo "Error accessing undefined attributes";</span>
<span style="color:#800000;">       echo "attributes Called:".$data;</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;">}</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$a = <strong>new</strong> magicmethod();</span>
<span style="color:#800000;">echo $a-&gt;setData;</span>
<span style="color:#800000;"> </span>
<strong><span style="color:#800000;">?&gt;</span></strong>
<span style="color:#800000;"> </span>
<span style="color:#800000;"><strong>Output:</strong>
Error accessing undefined attributes
attributes Called:setData</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">Explain: </span>
<span style="color:#800000;">a.echo an attribute setData of magicmethod class.</span>
<span style="color:#800000;">b.But in the magicmethod class setData is not defined so the php compiler excutes __get() magic method and displays error message</span><span style="color:#800000;"> </span>

6.<span style="color:#800000;"><span style="color:#339966;">__cal()</span> :- The __call Magic method in <strong>PHP5</strong> get called when accessing an undeclared or undefined methods of an class. With this magic method the programmer can keep track on the undeclared method which are not defined inside the class.</span></pre>
<ol></ol>
<p><span style="color:#000000;"><strong>Syntax:</strong></span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>function</strong> __call($data,$argument)</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">               <em>//$data holds the name of the undefined method getting called.</em></span>
<span style="color:#800000;">        <em>//$argument holds the argument passed to the method.</em></span>
<span style="color:#800000;">}</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"> </span></p>
<p><span style="color:#000000;"><strong>Example:</strong></span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> magicmethod</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">               <strong>function</strong> __call($data,$argument)</span>
<span style="color:#800000;">               {</span>
<span style="color:#800000;">                               echo "Error accessing undefined Method";</span>
<span style="color:#800000;">                               echo "Method Called: ".$data;</span>
<span style="color:#800000;">                               echo "Argument passed to the Method: ".$argument;</span>
<span style="color:#800000;">               }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">}</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$a = <strong>new</strong> magicmethod();</span>
<span style="color:#800000;">echo $a-&gt;setData();  <em>//Calling setData method</em></span>
<span style="color:#800000;"> </span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Error accessing undefined Method<br />
Method Called: setData<br />
Argument passed to the Method: Array (Array of the Argument Passed)</span></p>
<p><span style="color:#800000;">Explain:</span></p>
<p><span style="color:#800000;">1.trying to call setData method of magicmethod class.</span></p>
<p><span style="color:#800000;">2.Now in the magicmethod class setData is not defined so the php compiler excutes __call() magic method and displays error message.</span> <span style="color:#800000;"></span></p>
<p><span style="color:#000000;"><br />
</span></p>
<p><span style="color:#800000;"><span style="color:#339966;"><span style="color:#000000;">6. </span>__sleep()</span> :-  This methods gets called when you serialize the object in PHP 5. Serializing is required to pass complex data across the network or PHP pages. It is also used to store data(files, database, cookies etc).</span></p>
<ol></ol>
<p><strong><span style="color:#000000;">Syntax:</span></strong></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>function</strong> __sleep()</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">               ...</span>
<span style="color:#800000;">               return serialised data;</span>
<span style="color:#800000;">}</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><strong><span style="color:#000000;">Example:</span></strong></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> magicmethod</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">               <strong>function</strong> __sleep()</span>
<span style="color:#800000;">               {</span>
<span style="color:#800000;">                               echo "Performing Clean-Up Operation Before Serializing Data ";</span>
<span style="color:#800000;">                               return array("Serialized Data","1","2","3");</span>
<span style="color:#800000;">               }</span>
<span style="color:#800000;">}</span>
<span style="color:#800000;">$a = <strong>new</strong> magicmethod();</span>
<span style="color:#800000;">$serializedata = serialize($a);</span>
<span style="color:#800000;">echo $serializedata;</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Performing Clean-Up Operation Before Serializing Data</span><span style="color:#800000;"> O:11:”magicmethod”:4:{s:15:”Serialized Data”;N;s:1:”1″;N;s:1:”2″;N;s:1:”3″;N;}<br />
</span></p>
<p><span style="color:#800000;">Explain:</span></p>
<p><span style="color:#800000;"> a.trying to serialize the object of magicmethod class.</span></p>
<p><span style="color:#800000;"> b.Now the PHP Compiler calls the __sleep() Magic method which return an array having the serialized values</span></p>
<p><span style="color:#800000;"> </span></p>
<p><span style="color:#800000;"><span style="color:#000000;"> 7.</span><span style="color:#339966;">__wakeup()</span> :- This methods gets called when the object is about to be unserialized in PHP 5. This method allows us to restore the serialized data to its normal form.</span></p>
<p><span style="color:#800000;"><strong><span style="color:#000000;">Syntax:</span></strong><br />
</span></p>
<pre><span style="color:#800000;"><strong>function</strong> __wakeup()</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">               ...</span>
<span style="color:#800000;">}</span><span style="color:#800000;">
</span></pre>
<p><strong><span style="color:#000000;">Example:</span></strong></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> magicmethod</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">               <strong>private</strong> $setName;</span>
<span style="color:#800000;">               <strong>function</strong> __sleep()</span>
<span style="color:#800000;">               {</span>
<span style="color:#800000;">                               echo "Performing Clean-Up Operation Before Serializing Data ";</span>
<span style="color:#800000;">                               $this-&gt;setName = "Hello World!!!";</span>
<span style="color:#800000;">                               return array(setName);</span>
<span style="color:#800000;">               }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">               <strong>function</strong> __wakeup()</span>
<span style="color:#800000;">               {</span>
<span style="color:#800000;">                               echo "Performing Clean-Up Operation Before Unserializing Data ";</span>
<span style="color:#800000;">                               echo $this-&gt;setName;</span>
<span style="color:#800000;">               }</span>
<span style="color:#800000;">}</span>
<span style="color:#800000;">$a = <strong>new</strong> magicmethod();</span>
<span style="color:#800000;">$serializedata = serialize($a);</span>
<span style="color:#800000;">$serializedata1 = unserialize($serializedata);</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Performing Clean-Up Operation Before Serializing Data<br />
Performing Clean-Up Operation Before Unserializing Data<br />
Hello World!!!</span></p>
<p><span style="color:#800000;">Explain:</span></p>
<p><span style="color:#800000;">a.trying to serialize the object of magicmethod class</span></p>
<p><span style="color:#800000;">b.Now the PHP Compiler calls the __sleep method which return an array having the serialized values</span></p>
<p><span style="color:#800000;">c. After serialize data, i am calling the unserialize function; now the PHP compiler will call the __wakeup method which contains the original data that was serialized</span> <span style="color:#800000;"><span style="color:#339966;">.</span></span></p>
<p><span style="color:#800000;"><span style="color:#339966;"><span style="color:#000000;">8. </span>__autoload():-</span>This methods get automatically called whenever you try to load an object of class which resides in separate file and you have not included those files using include,require and include_once. To use this method it is mandatory to the PHP filename as that of the class name because this methods accepts the class name as the argument.</span></p>
<ol></ol>
<p><strong><span style="color:#000000;">Syntax:</span></strong></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;">   <strong>function</strong> __autoload($classname)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">      require($classname.".php");</span>
<span style="color:#800000;">   }</span>
<em><span style="color:#800000;">//$classname is the name of the Class.</span></em>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><strong><span style="color:#000000;">Example:</span></strong></p>
<p><span style="color:#800000;"></span></p>
<p><span style="color:#800000;">//magicmethod1.php</span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;">    <strong>class</strong> magicmethod1</span>
<span style="color:#800000;">    {</span>
<span style="color:#800000;">        <strong>function</strong> __construct()</span>
<span style="color:#800000;">        {</span>
<span style="color:#800000;">            echo "MagicMethod1 Class Called";</span>
<span style="color:#800000;">        }</span>
<span style="color:#800000;">    }</span>
<span style="color:#800000;">  ?&gt;</span>
<span style="color:#800000;">&lt;?php</span>
<span style="color:#800000;">    <strong>function</strong> __autoload($classname)</span>
<span style="color:#800000;">    {</span>
<span style="color:#800000;">        include $classname.".php"; <em>//Here $classname=magicmethod1</em></span>
<span style="color:#800000;">    }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">    $a = <strong>new</strong> magicmethod1();</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong> Output:</strong> MagicMethod1 Class Called</span></p>
<p><span style="color:#800000;"> Explain:</span></p>
<p><span style="color:#800000;">trying to create an object of magicmethod1 class, but i have not included the magicmethod1.php so PHP compiler calls the __autoload() method which include that magicmethod1.php file.</span></p>
<p><span style="color:#800000;"> </span> <span style="color:#800000;"><span style="color:#339966;"><span style="color:#000000;">9.</span>__clone() </span>:- PHP5 has introduced clone method which creates an duplicate copy of the object. __clone methods automatically get called whenever you try to call <em>clone</em> methods in PHP 5. This operator does not creates a reference copy.</span></p>
<ol></ol>
<p><span style="color:#800000;">In <strong>PHP 5</strong> when you assign one object to another object creates a reference copy and does not create duplicate copy. This would create a big mess as all the object will share the same memory defined for the object. To counter this PHP 5 has introduced clone method</span></p>
<p><span style="color:#800000;">Example:</span></p>
<p><span style="color:#800000;">//without cloning</span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> Animal</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">   <strong>public</strong> $name;</span>
<span style="color:#800000;">   <strong>public</strong> $legs;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">   <strong>function</strong> setName($name)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">               $this-&gt;name = $name;</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">   <strong>function</strong> setLegs($legs)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">               $this-&gt;legs = $legs;</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;">}</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$tiger = <strong>new</strong> Animal();</span>
<span style="color:#800000;">$tiger-&gt;name = "Tiger";</span>
<span style="color:#800000;">$tiger-&gt;legs = 4;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$kangaroo = $tiger;</span>
<span style="color:#800000;">$kangaroo-&gt;name = "Kangaroo";</span>
<span style="color:#800000;">$kangaroo-&gt;legs = 2;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">echo $tiger-&gt;name."---".$tiger-&gt;legs;</span>
<span style="color:#800000;">echo "&lt;br /&gt;".$kangaroo-&gt;name."---".$kangaroo-&gt;legs;</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Kangaroo—2<br />
Kangaroo—2</span></p>
<p><strong><span style="color:#800000;">Explanation:</span></strong></p>
<ul>
<li><span style="color:#800000;">Here i have created an $tiger object of Animal class </span></li>
<li><span style="color:#800000;">Created another variable $kangaroo and assigned $tiger to $kangaroo </span></li>
<li><span style="color:#800000;">After echo it print the details entered last because both the variables are referring to the same memory location </span></li>
</ul>
<p><span style="color:#800000;">Example:</span></p>
<p><span style="color:#800000;">//with __Clone</span></p>
<pre><span style="color:#800000;">&lt; ?</span>
<span style="color:#800000;"><strong>class</strong> Animal</span>
<span style="color:#800000;">{</span>
<span style="color:#800000;">   <strong>public</strong> $name  ;</span>
<span style="color:#800000;">   <strong>public</strong> $legs;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">   <strong>function</strong> setName($name)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">               $this-&gt;name = $name;</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">   <strong>function</strong> setLegs($legs)</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">               $this-&gt;legs = $legs;</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">   <strong>function</strong> __clone()</span>
<span style="color:#800000;">   {</span>
<span style="color:#800000;">               echo "&lt;br /&gt;Object Cloning in Progress";</span>
<span style="color:#800000;">   }</span>
<span style="color:#800000;">}</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$tiger = <strong>new</strong> Animal();</span>
<span style="color:#800000;">$tiger-&gt;name = "Tiger";</span>
<span style="color:#800000;">$tiger-&gt;legs = 4;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">$kangaroo = clone $tiger;</span>
<span style="color:#800000;">$kangaroo-&gt;name = "Kangaroo";</span>
<span style="color:#800000;">$kangaroo-&gt;legs = 2;</span>
<span style="color:#800000;"> </span>
<span style="color:#800000;">echo "&lt;br /&gt;".$tiger-&gt;name."---".$tiger-&gt;legs;</span>
<span style="color:#800000;">echo "&lt;br /&gt;".$kangaroo-&gt;name."---".$kangaroo-&gt;legs;</span>
<strong><span style="color:#800000;">?&gt;</span></strong></pre>
<p><span style="color:#800000;"><strong>Output:</strong><br />
Object Cloning in Progress<br />
Tiger—4<br />
Kangaroo—2</span></p>
<p><strong><span style="color:#800000;">Explanation:</span></strong></p>
<ul>
<li><span style="color:#800000;">Here i have created an $tiger object of Animal class </span></li>
<li><span style="color:#800000;">Created another variable $kangaroo having clone of $tiger. This calls the __clone magic method </span></li>
<li><span style="color:#800000;">After echo it print the details entered by individual object as both of them are referring to separate object and memory location </span></li>
</ul>
<p><span style="color:#800000;">The above technique of cloning discussed is called shallow copy. There are other techniques called Deep Copy wherein you create duplicate copy of objects referring to other objects etc.</span></p>
<p><span style="color:#800000;"><span style="color:#000000;">10</span><span style="color:#339966;">. __toString()</span> :- <em>__toString</em> method is called when PHP needs to convert class instances into strings, for example when echoing:</span></p>
<p><span style="color:#800000;">&lt;?php</span></p>
<p><span style="color:#800000;">class SomeClass {<br />
public function __toString() {<br />
return &#8216;someclass&#8217;;<br />
}<br />
}</span></p>
<p><span style="color:#800000;">$obj = new SomeClass();<br />
echo $obj;<br />
//will output &#8216;someclass&#8217;</span></p>
<p><span style="color:#800000;">?&gt;</span></p>
<p><span style="color:#800000;"><span style="color:#000000;">11.</span> <span style="color:#339966;">__isset()</span> :- This methods get automatically called whenever you try to check the existence of the undeclared attributes of the class using <em>isset</em> function of PHP.</span></p>
<p><span style="color:#800000;"><span style="color:#000000;">12.</span><span style="color:#339966;"> __unset()</span> :- This methods get automatically called whenever you try to check the destroy or clear an undeclared attributes of the class using <em>unset</em> function of PHP</span></p>
<p><span style="color:#800000;"> </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandshahil11.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandshahil11.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandshahil11.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandshahil11.wordpress.com&amp;blog=2389687&amp;post=93&amp;subd=anandshahil11&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anandshahil11.wordpress.com/2009/07/21/php-magic-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9779cb327217961f7073bb632a25186e?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">anandshahil</media:title>
		</media:content>
	</item>
	</channel>
</rss>
