<?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>Chetan Mendhe&#039;s Weblog</title>
	<atom:link href="http://www.chetanweb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chetanweb.com</link>
	<description>Technology reDefined</description>
	<lastBuildDate>Wed, 19 May 2010 08:38:12 +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>Facebook Zero Launched</title>
		<link>http://www.chetanweb.com/2010/05/facebook-zero-launched/</link>
		<comments>http://www.chetanweb.com/2010/05/facebook-zero-launched/#comments</comments>
		<pubDate>Wed, 19 May 2010 08:38:12 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[free]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/2010/05/facebook-zero-launched/</guid>
		<description><![CDATA[Go to 0.facebook.com to use Facebook Mobile without data charges. Only available on Reliance and Videocon.





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Post this to MySpace
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Promote this on Orkut
		



]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/05/facebook-zero-launched/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Post PHP Codes to wordpress using plugin PostPHP</title>
		<link>http://www.chetanweb.com/2010/02/post-php-codes-to-wordpress-using-plugin-postphp/</link>
		<comments>http://www.chetanweb.com/2010/02/post-php-codes-to-wordpress-using-plugin-postphp/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 16:58:07 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[highlighter]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postphp]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=90</guid>
		<description><![CDATA[Here is simple wordpress plug-in for posting PHP Scripts in WordPress post called PostPHP.
Download : http://wordpress.org/extend/plugins/post-php/
I made this plug in for my personal use on chetanweb.com.Today I thought to make it public.
How to use it ??
Just add you php code in between tags &#60;php&#62;&#60;/php&#62; as you use HTML tags .
Example :
&#60;php&#62;&#60;?php
echo &#8220;Hello,World!&#8221;;
?&#62;
&#60;/php&#62;

Will Get

&#60;?php
echo&#160;"Hello,World!";
?&#62;



That&#8217;s It  [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/02/post-php-codes-to-wordpress-using-plugin-postphp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Publish a post on your WordPress blog using PHP + cURL</title>
		<link>http://www.chetanweb.com/2010/02/publish-a-post-on-your-wordpress-blog-using-php-curl/</link>
		<comments>http://www.chetanweb.com/2010/02/publish-a-post-on-your-wordpress-blog-using-php-curl/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 15:45:34 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=80</guid>
		<description><![CDATA[I think I should name my blog &#8220;Web Bot source codes&#8221;  :P Lolz , today I will be posting something similar called WPBot &#8211; Wordpress bot. The PHP code which will publish a post on your post using cURL.This PHP is dependent on class file class.XMLHttpRequest.php ( You can get it here ).You can use [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/02/publish-a-post-on-your-wordpress-blog-using-php-curl/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Techcrunch.com hacked and now just showing &#8220;hi&#8221; on the homepage</title>
		<link>http://www.chetanweb.com/2010/01/techcrunch-com-hacked-and-now-just-showing-hi-on-the-homepage/</link>
		<comments>http://www.chetanweb.com/2010/01/techcrunch-com-hacked-and-now-just-showing-hi-on-the-homepage/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 06:47:54 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=72</guid>
		<description><![CDATA[Something wrong going with the home page of the Biggest Tech Blog TechCrunch.It may be hacked or big mistake of server administrators.The website is Displaying the message &#8220;hi&#8221;
Watch it your self
http://www.techcrunch.com
Screenshot: -

One of the hot topic over twitter.
http://twitter.com/#search?q=%23Techcrunch
[Updated 12:20 26 Jan]
The website admins have recovered the website and given out a Message &#8220;We&#8217;ll be back [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/techcrunch-com-hacked-and-now-just-showing-hi-on-the-homepage/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP Class : IP Details</title>
		<link>http://www.chetanweb.com/2010/01/php-class-ip-details/</link>
		<comments>http://www.chetanweb.com/2010/01/php-class-ip-details/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 13:28:03 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=61</guid>
		<description><![CDATA[Class File :

&#60;?php
/**
*&#160;&#160;&#160;&#160;Class&#160;IP&#160;Details
*&#160;&#160;&#160;&#160;PHP&#160;class&#160;for&#160;looking&#160;into&#160;details&#160;of&#160;a&#160;IP&#160;address
*
*&#160;&#160;&#160;&#160;@author&#160;Chetan&#160;&#60;xtrmcoder@gmail.com&#62;
*&#160;&#160;&#160;&#160;@version&#160;05&#160;Sep&#160;2009
*&#160;&#160;&#160;&#160;@copyright&#160;GPL&#160;©&#160;2009,&#160;Chetan&#160;Mendhe
*&#160;&#160;&#160;&#160;@license&#160;http://creativecommons.org/licenses/by-nc-sa/3.0/&#160;Released&#160;under&#160;a&#160;Creative&#160;Commons&#160;License
*/&#160;
class&#160;ipdetails
{
&#160;&#160;&#160;&#160;var&#160;$ip;
&#160;&#160;&#160;&#160;protected&#160;$api="http://66.84.41.158/ip/?ip=";
&#160;&#160;&#160;&#160;var&#160;$details;
&#160;&#160;&#160;&#160;var&#160;$xml;
&#160;&#160;&#160;&#160;var&#160;$curl;
&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;*&#160;&#160;&#160;&#160;IP&#160;Details&#160;Construct
&#160;&#160;&#160;&#160;*&#160;&#160;&#160;&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;&#160;&#160;&#160;@param&#160;String&#160;$ip&#160;IP&#160;Address&#160;Of&#160;which&#160;the&#160;details&#160;are&#160;to&#160;be&#160;located.
&#160;&#160;&#160;&#160;*&#160;&#160;&#160;&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/&#160;
&#160;&#160;&#160;&#160;public&#160;function&#160;ipdetails($ipaddress)
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;ip=$ipaddress;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;curl=curl_init();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;curl_setopt($this-&#62;curl,&#160;CURLOPT_URL,&#160;$this-&#62;api.$this-&#62;ip);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;curl_setopt($this-&#62;curl,&#160;CURLOPT_CONNECTTIMEOUT,&#160;2);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;curl_setopt($this-&#62;curl,&#160;CURLOPT_RETURNTRANSFER,&#160;1);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;true;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Scan&#160;for&#160;the&#160;details&#160;of&#160;the&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/&#160;
&#160;&#160;&#160;&#160;public&#160;function&#160;scan()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;xml&#160;=&#160;curl_exec($this-&#62;curl);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;preg_match_all('/&#60;([a-zA-Z0-9].*)&#62;(.*)&#60;\/([a-zA-Z0-9].*?)&#62;\n/',$this-&#62;xml,$detail);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;details=null;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;details=array();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for($i=0;$i&#60;=count($detail[1])-1;$i++)
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;details[trim($detail[1][$i])]=$detail[2][$i];
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;true;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;To&#160;parse&#160;the&#160;values&#160;of&#160;the&#160;xml
&#160;&#160;&#160;&#160;*&#160;@access&#160;private
&#160;&#160;&#160;&#160;*&#160;@param&#160;String&#160;$field&#160;The&#160;field&#160;name&#160;of&#160;the&#160;xml&#160;
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;private&#160;function&#160;parsexml($field)
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;preg_match('/&#60;'.$field.'&#62;(.*?)&#60;\/'.$field.'&#62;/',$this-&#62;xml,$output);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$output[1];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Export&#160;All&#160;the&#160;Details&#160;as&#160;an&#160;array
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_details_by_array()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Export&#160;All&#160;the&#160;Details&#160;as&#160;xml
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;exportxml()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;xml;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Country&#160;Code&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_countrycode()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[CountryCode];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Code3&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_code3()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Code3];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Country&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_country()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Country];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Region&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_region()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Region];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;City&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_city()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[City];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;PostalCode&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_postalcode()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[PostalCode];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Latitude&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_latitude()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Latitude];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Longitude&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_longitude()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Longitude];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;DMAcode&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_dmacode()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[DMAcode];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;Return&#160;the&#160;Areacode&#160;of&#160;the&#160;given&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;get_areacode()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;$this-&#62;details[Areacode];
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;To&#160;set&#160;new&#160;ip&#160;address
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;setip($ipaddress)
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$this-&#62;ip=$ipaddress;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;true;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**&#160;
&#160;&#160;&#160;&#160;*&#160;To&#160;close&#160;the&#160;class
&#160;&#160;&#160;&#160;*&#160;@access&#160;public
&#160;&#160;&#160;&#160;*&#160;@return&#160;void
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;public&#160;function&#160;close()
&#160;&#160;&#160;&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;curl_close($this-&#62;curl);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return&#160;true;
&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;
}



And Example to use this Class file :

&#60;?php
include("class.ipdetails.php");
$ip=$_SERVER['REMOTE_ADDR'];
if($ip="127.0.0.1"){$ip="66.84.41.158";}
$myip=new&#160;ipdetails($ip);
$myip-&#62;scan();
$CountryCode=$myip-&#62;get_countrycode();
$Code3=$myip-&#62;get_code3();
$Country=$myip-&#62;get_country();
$Region=$myip-&#62;get_region();
$City=$myip-&#62;get_city();
$PostalCode=$myip-&#62;get_postalcode();
$Latitude=$myip-&#62;get_latitude();&#160;&#160;&#160;
$Longitude=$myip-&#62;get_longitude();&#160;&#160;&#160;
$DMAcode=$myip-&#62;get_dmacode();&#160;&#160;&#160;&#160;&#160;
$Areacode=$myip-&#62;get_areacode();&#160;&#160;
$myip-&#62;close();
?&#62;



&#60;html&#62;
&#60;head&#62;&#60;title&#62;IP Details/Location Example&#60;/title&#62;&#60;/head&#62;
&#60;body&#62;
&#60;center&#62;
&#60;br /&#62;&#60;br /&#62;
&#60;h3&#62;&#60;?php echo $ip; ?&#62; Details : &#60;/h3&#62;&#60;br&#62;&#60;br&#62;
&#60;table&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;CountryCode&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $CountryCode ; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Code3&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Code3; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Country&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Country; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Region&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Region; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;City&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $City; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;PostalCode&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $PostalCode; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Latitude&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Latitude; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Longitude&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Longitude; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;DMAcode&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $DMAcode; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;b&#62;Areacode&#60;/b&#62;&#60;/td&#62;&#60;td&#62;:&#60;/td&#62;&#60;td&#62;&#60;?php echo $Areacode; ?&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;/table&#62;
&#60;/center&#62;
&#60;/body&#62;
&#60;/html&#62;





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Stumble [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/php-class-ip-details/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter Bot : Post Qoutes to twitter automaticly via PHP</title>
		<link>http://www.chetanweb.com/2010/01/twitter-bot-post-qoutes-to-twitter-automaticly-via-php/</link>
		<comments>http://www.chetanweb.com/2010/01/twitter-bot-post-qoutes-to-twitter-automaticly-via-php/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 10:04:57 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[qoutes]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=54</guid>
		<description><![CDATA[I made this code for my personal use but now thought of sharing this it over here.On execution this  PHP will post a tweet in your profile via twitter api . Tweet will  have a beautiful quote or saying.Set this PHP execution over a  cron job or scheduled jobs.

&#60;?php
echo&#160;realpath("twitter.php");
echo&#160;"&#60;br&#62;";
$type[0]="love";
$type[1]="friendship";
$type[2]="life";
$type[3]="funny";
$type[4]="inspirational";
$type[5]="money";
$type=$type[rand(0,5)];
$curl&#160;=&#160;curl_init();
curl_setopt($curl,&#160;CURLOPT_URL,&#160;"http://www.quotesdaddy.com/widget/tag/$type");
curl_setopt($curl,&#160;CURLOPT_CONNECTTIMEOUT,&#160;2);
curl_setopt($curl,&#160;CURLOPT_RETURNTRANSFER,&#160;1);
$q&#160;=&#160;curl_exec($curl);
curl_close($curl);
$q=explode("&#38;ldquo;",$q);
$q=explode("&#38;rdquo;",$q[1]);
$q=$q[0];
$username&#160;=&#160;'[username]';
$password&#160;=&#160;'[password]';
$status&#160;=&#160;urlencode(stripslashes(urldecode($q)));
if&#160;($status)&#160;{
$tweetUrl&#160;=&#160;'http://www.twitter.com/statuses/update.xml';
$curl&#160;=&#160;curl_init();
curl_setopt($curl,&#160;CURLOPT_URL,&#160;"$tweetUrl");
curl_setopt($curl,&#160;CURLOPT_CONNECTTIMEOUT,&#160;2);
curl_setopt($curl,&#160;CURLOPT_RETURNTRANSFER,&#160;1);
curl_setopt($curl,&#160;CURLOPT_POST,&#160;1);
curl_setopt($curl,&#160;CURLOPT_POSTFIELDS,&#160;"status=$status");
curl_setopt($curl,&#160;CURLOPT_USERPWD,&#160;"$username:$password");
$result&#160;=&#160;curl_exec($curl);
$resultArray&#160;=&#160;curl_getinfo($curl);
if&#160;($resultArray['http_code']&#160;==&#160;200)
echo&#160;'Tweet&#160;Posted';
else
echo&#160;'Could&#160;not&#160;post&#160;Tweet&#160;to&#160;Twitter&#160;right&#160;now.&#160;Try&#160;again&#160;later.';
curl_close($curl);
}
?&#62;








		
			Share this on del.icio.us
		
		
			Digg [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/twitter-bot-post-qoutes-to-twitter-automaticly-via-php/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Again server drives corrupted after exec&#8230;</title>
		<link>http://www.chetanweb.com/2010/01/again-server-drives-corrupted-after-exec/</link>
		<comments>http://www.chetanweb.com/2010/01/again-server-drives-corrupted-after-exec/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 20:01:50 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/2010/01/again-server-drives-corrupted-after-exec/</guid>
		<description><![CDATA[Again server drives corrupted after executing non ending heavy scripts !!!





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Post this to MySpace
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Promote this on Orkut
		



]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/again-server-drives-corrupted-after-exec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embeding latest twitter tweet to image using PHP .</title>
		<link>http://www.chetanweb.com/2010/01/embeding-latest-twitter-tweet-to-image-using-php/</link>
		<comments>http://www.chetanweb.com/2010/01/embeding-latest-twitter-tweet-to-image-using-php/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 19:35:04 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=41</guid>
		<description><![CDATA[
So now convert  your latest tweet to dynamic image from following code and use anywhere you want , as you want.Sorry for bad design, not so good at it  

&#60;?php
/**
*&#160;@author&#160;chetan
*&#160;@copyright&#160;2010
*/
//Your&#160;twitter&#160;ID
$twitter="chetanweb";
//Geting&#160;your&#160;Twitter&#160;profile&#160;to&#160;$return&#160;using&#160;cURL
$ch&#160;=&#160;curl_init("http://twitter.com/".$twitter);
curl_setopt($ch,&#160;CURLOPT_RETURNTRANSFER,&#160;1);
$return&#160;=&#160;curl_exec($ch);
curl_close($ch);
//Parsing&#160;Latest&#160;tweet
preg_match('/&#60;span&#160;class="entry-content"&#62;(.*?)&#60;\/span&#62;/',$return,$tweet);
//Size&#160;of&#160;tweet&#160;and&#160;setting&#160;width&#160;according&#160;to&#160;it.
$size=strlen($tweet[1]);
$width=$size*10;
//Creating&#160;Image&#160;of&#160;500x50
$im&#160;=&#160;imagecreate($width,25);
//Background&#160;Color
$bgcolor&#160;=&#160;imagecolorallocate($im,255,255,255);
//Forcolor
$for&#160;=&#160;imagecolorallocate($im,100,100,255);
//Adding&#160;Tweet&#160;to&#160;Image
imagestring($im,5,5,5,$tweet[1]&#160;,&#160;$for);
//Sending&#160;header&#160;to&#160;browse&#160;that&#160;this&#160;crap&#160;is&#160;Image
header('Content-type:&#160;image/png');
//Displaying&#160;the&#160;final&#160;image
imagepng($im);
?&#62;



Enjoy !!  





		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Post this to MySpace
		
		
			Share this on Facebook
		
		
			Tweet [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/embeding-latest-twitter-tweet-to-image-using-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Drawing Parabola using PHP GD</title>
		<link>http://www.chetanweb.com/2010/01/drawing-prabola-using-php-gd/</link>
		<comments>http://www.chetanweb.com/2010/01/drawing-prabola-using-php-gd/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 03:44:28 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[parabola]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=14</guid>
		<description><![CDATA[Simply while the class was going on ,  my professor was telling us about parabola formed by y=x^x equation  and I was busy with this stupid code at my back page  .
 
 
 &#60;?php
set_time_limit(1);
$limit=1000;
$im = imagecreate($limit,$limit);
$bgcolor = imagecolorallocate($im,0,0,0); // white background
$for = imagecolorallocate($im,255,0,0);
$xy= imagecolorallocate($im,0,0,225);$gray = imagecolorallocate($im,0,100,0);for($i=0;$i&#60;=$limit;$i=$i+20){
imageline($im, $i , 0 , $i , $limit,$gray);
}
for($i=0;$i&#60;=$limit;$i=$i+20)
{
imageline($im, 0 , $i , [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2010/01/drawing-prabola-using-php-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year Eve</title>
		<link>http://www.chetanweb.com/2009/12/happy-new-year-eve/</link>
		<comments>http://www.chetanweb.com/2009/12/happy-new-year-eve/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 03:07:13 +0000</pubDate>
		<dc:creator>chetanweb</dc:creator>
				<category><![CDATA[Festival]]></category>
		<category><![CDATA[blog release]]></category>
		<category><![CDATA[chetan mendhe]]></category>
		<category><![CDATA[chetanweb]]></category>
		<category><![CDATA[new year]]></category>

		<guid isPermaLink="false">http://www.chetanweb.com/?p=4</guid>
		<description><![CDATA[On this special occasion I decided to start a new blog an so after a long count down this blog is open for everybody.I am starting this personal blog to share my personal experiances , some tech talks  , new buzz over web and lots of intresting things which I come across.So hope you [...]]]></description>
		<wfw:commentRss>http://www.chetanweb.com/2009/12/happy-new-year-eve/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
