<?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/"
	>

<channel>
	<title>Ramanean's Blog</title>
	<atom:link href="http://www.ramanean.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ramanean.com</link>
	<description></description>
	<pubDate>Mon, 14 Dec 2009 17:45:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Connected to internet but unable to browse in IE,Firefox</title>
		<link>http://www.ramanean.com/Connected-to-internet-but-unable-to-browse-in-IE,Firefox/</link>
		<comments>http://www.ramanean.com/Connected-to-internet-but-unable-to-browse-in-IE,Firefox/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 18:50:26 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Connected to internet but unable to browse in IE,Firefox]]></description>
			<content:encoded><![CDATA[<p><content></p>
<p>Sometimes you may be connected to internet but  your browser won&#8217;t work</p>
<p>To solve this issue there are two ways</p>
<p>a)You have to un-install any ad-ware software</p>
<p>b)You have to run these commands in &#8220;CMD&#8221; (Command prompt)</p>
<p>Resetting WinSock and TCP/IP to defaults:</p>
<p>TCP/IP stack repair options for use with Windows XP with SP2.*<br />
*<br />
For these commands, *Start, Run, CMD, OK* to open a command prompt.</p>
<p>Reset WINSOCK entries to installation defaults: *netsh winsock reset catalog<br />
*</p>
<p>Reset TCP/IP stack to installation defaults. *netsh int ip reset reset.log*</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0312533338966184";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_ads";
google_ad_channel = "8976284340";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CC0000";
google_color_url = "008000";
google_color_text = "333333";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/Connected-to-internet-but-unable-to-browse-in-IE,Firefox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Php code to extract filename from urls.</title>
		<link>http://www.ramanean.com/php-code-to-extract-filename-from-urls/</link>
		<comments>http://www.ramanean.com/php-code-to-extract-filename-from-urls/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 00:50:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.ramanean.com/php-code-to-extract-filename-from-urls/</guid>
		<description><![CDATA[Php code to extract filename from urls.]]></description>
			<content:encoded><![CDATA[<p>This code will be useful to extract the names of the files from url</p>
<p>For E.g http://unicode.org/charts/PDF/U0B80.pdf</p>
<pre>
//Url to extract
$url='http://unicode.org/charts/PDF/U0B80.pdf';

//Code
$file1=preg_match("#(.*)\/(.*)(.pdf||.doc)#",$url,$file2);
$filename1=$file2[2];

//Outputs U0B80.pdf
echo $filename1;
</pre>
<p>This would output U0B80.pdf </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/php-code-to-extract-filename-from-urls/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Replacing urls with a href link in Php</title>
		<link>http://www.ramanean.com/Replacing-urls-with-a-href-link-in-Php/</link>
		<comments>http://www.ramanean.com/Replacing-urls-with-a-href-link-in-Php/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 02:04:47 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Replacing urls with a href link in Php]]></description>
			<content:encoded><![CDATA[<p><content><br />
Replacing urls with  a href link</p>
<p>This code is used to replace any urls with links</p>
<p>E.g</p>
<p>&#8220;http://google.com is a good site &#8221; will be &#8220;<a href='http://google.com'><br />
http://google.com</a><br />
is a good site</p>
<pre>$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a
href=\"\\0\">\\0</a>", $text);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/Replacing-urls-with-a-href-link-in-Php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Paste Disabled in Windows</title>
		<link>http://www.ramanean.com/Paste-Disabled-in-Windows/</link>
		<comments>http://www.ramanean.com/Paste-Disabled-in-Windows/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 09:51:11 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Paste Disabled in Windows]]></description>
			<content:encoded><![CDATA[<p><content></p>
<p>A workaround for Paste Disabled in Windows</p>
<p>Step 1. Copy as usual<br />
Step 2. run>clipbrd.exe<br />
Step 3. Save as .CLP file to a folder<br />
Step 4. Empty the Clipboard</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/Paste-Disabled-in-Windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Today is a special day</title>
		<link>http://www.ramanean.com/Today-is-a-special-day/</link>
		<comments>http://www.ramanean.com/Today-is-a-special-day/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 10:12:11 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Others]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today is a special day]]></description>
			<content:encoded><![CDATA[<p><content><br />
Here are some calculations about today=92s date which says an importance of<br />
it.</p>
<p>09-09-09 i.e. 09-Sep-09</p>
<p>Sum of 09+09+09 =3D 27 =3D 2+7 =3D 9<br />
This is 252 nd day of the year i.e. 2+5+2 =3D 9<br />
This is September month and total characters of September are 9 .<br />
Today is Wednesday and total characters of Wednesday are 9.</p>
<p>This kind of an occasion will not occur in next 1001 year. So enjoy this<br />
day. Just like every day</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/Today-is-a-special-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Uploading a entire folder by FTP using Php</title>
		<link>http://www.ramanean.com/Uploading-a-entire-folder-by-FTP-using-Php/</link>
		<comments>http://www.ramanean.com/Uploading-a-entire-folder-by-FTP-using-Php/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 22:40:56 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Uploading a entire folder by FTP using Php]]></description>
			<content:encoded><![CDATA[<p><content></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0312533338966184";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_ads";
google_ad_channel = "8976284340";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CC0000";
google_color_url = "008000";
google_color_text = "333333";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Php code to upload an entire folder via FTP</p>
<pre>

function ftp_uploaddirectory($conn_id, $local_dir, $remote_dir)
{

  ftp_mkdir($conn_id, $remote_dir);
  $handle = opendir($local_dir);
  while (($file = readdir($handle)) !== false)
  {
    if (($file != '.') &#038;&#038; ($file != '..'))
    {
      if (is_dir($local_dir.$file))
      {
        ftp_uploaddirectory($conn_id, $local_dir.$file.'/',
$remote_dir.$file.'/');
      }
      else
        $f[] = $file;
    }
  }
  closedir($handle);
  if (count($f))
  {
    sort($f);
    @ftp_chdir($conn_id, $remote_dir);
    foreach ($f as $files)
    {
      $from = @fopen("$local_dir$files", 'r');
      @ftp_fput($conn_id, $files, $from, FTP_BINARY);
    }
  }
}

//FTP Login Detauls
$ftp_server = "127.0.0.1";
$ftp_user = "XXXXXXX";
$ftp_pass = "XXXXXXX";

// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to
$ftp_server");
if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {
    echo "Connected as $ftp_user@$ftp_server\n";
} else {
    echo "Couldn't connect as $ftp_user\n";
}
echo "Current directory: " . ftp_pwd($conn_id) . "\n";

//Directory details local dir files are to be uploaded to Remote dir
$local_dir='a1/';
$remote_dir='a2';

//Function for uploading directory
ftp_uploaddirectory($conn_id, $local_dir, $remote_dir);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ramanean.com/Uploading-a-entire-folder-by-FTP-using-Php/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>


