<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Decrypt Web</title>
	<atom:link href="http://blog.decryptweb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.decryptweb.com</link>
	<description>Open Source Web Solutions</description>
	<lastBuildDate>Sat, 24 Jul 2010 05:58:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Delete Directory in PHP</title>
		<link>http://blog.decryptweb.com/delete-directory-in-php/</link>
		<comments>http://blog.decryptweb.com/delete-directory-in-php/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 05:56:20 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=184</guid>
		<description><![CDATA[This post will be helpful to those who work with directories and files.
I am writing here the PHP code for deleting the directory.

&#60;?php

$extract_dir = 'path'; //physical path of the directory

if(deleteDirectory($extract_dir)) //delete directory
{
	$msg = &#34;$extract_dir was deleted&#34;;
	echo $msg.&#34;&#60;br/&#62;&#34;;
}
else
{
	$msg = &#34;$extract_dir was not deleted&#34;;
	echo $msg.&#34;&#60;br/&#62;&#34;;
}

//delete directory and files inside it
//start
function deleteDirectory($dir)
{
       [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/delete-directory-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Catalog Product Model</title>
		<link>http://blog.decryptweb.com/magento-catalog-product-model/</link>
		<comments>http://blog.decryptweb.com/magento-catalog-product-model/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 16:01:46 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Catalog]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[Product]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=179</guid>
		<description><![CDATA[While working in Magento, you might have seen that there are various model defined like sales,catalog etc.
I am writing here a script for working with catalog product model.

&#60;?php
$model = Mage::getModel('catalog/product') //get product model

//get product collection
$collection = $model-&#62;getCollection()
            -&#62;addStoreFilter()    //store filter
  [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/magento-catalog-product-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail in Magento</title>
		<link>http://blog.decryptweb.com/mail-in-magento/</link>
		<comments>http://blog.decryptweb.com/mail-in-magento/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 05:03:18 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=176</guid>
		<description><![CDATA[While working in Magento eCommerce, many times need arises to send mail from within custom modules.
Magento is based on Zend, Zend has a class defined for doing this.
I am listing here the method for sending mail.

&#60;?php
$to_email = ‘test@test.com’;
$to_name = ‘to name’;
$subject = ‘Mail Testing’;
$Body = “Sending mail from magento”;
$sender_email = “sender@sender.com”;
$sender_name = “Sender Name”;

$mail = [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/mail-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Database restore</title>
		<link>http://blog.decryptweb.com/mysql-database-restore/</link>
		<comments>http://blog.decryptweb.com/mysql-database-restore/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 04:49:51 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=171</guid>
		<description><![CDATA[I have already listed the PHP script to generate backup of database in one of my earlier post.
I am listing here the PHP script to restore database from mysql database file.

&#60;?php
/* Database Restore */
$username = &#34;dbusername&#34;;  //database username
$password = 'dbpass';   //database password
$hostname = &#34;localhost&#34;;  //host
$dbname = &#34;dbname&#34;; //database name to be [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/mysql-database-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DW VChart Component</title>
		<link>http://blog.decryptweb.com/virtuemart-chart/</link>
		<comments>http://blog.decryptweb.com/virtuemart-chart/#comments</comments>
		<pubDate>Sun, 23 May 2010 07:37:41 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[virtuemart]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=166</guid>
		<description><![CDATA[Hello All, I have added new product in my store, Kindly rate and review.
DW VChart Component for Joomla 1.5 
This component is submitted to JED visit DW VChart Component. Kindly rate and give reviews.






		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Promote [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/virtuemart-chart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing by Reference</title>
		<link>http://blog.decryptweb.com/passing-by-reference/</link>
		<comments>http://blog.decryptweb.com/passing-by-reference/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 07:51:35 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=158</guid>
		<description><![CDATA[I am listing here a simple example to explain &#8216;passing by reference&#8217; in PHP.
I hope it is helpful.

&#60;?php

$a = 5;
echo 'A1-&#62;'.$a.'&#60;br/&#62;';
$b = 6;
$a =&#38; $b;
echo 'A2-&#62;'.$a.'&#60;br/&#62;B1-&#62;'.$b.'&#60;br/&#62;';
global $var;
function foo(&#38;$var)
{
    $var++;
}

$a=5;
echo 'A3-&#62;'.$a.'&#60;br/&#62;';
foo($a);
echo 'A4-&#62;'.$a.'&#60;br/&#62;Var-&#62;'.$var;

?&#62;


For further information kindly visit Passing by Reference





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/passing-by-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DW Graph Component</title>
		<link>http://blog.decryptweb.com/store-products/</link>
		<comments>http://blog.decryptweb.com/store-products/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 06:46:14 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=137</guid>
		<description><![CDATA[Hello All, I have added new product in my store, Kindly rate and review.
Graph Component for Joomla 1.5 
This component is submitted to JED visit DW Graph Component. Kindly rate and give reviews.






		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Promote this [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/store-products/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Insert and Retrieve file with MySQL</title>
		<link>http://blog.decryptweb.com/insert-file-mysql/</link>
		<comments>http://blog.decryptweb.com/insert-file-mysql/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 13:30:46 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=128</guid>
		<description><![CDATA[Some of you might be knowing that there is a functionality in MySQL database for storing files and retrieving the same.
This is mainly used when we need to reduce response time for retrieving and using files in our application.
I am listing here the method for inserting image file in and retrieving image file from MySQL [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/insert-file-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reading XML</title>
		<link>http://blog.decryptweb.com/reading-xml/</link>
		<comments>http://blog.decryptweb.com/reading-xml/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 13:30:52 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=124</guid>
		<description><![CDATA[I am listing here method for reading XML file or XML string with the help of PHP.

&#60;?php
$xml =&#60;&#60;&#60;EOT
&#60;?xml version=&#34;1.0&#34;?&#62;
&#60;root&#62;
&#60;section name=&#34;Section1&#34;&#62;
    &#60;category id=&#34;Category1&#34; name=&#34;google&#34;&#62;
    &#60;article name=&#34;article1&#34;&#62;value1&#60;/article&#62;
    &#60;/category&#62;
    &#60;category id=&#34;Category2&#34; name=&#34;yahoo&#34;&#62;
    &#60;article name=&#34;articleSection2&#34;&#62;Test value&#60;/article&#62;
    &#60;/category&#62;
&#60;/section&#62;
&#60;section name=&#34;Section2&#34;&#62;
  &#60;category id=&#34;category1_of_section2&#34; [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/reading-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Product ID and Product Name in Magento</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/</link>
		<comments>http://blog.decryptweb.com/product-id-and-product-name/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 13:48:43 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122</guid>
		<description><![CDATA[In Magento eCommerce while working with catalog model, There arise the need to fetch product details from product id.
We can get all product details if we have product id.
But sometimes we only have product name, so we need to get product id for getting product details.
I am listing here both the method.
1) Product details from [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/product-id-and-product-name/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
