<?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>Osman ERDOĞAN &#187; post twitter</title>
	<atom:link href="http://www.osmanerdogan.com/tag/post-twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.osmanerdogan.com</link>
	<description>Kişisel Web Sitesi ve Web Günlüğü</description>
	<lastBuildDate>Fri, 10 Feb 2012 15:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>cURL &amp; php ile twitter&#8217;a otomatik yazı gönderme</title>
		<link>http://www.osmanerdogan.com/2009/05/26/curl-php-ile-twittera-otomatik-yazi-gonderme/</link>
		<comments>http://www.osmanerdogan.com/2009/05/26/curl-php-ile-twittera-otomatik-yazi-gonderme/#comments</comments>
		<pubDate>Tue, 26 May 2009 13:13:51 +0000</pubDate>
		<dc:creator>Osman ERDOĞAN</dc:creator>
				<category><![CDATA[Kodlama]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[curl php]]></category>
		<category><![CDATA[curl to submit]]></category>
		<category><![CDATA[curl twitter]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[post twitter]]></category>
		<category><![CDATA[submit post to twitter]]></category>
		<category><![CDATA[submittwitter]]></category>

		<guid isPermaLink="false">http://www.osmanerdogan.com/?p=410</guid>
		<description><![CDATA[PLAIN TEXT PHP: $twitter_api_url = "http://twitter.com/statuses/update.xml"; $twitter_data = "status=Buraya Link ve Açıklama Yazabilirsiniz"; $twitter_user = "KullaniciAdi"; $twitter_password = "Sifre"; $ch = curl_init&#40;$twitter_api_url&#41;; curl_setopt&#40;$ch, CURLOPT_POST, 1&#41;; curl_setopt&#40;$ch, CURLOPT_POSTFIELDS, $twitter_data&#41;; curl_setopt&#40;$ch, CURLOPT_FOLLOWLOCATION, 1&#41;; curl_setopt&#40;$ch, CURLOPT_HEADER, 0&#41;; curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, 1&#41;; curl_setopt&#40;$ch, CURLOPT_USERPWD, "{$twitter_user}:{$twitter_password}"&#41;; $twitter_data = curl_exec&#40;$ch&#41;; $httpcode = curl_getinfo&#40;$ch, CURLINFO_HTTP_CODE&#41;; curl_close&#40;$ch&#41;; if &#40;$httpcode != 200&#41; &#123; echo "Twitter]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.osmanerdogan.com/wp-content/uploads/2009/05/twitter_logo_header1.png" alt="twitter" /></p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$twitter_api_url</span> = <span style="color:#FF0000;">"http://twitter.com/statuses/update.xml"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$twitter_data</span> = <span style="color:#FF0000;">"status=Buraya Link ve Açıklama Yazabilirsiniz"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$twitter_user</span> = <span style="color:#FF0000;">"KullaniciAdi"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$twitter_password</span> = <span style="color:#FF0000;">"Sifre"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$ch</span> = curl_init<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$twitter_api_url</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_POST, <span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_POSTFIELDS, <span style="color:#0000FF;">$twitter_data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_FOLLOWLOCATION, <span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_HEADER, <span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_RETURNTRANSFER, <span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_setopt<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLOPT_USERPWD, <span style="color:#FF0000;">"{$twitter_user}:{$twitter_password}"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$twitter_data</span> = curl_exec<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$httpcode</span> = curl_getinfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span>, CURLINFO_HTTP_CODE<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">curl_close<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$ch</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$httpcode</span> != <span style="color:#CC66CC;color:#800000;">200</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Twitter HATA"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Twitter OK&amp;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Yapmanız gereken cURL destekleyen bir sunucunuz var ise istediğiniz makale veya yazılarınızı otomatik olarak <a href="/tag/twitter">twitter</a> hesabınıza post etmenize yardımcı olur.</p>
<p>Kolay Gelsin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.osmanerdogan.com/2009/05/26/curl-php-ile-twittera-otomatik-yazi-gonderme/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

