
<?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>MaGiAsHoK Experiences &#187; php editors</title>
	<atom:link href="http://www.magiashok.com/tag/php-editors/feed" rel="self" type="application/rss+xml" />
	<link>http://www.magiashok.com</link>
	<description>Share My thoughts On Day To Day challanges!</description>
	<lastBuildDate>Wed, 08 Sep 2010 12:34:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Auto post into Blogspot using php code?</title>
		<link>http://www.magiashok.com/auto-post-into-blogspot-using-php-code.htm</link>
		<comments>http://www.magiashok.com/auto-post-into-blogspot-using-php-code.htm#comments</comments>
		<pubDate>Fri, 08 Jan 2010 12:42:03 +0000</pubDate>
		<dc:creator>R Ashok Kumar</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[application development]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[PHP development]]></category>
		<category><![CDATA[php editors]]></category>
		<category><![CDATA[PHP Programmer]]></category>
		<category><![CDATA[selvabalaji]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.magiashok.com/?p=257</guid>
		<description><![CDATA[$email = “EMAIL”; $pass = “PASSWORD”; $blogID= urlencode(“BLOGGER_ID”); // like 6304924319904337556 // Do Not Modify Below Code if(!isset($_SESSION['sessionToken'])) { $ch = curl_init(“https://www.google.com/accounts/ClientLogin?Email=$email&#38;Passwd=$pass&#38;service=blogger&#38;accountType=GOOGLE”); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); $result = curl_exec($ch); $resultArray = curl_getinfo($ch); curl_close($ch); $arr = explode(“=”,$result); $token = $arr[3]; $_SESSION['sessionToken'] = $token; } $entry = “ Title of blog [...]]]></description>
			<content:encoded><![CDATA[<div>
<blockquote><p>$email = “EMAIL”;<br />
$pass = “PASSWORD”;<br />
$blogID= urlencode(“BLOGGER_ID”); // like 6304924319904337556</p>
<p>// Do Not Modify Below Code<br />
if(!isset($_SESSION['sessionToken'])) {</p>
<p>$ch = curl_init(“https://www.google.com/accounts/ClientLogin?Email=$email&amp;Passwd=$pass&amp;service=blogger&amp;accountType=GOOGLE”);<br />
curl_setopt($ch, CURLOPT_POST,1);<br />
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);<br />
curl_setopt($ch, CURLOPT_HEADER,0);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1);<br />
$result = curl_exec($ch);<br />
$resultArray = curl_getinfo($ch);<br />
curl_close($ch);<br />
$arr = explode(“=”,$result);<br />
$token = $arr[3];<br />
$_SESSION['sessionToken'] = $token;<br />
}</p>
<p>$entry = “</p>
<p>Title of blog post</p>
<p>This is testing contnetto post in blog post.</p>
<p>”;</p>
<p>$len = strlen($entry);</p>
<p>$headers = array(“Content-type: application/atom+xml”,”Content-Length: {$len}”,”Authorization: GoogleLogin auth={$_SESSION['sessionToken']}”,”$entry”);</p>
<p>$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_URL, “https://www.blogger.com/feeds/$blogID/posts/default”);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_TIMEOUT, 4);<br />
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);<br />
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);<br />
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1);<br />
curl_setopt($ch, CURLOPT_POST, true);<br />
$result = curl_exec($ch);<br />
$ERROR_CODE = curl_getinfo($ch);<br />
curl_close($ch);</p>
<p>echo ‘</p>
<pre>’;

    print_r($headers);

    var_dump($result);

    print_r($ERROR_CODE);

    exit;
 

    ?&gt;
</pre>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.magiashok.com/auto-post-into-blogspot-using-php-code.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
