<?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 &#187; Directory</title>
	<atom:link href="http://blog.decryptweb.com/tag/directory/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>Page Redirect</title>
		<link>http://blog.decryptweb.com/page-redirect/</link>
		<comments>http://blog.decryptweb.com/page-redirect/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:08:31 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=104</guid>
		<description><![CDATA[I have written a script for getting the files list from directory and redirecting the page on selecting option from the select box.
So you will get the script for fetching all the files from current directory and redirecting page on selection.

&#60;h&#62;Please select option&#60;/h&#62;
&#60;?php
$path = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI']; //current directory physical path

$dir_handle = @opendir($path) or die(&#34;Unable to open [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/page-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Directory</title>
		<link>http://blog.decryptweb.com/copy-directory/</link>
		<comments>http://blog.decryptweb.com/copy-directory/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 17:20:18 +0000</pubDate>
		<dc:creator>DWRoot</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>
		<category><![CDATA[Copy]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.decryptweb.com/?p=74</guid>
		<description><![CDATA[I am listing here the method to copy full Directories with all sub-directories and files.

&#60;?php

$source = 'f1'; //folder name
$target = 'f2'; //folder name , if target folder does not exists, it will be created

//echo 'src-&#62;'.$source.'&#60;br/&#62;';
//echo 'tar-&#62;'.$target.'&#60;br/&#62;';

if(is_dir($source))
{

	full_copy($source,$target);
	echo 'Folder copied';
}
else
{
	echo 'Not copied';
}

function full_copy( $source, $target )
    {
        [...]]]></description>
		<wfw:commentRss>http://blog.decryptweb.com/copy-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
