<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Mukesh Chapagain's Blog</title>
	
	<link>http://blog.chapagain.com.np</link>
	<description>Web development, PHP, MySQL, AJAX, PEAR, Smarty, Joomla, Drupal, Zen-cart, Wordpress, Programming, Freelancer Nepal</description>
	<pubDate>Sun, 25 Oct 2009 09:22:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/chapagainblog" type="application/rss+xml" /><feedburner:emailServiceId>chapagainblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>PHP : Read Write Xml with DOMDocument</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/gfv5eAfR61A/</link>
		<comments>http://blog.chapagain.com.np/php-read-write-xml-with-domdocument/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 06:12:12 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Xml]]></category>

		<category><![CDATA[dom]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=230</guid>
		<description><![CDATA[In this article, I will be showing you how to create and read xml document with php’s DOMDocument.
The DOM extension allows you to operate on XML documents through the DOM    API with PHP 5.
Below is the code to create XML file. I have named the output file ‘example.xml’. For better understanding, I [...]]]></description>
			<content:encoded><![CDATA[<p>In this article, I will be showing you how to create and read xml document with php’s DOMDocument.</p>
<blockquote><p>The DOM extension allows you to operate on XML documents through the DOM    API with PHP 5.</p></blockquote>
<p>Below is the code to create XML file. I have named the output file ‘example.xml’. For better understanding, I have written comment for almost every line of code.</p>
<p><span id="more-230"></span></p>
<pre class="brush: php;">
&lt;?php

// Create a new DOMDocument object
$dom = new DomDocument(&quot;1.0&quot;, &quot;ISO-8859-1&quot;);

// optionally the following can be done
// $dom-&gt;version  = &quot;1.0&quot;;
// $dom-&gt;encoding = &quot;ISO-8859-1&quot;;

// Create new element node 'mobiles'
$mobiles = $dom-&gt;createElement('mobiles');

// add $mobiles to the main dom
$dom-&gt;appendChild($mobiles);

// Suppose we have the following array of data
$items = array(array('name'=&gt;'samsung','price'=&gt;'21000'),
array('name'=&gt;'sony','price'=&gt;'25000'));

foreach($items as $item) {
// Create new element node 'brand'
$brand = $dom-&gt;createElement('brand');

// Create new element node 'name' with the node value
$name = $dom-&gt;createElement('name',$item['name']);

// Create new element node 'price' with the node value
$price = $dom-&gt;createElement('price',$item['price']);

// add 'name' node to 'brand' node
$brand-&gt;appendChild($name);

// add 'price' node to 'brand' node
$brand-&gt;appendChild($price);

// add brand to mobile
$mobiles-&gt;appendChild($brand);
}

// add spaces, new lines and make the XML more readable format
$dom-&gt;formatOutput = true;

// SET HEADER TO OUTPUT DATA

header('HTTP/1.1 200 OK');
header(&quot;Pragma: no-cache&quot;);
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Content-type', 'text/xml');
header('Content-Disposition: attachment; filename=&quot;example_dom.xml&quot;');

// Dump the internal XML tree back into a string
echo $dom-&gt;saveXML();

?&gt;
</pre>
<pre>The following xml file is created. The xml file is named example_dom.xml.
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;mobiles&gt;
&lt;brand&gt;
&lt;name&gt;samsung&lt;/name&gt;
&lt;price&gt;21000&lt;/price&gt;
&lt;/brand&gt;
&lt;brand&gt;
&lt;name&gt;sony&lt;/name&gt;
&lt;price&gt;25000&lt;/price&gt;
&lt;/brand&gt;
&lt;/mobiles&gt;
</pre>
<p> Here is the code to read the xml file. I have mentioned two ways to read the xml file. The first one loads the xml file, converts the data into string and prints it.
<pre class="brush: php;">
&lt;?php

// Create a new DOMDocument object
$xmlDoc = new DOMDocument();

// Load XML from a file
$xmlDoc-&gt;load(&quot;example_dom.xml&quot;);

// Dump the internal XML tree back into a string
echo $xmlDoc-&gt;saveXML();

?&gt;
</pre>
<p> The second way is to loop through the xml content and print. It’s more specific.
<pre class="brush: php;">
&lt;?php

// Create a new DOMDocument object
$xmlDoc = new DOMDocument();

// Load XML from a file
$xmlDoc-&gt;load(&quot;example_dom.xml&quot;);

// Search for all elements with tag name 'brand'
$brands = $xmlDoc-&gt;getElementsByTagName('brand');

// loop through brands and print brand name and price
foreach ($brands AS $key =&gt; $brand) {

// search for element 'name'
$name = $xmlDoc-&gt;getElementsByTagName('name');

// search for element 'price'
$price = $xmlDoc-&gt;getElementsByTagName('price');

// print node value for name and price
echo $name-&gt;item($key)-&gt;nodeValue . &quot; = &quot; . $price-&gt;item($key)-&gt;nodeValue . &quot;&lt;br /&gt;&quot;;
}

?&gt;
</pre>
</pre>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=230&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=PHP%20%3A%20Read%20Write%20Xml%20with%20DOMDocument&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fphp-read-write-xml-with-domdocument%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/php-read-write-xml-with-domdocument/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/php-read-write-xml-with-domdocument/</feedburner:origLink></item>
		<item>
		<title>PHP : Read Write Xml with SimpleXML</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/r2QLBI3kHb0/</link>
		<comments>http://blog.chapagain.com.np/php-read-write-xml-with-simplexml/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 06:01:51 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Xml]]></category>

		<category><![CDATA[simplexml]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=225</guid>
		<description><![CDATA[In this article, I will be showing you how to create and read xml document with php&#8217;s SimpleXML extension.
The SimpleXML extension provides a very simple and easily usable    toolset to convert XML to an object that can be processed with    normal property selectors and array iterators.

Below is the code [...]]]></description>
			<content:encoded><![CDATA[<p>In this article, I will be showing you how to create and read xml document with php&#8217;s SimpleXML extension.</p>
<blockquote><p>The SimpleXML extension provides a very simple and easily usable    toolset to convert XML to an object that can be processed with    normal property selectors and array iterators.</p></blockquote>
<p><span id="more-225"></span></p>
<p>Below is the code to create XML file. I have named the output file &#8216;example.xml&#8217;. For better understanding, I have written comment for almost every line of code.</p>
<pre class="brush: php;">
&lt;?php

// GENERATING XML NODE

// Create new SimpleXMLElement object
$itemsXml = new SimpleXMLElement(&quot;&lt;items&gt;&lt;/items&gt;&quot;);

// Add child element the SimpleXML element
$itemXml = $itemsXml-&gt;addChild('item');

// Add attribute to the SimpleXML element
$itemXml-&gt;addAttribute('id', 1);
$itemXml-&gt;addAttribute('type', 'simple');

$mobileXml = $itemXml-&gt;addChild('Mobiles');

// Suppose we have the following array of data
$items = array(array('name'=&gt;'nokia','weight'=&gt;'2'),
                array('name'=&gt;'samsung','weight'=&gt;'5'),
                array('name'=&gt;'sony','weight'=&gt;'3'));

foreach ($items as $item)
{
// XML PART
// Please look carefully on the variable names. They are important for using addChild method.
$brandXml = $mobileXml-&gt;addChild('Brand');
$nameXml = $brandXml-&gt;addChild('Name',$item['name']);
$weightXml = $brandXml-&gt;addChild('Weight',$item['weight']);
}

// FOR PROPER FORMATTING XML

// Create a new DOMDocument object
$doc = new DOMDocument('1.0');

// add spaces, new lines and make the XML more readable format
$doc-&gt;formatOutput = true;

// Get a DOMElement object from a SimpleXMLElement object
$domnode = dom_import_simplexml($itemsXml);

$domnode-&gt;preserveWhiteSpace = false;

// Import node into current document
$domnode = $doc-&gt;importNode($domnode, true);

// Add new child at the end of the children
$domnode = $doc-&gt;appendChild($domnode);

// Dump the internal XML tree back into a string
$saveXml = $doc-&gt;saveXML();

// SET HEADER TO OUTPUT DATA

header('HTTP/1.1 200 OK');
header(&quot;Pragma: no-cache&quot;);
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Content-type', 'text/xml');
header('Content-Disposition: attachment; filename=&quot;example.xml&quot;');

echo $saveXml;

?&gt;
</pre>
<p>The following xml file is created. The xml file is named example.xml.</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;items&gt;
  &lt;item id=&quot;1&quot; type=&quot;simple&quot;&gt;
    &lt;Mobiles&gt;
      &lt;Brand&gt;
        &lt;Name&gt;nokia&lt;/Name&gt;
        &lt;Weight&gt;2&lt;/Weight&gt;
      &lt;/Brand&gt;
      &lt;Brand&gt;
        &lt;Name&gt;samsung&lt;/Name&gt;
        &lt;Weight&gt;5&lt;/Weight&gt;
      &lt;/Brand&gt;
      &lt;Brand&gt;
        &lt;Name&gt;sony&lt;/Name&gt;
        &lt;Weight&gt;3&lt;/Weight&gt;
      &lt;/Brand&gt;
    &lt;/Mobiles&gt;
  &lt;/item&gt;
&lt;/items&gt;
</pre>
<p>Here is the code to read the xml file.<br />
I have mentioned two ways to read the xml file. The first one loads the xml file, converts the data into string and prints it.</p>
<pre class="brush: php;">
&lt;?php

// Get SimpleXMLElement object from an XML document
$xml = simplexml_load_file(&quot;example.xml&quot;);

// Get XML string from a SimpleXML element
// When you select &quot;View source&quot; in the browser window, you will see the objects and elements
echo $xml-&gt;asXML();

?&gt;
</pre>
<p>The second way is to loop through the xml content and print. It&#8217;s more specific.</p>
<pre class="brush: php;">
&lt;?php

// Get SimpleXMLElement object from an XML document
$xml = simplexml_load_file(&quot;example.xml&quot;);

// Get the name of a SimpleXML element
echo &quot;&lt;p&gt;&lt;b&gt;Root Element:&lt;/b&gt; &lt;br/&gt;&quot;;
echo $xml-&gt;getName();
echo &quot;&lt;/p&gt;&quot;;

// get the attribute of 'item' element
// Get SimpleXML element's attributes
$attribute = $xml-&gt;item-&gt;attributes();

// $attribute is an object
// looping through the object and printing the attribute name and value
echo &quot;&lt;p&gt;&lt;b&gt;Attributes:&lt;/b&gt; (of element 'item')&lt;br/&gt;&quot;;
foreach($attribute as $key =&gt; $value) {
	echo $key . &quot; = &quot; . $value . &quot;&lt;br/&gt;&quot;;
}
echo &quot;&lt;/p&gt;&quot;;

// Get the children of a specified node
$children = $xml-&gt;children();
// echo &quot;&lt;pre&gt;&quot;; print_r($children);

foreach($children as $child) {
	// get mobiles brands
	$mobiles = $child-&gt;Mobiles-&gt;Brand;

	// print brand name
	echo &quot;&lt;p&gt;&lt;b&gt;Brands:&lt;/b&gt;&lt;br/&gt;&quot;;
	foreach($mobiles as $key =&gt; $value) {
		echo $value-&gt;Name . &quot;&lt;br/&gt;&quot;;
	}
	echo &quot;&lt;/p&gt;&quot;;
}

?&gt;
</pre>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=225&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=PHP%20%3A%20Read%20Write%20Xml%20with%20SimpleXML&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fphp-read-write-xml-with-simplexml%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/php-read-write-xml-with-simplexml/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/php-read-write-xml-with-simplexml/</feedburner:origLink></item>
		<item>
		<title>PHP Javascript : Playing with multi-dimensional array</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/hqUUr6XjPqU/</link>
		<comments>http://blog.chapagain.com.np/php-javascript-playing-with-multi-dimensional-array/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 05:27:15 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[array]]></category>

		<category><![CDATA[for loop]]></category>

		<category><![CDATA[multi-dimensional]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=220</guid>
		<description><![CDATA[I had to work on multi-dimensional array with javascript and php. I had a multi-dimensional array in php. I had to load it into javascript array and then populate the html selection list.
The challenge for me was to create multi-dimensional array in javascript and populate selection list with for loop in javascript.

Here is the full [...]]]></description>
			<content:encoded><![CDATA[<p>I had to work on multi-dimensional array with javascript and php. I had a multi-dimensional array in php. I had to load it into javascript array and then populate the html selection list.</p>
<p>The challenge for me was to create multi-dimensional array in javascript and populate selection list with for loop in javascript.</p>
<p><span id="more-220"></span></p>
<p>Here is the full code containing php array, creating javascript array, using for loop in javascript to populate selection list in onclick event.</p>
<p>Given php array:-</p>
<pre class="brush: php;">

&lt;?php
$items = array(
'subject'=&gt; array(
'easy' =&gt; array('music','history'),
'difficult' =&gt; array('maths','science')
),
'sports'=&gt;array(
'easy' =&gt; array('cricket'),
'difficult' =&gt; array('football','basketball')
)
);

$keyName = array();
?&gt;
</pre>
<p>Creating array in javascript with php array:-</p>
<pre class="brush: php;">

var itemData = new Array();
	&lt;?php
	foreach($items as $key=&gt;$value)
	{
		foreach($value as $k=&gt;$v)
		{
			$v = implode(&quot;,&quot;,$v);

			if(!in_array($key,$keyName))
			{
				?&gt;
				itemData['&lt;?php echo $key; ?&gt;'] = new Array();
				&lt;?php
			}
			?&gt;
				itemData['&lt;?php echo $key; ?&gt;']['&lt;?php echo $k; ?&gt;'] = new Array('&lt;?php echo str_replace(&quot;,&quot;,&quot;','&quot;,trim($v)); ?&gt;');
		&lt;?php
			$keyName[] = $key;
		}
	}
	?&gt;
</pre>
<p>Populating selection list with javascript for loop:-</p>
<pre class="brush: jscript;">
for (i=0; i&lt;itemData['subject']['easy'].length; i++)
{
	subjectEasy.options[subjectEasy.options.length]=new Option(itemData['subject']['easy'][i],itemData['subject']['easy'][i])
}
</pre>
<p><a title="PHP Javascript Multi-dimensional array" href="http://chapagain.googlecode.com/files/multi_js.php" target="_blank">Download Full Source Code</a></p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=220&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=PHP%20Javascript%20%3A%20Playing%20with%20multi-dimensional%20array&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fphp-javascript-playing-with-multi-dimensional-array%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/php-javascript-playing-with-multi-dimensional-array/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/php-javascript-playing-with-multi-dimensional-array/</feedburner:origLink></item>
		<item>
		<title>JoomlaPack - Simply the best backup component for Joomla!</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/DPPW9ujtIOg/</link>
		<comments>http://blog.chapagain.com.np/joomlapack-simply-the-best-backup-component-for-joomla/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 07:48:19 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Joomla]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[CMS]]></category>

		<category><![CDATA[component]]></category>

		<category><![CDATA[joomlapack]]></category>

		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=168</guid>
		<description><![CDATA[I used JoomlaPack for backing up my Joomla! CMS site and I cannot stop writing about it. It&#8217;s simple, easy to use, quick, efficient and moreover it&#8217;s FREE.
It creates a full backup of your site in a single archive. The archive contains all the files, a sql file with database script and a restoration script [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I used <a title="JoomlaPack" rel="nofollow" href="http://www.joomlapack.net/" target="_blank">JoomlaPack</a> for backing up my Joomla! CMS site and I cannot stop writing about it. It&#8217;s simple, easy to use, quick, efficient and moreover it&#8217;s FREE.</p>
<p style="text-align: justify;">It creates a full backup of your site in a single archive. The archive contains all the files, a sql file with database script and a restoration script (derived from the standard Joomla! installer). You also have the option to create backup of only your database excluding the files.</p>
<p><span id="more-168"></span></p>
<blockquote>
<p style="text-align: justify;">JoomlaPack is more than a backup tool; it is a site cloner. This means that the resulting backup can be restored on any server, not only on the one it was taken from. This lets you very easily grab a copy of your live site, running on a Linux™ host, and restore it on your local test server, running on Windows™.Or even vice versa.</p>
</blockquote>
<p style="text-align: justify;">Here is a simple work-flow of JoomlaPack:-</p>
<p style="text-align: justify;">1) Download the component JoomlaPack</p>
<p style="text-align: justify;">2) Install it in Joomla</p>
<p style="text-align: justify;">3) Go to Components-&gt;JoomlaPack</p>
<p style="text-align: justify;">4) JoomlaPack Component interface appears. You can change your preferences by clicking the Configuration link or menu. The configuration includes Output Directory, Minimum access level, Backup Type (Full site backup or database backup only), etc.</p>
<p style="text-align: justify;"># Note: After you backup your online website and put it in your local machine then you have to change the Output Directory. The Output Directory should be in the absolute path,</p>
<p style="text-align: justify;">e.g. C:\xampp\htdocs\channel\administrator\components\com_joomlapack\backup</p>
<p style="text-align: justify;">OR, if you put the backup file on another online server then the Output Directory should be changed accordingly.</p>
<p style="text-align: justify;">5) Click Backup Now menu or link. You may keep short description and comment for your backup. Then click Backup Now! button.</p>
<p style="text-align: justify;">6) The AJAX or JavaScript powered backup information is shown to you.<br />
7) After the backup completes, go to Administer Backup Files.</p>
<p style="text-align: justify;">8 ) Select your Backup taken and then Download or Delete it.. as you like <img src='http://blog.chapagain.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
9) After you download the backup file, put it in your local or any other online server. And then just write down the address on your browser, e.g. http://localhost/yourwebsitename. JoomlaPack restoration script similar to Joomla! installer appears. Follow the steps.</p>
<p style="text-align: justify;">10) Finally remove or rename the installation directory and you are done.</p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=168&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=JoomlaPack%20-%20Simply%20the%20best%20backup%20component%20for%20Joomla%21&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fjoomlapack-simply-the-best-backup-component-for-joomla%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/joomlapack-simply-the-best-backup-component-for-joomla/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/joomlapack-simply-the-best-backup-component-for-joomla/</feedburner:origLink></item>
		<item>
		<title>Twitter, Facebook, Wordpress getting together</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/Nyc6nmsc3o8/</link>
		<comments>http://blog.chapagain.com.np/twitter-facebook-wordpress-getting-together/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 08:06:33 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<category><![CDATA[Twitter]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[application]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=159</guid>
		<description><![CDATA[Twitter, Facebook and wordpress are all popular and fascinating. You publish an article in your wordpress blog. And you may want to publicize your article in twitter and facebook through status update separately. It would be very easy and time saving if I could publicize my blog article in twitter and facebook as soon as [...]]]></description>
			<content:encoded><![CDATA[<p>Twitter, Facebook and wordpress are all popular and fascinating. You publish an article in your wordpress blog. And you may want to publicize your article in twitter and facebook through status update separately. It would be very easy and time saving if I could publicize my blog article in twitter and facebook as soon as the article is published.</p>
<p>But this is possible and I have implemented it as well. You just need a wordpress plugin and facebook application.</p>
<p><span id="more-159"></span></p>
<p>Wordpress plugin required: <a title="Twitterup" href="http://wordpress.org/extend/plugins/twittrup/" target="_blank" rel="nofollow">Twitterup</a></p>
<blockquote><p><strong></strong>This plugin updates your twitter status with the latest post that you&#8217;ve made. It also has the option of including a link back to your post so people can easily click on it to view the post. The link provided in the tweet can be shorted via a service of your choice: tinyurl.com, is.gd, bit.ly or snurl.com</p></blockquote>
<p>Facebook Application required: <a title="Facebook application Twitter" href="http://www.facebook.com/apps/application.php?id=2231777543" rel="nofollow"  target="_blank">Twitter</a></p>
<blockquote><p>Updates your Facebook status with Twitter status and updates your Twitter status through the application.</p></blockquote>
<p>The scenario:</p>
<p>1) You publish an article in your wordpress blog.</p>
<p>2) Your article is published as Twitter status through Twitterup wordpress plugin.</p>
<p>3) Your Facebook status is updated through the Twitter Facebook Application.</p>
<p>Finally, you combine Twitter, Facebook and Wordpress blog at a time.</p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=159&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=Twitter%2C%20Facebook%2C%20Wordpress%20getting%20together&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Ftwitter-facebook-wordpress-getting-together%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/twitter-facebook-wordpress-getting-together/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/twitter-facebook-wordpress-getting-together/</feedburner:origLink></item>
		<item>
		<title>KPMRS : Website Rank Checking and much more</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/17_xJb8lYUQ/</link>
		<comments>http://blog.chapagain.com.np/kpmrs-website-rank-checker-google-page-rank-alexa-ranking/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 04:25:54 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Web and Internet]]></category>

		<category><![CDATA[alexa]]></category>

		<category><![CDATA[bing]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[kpmrs]]></category>

		<category><![CDATA[pagerank]]></category>

		<category><![CDATA[ranking]]></category>

		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=147</guid>
		<description><![CDATA[I recently chanced upon this new website rank checking tool called KPMRS that has been making waves in the online marketing community and the Google top-ranking lists alike. This nifty service allows you to check your Website Rankings for particular keywords on popular search engines such as Google, Yahoo and Bing, all at one place.
Apart from website [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="border-collapse: collapse;">I recently chanced upon this new website rank checking tool called <a style="color: #2a5db0;" title="Check your Search Engine Ranks!" href="http://www.kpmrs.com/" target="_blank">KPMRS</a> that has been making waves in the online marketing community and the Google top-ranking lists alike. This nifty service allows you to check your Website Rankings for particular keywords on popular search engines such as Google, Yahoo and Bing, all at one place.</span></p>
<p>Apart from website rank monitoring, <a style="color: #2a5db0;" title="Check your Search Engine Ranks!" href="http://www.kpmrs.com/" target="_blank">KPMRS.com</a> offers a multitude of clever features for your website such as Google Page Rank checker, Alexa Rankings, Back Links tracking and the newest addition to their growing arsenal - the Social networking popularity of your website. <a style="color: #2a5db0;" title="Check your Search Engine Ranks!" href="http://www.kpmrs.com/" target="_blank">KPMRS</a> also dispatches weekly reports of the rank changes of your website for the UK and the US separately, to your Inbox.</p>
<p><span id="more-147"></span></p>
<p>According to the buzzword, KPMRS will also be launched on your iPhones soon. Ergo, check this website out pronto! And watch this space. This could be big.</p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=147&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=KPMRS%20%3A%20Website%20Rank%20Checking%20and%20much%20more&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fkpmrs-website-rank-checker-google-page-rank-alexa-ranking%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/kpmrs-website-rank-checker-google-page-rank-alexa-ranking/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/kpmrs-website-rank-checker-google-page-rank-alexa-ranking/</feedburner:origLink></item>
		<item>
		<title>Wordpress Plugin: Quick Adsense 1.0</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/7Sls2bBsjv8/</link>
		<comments>http://blog.chapagain.com.np/wordpress-plugin-quick-adsense-10/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 19:51:33 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[adsense]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=144</guid>
		<description><![CDATA[I was thinking of a wordpress plugin for google adsense that would make me easy to add adsense on my sidebars and on my post. I did search for a flexible one but could not find any satisfactory result. So, thought of making one by myself.
I just created a simple wp plugin named &#8216;Quick Adsense&#8217;. [...]]]></description>
			<content:encoded><![CDATA[<p>I was thinking of a wordpress plugin for google adsense that would make me easy to add adsense on my sidebars and on my post. I did search for a flexible one but could not find any satisfactory result. So, thought of making one by myself.</p>
<p>I just created a simple wp plugin named &#8216;Quick Adsense&#8217;. This plugin is in production phase. It is not full fledged yet.</p>
<p><span id="more-144"></span></p>
<p>This plugin creates a sidebar widget. After you activate this plugin, you can go to the Widgets section under Appearance. You will see a widget named &#8216;Quick Adsense&#8217;. Now, you can add this widget to your sidebar. You can edit the widget to add your adsense code. You may give title to the widget. You also have the option to hide or show the widget title.</p>
<p><a title="Quick Adsense 1.0" href="http://chapagain.googlecode.com/files/quick-adsense.zip">Download Quick Adsense 1.0</a></p>
<p>The next modification/enhancement to this plugin will be:</p>
<p>- Adding multiple widgets</p>
<p>- Making settings page for the plugin where you can add adsense code for your post and pages.</p>
<p>More suggestions are welcomed !</p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=144&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=Wordpress%20Plugin%3A%20Quick%20Adsense%201.0&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fwordpress-plugin-quick-adsense-10%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/wordpress-plugin-quick-adsense-10/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/wordpress-plugin-quick-adsense-10/</feedburner:origLink></item>
		<item>
		<title>How to Install Sample Data for Magento?</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/fOfYt2coTTU/</link>
		<comments>http://blog.chapagain.com.np/how-to-install-sample-data-for-magento/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 03:14:11 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<category><![CDATA[data]]></category>

		<category><![CDATA[how-to]]></category>

		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=138</guid>
		<description><![CDATA[1) Download Sample Data zip file from Magento Website
2) Extract the zip file
3) Drop all the tables from your magento database. It would be easy to drop the magento database and then recreate it instead of dropping individual tables.
4) Import sample data sql file into your magento database.

# Remember that, you have to drop all [...]]]></description>
			<content:encoded><![CDATA[<p>1) Download Sample Data zip file from Magento Website</p>
<p>2) Extract the zip file</p>
<p>3) Drop all the tables from your magento database. It would be easy to drop the magento database and then recreate it instead of dropping individual tables.</p>
<p>4) Import sample data sql file into your magento database.</p>
<p><span id="more-138"></span></p>
<p># Remember that, you have to drop all tables from your magento database before importing the sample sql file. You will get error afterward if you import the sample data without dropping tables from your magento database. Therefore, step 3 is important.</p>
<p>5) Go to your magento installation folder and delete local.xml file present inside app/etc folder.</p>
<p>6) Reinstall magento.</p>
<p># After you installation is complete, you may get error something like this:<br />
Integrity constraint violation: 1062 Duplicate entry &#8216;1&#8242; for key 1</p>
<p>Clear your browser cache or open your website in another browser and you are done <img src='http://blog.chapagain.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=138&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=How%20to%20Install%20Sample%20Data%20for%20Magento%3F&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fhow-to-install-sample-data-for-magento%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/how-to-install-sample-data-for-magento/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/how-to-install-sample-data-for-magento/</feedburner:origLink></item>
		<item>
		<title>Magento Admin login problem</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/bkR9c8Wrzwk/</link>
		<comments>http://blog.chapagain.com.np/magento-admin-login-problem/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:28:27 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<category><![CDATA[admin]]></category>

		<category><![CDATA[administrator]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[problem]]></category>

		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=135</guid>
		<description><![CDATA[Problem:
I had a new installation of magento. But I was unable to login as an administrator. I went to the admin login page, entered correct username and password but was redirected to the same login page. I could not enter the dashboard page. Error message is displayed when I enter wrong username or password. But [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Problem:</p>
<p>I had a new installation of magento. But I was unable to login as an administrator. I went to the admin login page, entered correct username and password but was redirected to the same login page. I could not enter the dashboard page. Error message is displayed when I enter wrong username or password. But nothing is displayed and I am redirected to the same login page when I insert correct username and password.</p>
<p>Solution:</p>
<p><span id="more-135"></span></p>
<p>I googled and found these solutions:-</p>
<p>1) Use 127.0.0.1 instead of localhost in your url, i.e. using http://127.0.0.1/magento/index.php/admin instead of<br />
http://localhost/magento/index.php/admin . But this didn’t solve my problem.</p>
<p>2) Since I am using Windows XP, I was suggested to open “host” file from<br />
C:\WINDOWS\system32\drivers\etc and have 127.0.0.1 point to something like magento.localhost or even 127.0.0.1 point to http://www.localhost.com . But this also didn’t work either.</p>
<p>3) This solution finally helped me out of this problem. The solution was to modify the core Magento code. Open varien.php present inside<br />
app/code/core/Mage/Core/Model/Session/Abstract . Comment out the lines 80 to 83. The line number may vary according to the Magento version. But these lines are present somewhere near line 80. You have to comment the comma (,) in line: $this-&gt;getCookie()-&gt;getPath()//,</p>
<p>// set session cookie params<br />
session_set_cookie_params(<br />
$this-&gt;getCookie()-&gt;getLifetime(),<br />
$this-&gt;getCookie()-&gt;getPath()//,<br />
//$this-&gt;getCookie()-&gt;getDomain(),<br />
//$this-&gt;getCookie()-&gt;isSecure(),<br />
//$this-&gt;getCookie()-&gt;getHttponly()<br />
);</p>
<p>Well, I am out of this problem. Hope, this solution you also help you.</p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=135&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=Magento%20Admin%20login%20problem&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fmagento-admin-login-problem%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/magento-admin-login-problem/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/magento-admin-login-problem/</feedburner:origLink></item>
		<item>
		<title>Configuration error on new Magento installation</title>
		<link>http://feedproxy.google.com/~r/chapagainblog/~3/uRTDVNq1zOo/</link>
		<comments>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 12:17:28 +0000</pubDate>
		<dc:creator>Mukesh</dc:creator>
		
		<category><![CDATA[Magento]]></category>

		<category><![CDATA[configuration]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[installation]]></category>

		<guid isPermaLink="false">http://blog.chapagain.com.np/?p=132</guid>
		<description><![CDATA[Scenario:
I am installing a fresh magento 1.3.2.1 in my Windows XP computer. I have Xampp installed. While installing magento, I had a problem at the configuration step where I had to fill database host, username, password etc. When I click continue after filling the required fields, the installation process doesn’t move forward. I am redirected [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Scenario:</p>
<p style="text-align: justify;">I am installing a fresh magento 1.3.2.1 in my Windows XP computer. I have Xampp installed. While installing magento, I had a problem at the configuration step where I had to fill database host, username, password etc. When I click continue after filling the required fields, the installation process doesn’t move forward. I am redirected to the same page.</p>
<p>Solution:</p>
<p><span id="more-132"></span></p>
<p style="text-align: justify;">I googled and was suggested to put 127.0.0.1 instead of localhost in the url; e.g. to put http://127.0.0.1/magento  instead of http://localhost/magento . I did the same but then I got the following error displayed:</p>
<p>Database server does not support InnoDB storage engine<br />
Database connection error</p>
<p>This error was solved. I opened my.cnf file present inside mysql/bin/ in notepad and uncommented (removed # sign) from the line skip_innodb.</p>
<p>Change:<br />
#skip-innodb to skip-innodb</p>
<p>But still, my problem was not solved. I could not pass through the configuration page. Then I found a solution which finally helped me. I changed chmod of the following three folders to 777, i.e. making the folders writable. These folders are inside your magento folder.  In windows, right click the folder, go to properties, uncheck ‘Read Only’ present under Attributes. The folders to change are as under:</p>
<p style="text-align: justify;">app/etc<br />
var<br />
media</p>
<p>Finally, I am through and I completed Magento installation. Hurray <img src='http://blog.chapagain.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://blog.chapagain.com.np/?ak_action=api_record_view&id=132&type=feed" alt="" /><div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Mukesh%20Chapagain%27s%20Blog&amp;siteurl=http%3A%2F%2Fblog.chapagain.com.np%2F&amp;linkname=Configuration%20error%20on%20new%20Magento%20installation&amp;linkurl=http%3A%2F%2Fblog.chapagain.com.np%2Fconfiguration-error-on-new-magento-installation%2F"><img src="http://blog.chapagain.com.np/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.chapagain.com.np/configuration-error-on-new-magento-installation/</feedburner:origLink></item>
	</channel>
</rss>
