<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Post to Twitter From a PHP Script</title>
	<atom:link href="http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=post-to-twitter-from-a-php-script</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 09 Feb 2012 17:02:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Deepak</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-20637</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Mon, 09 Jan 2012 06:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-20637</guid>
		<description>Hi All,
i m not able to execute this script.

$twitter_api_url = &quot;http://twitter.com/statuses/update.xml&quot;;
$twitter_data = &quot;status=Visit http://www.webmaster-source.com for PHP tips and tutorials!&quot;;
$twitter_user = &quot;your_user_name&quot;;
$twitter_password = &quot;your_password&quot;;

$ch = curl_init($twitter_api_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $twitter_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, &quot;{$twitter_user}:{$twitter_password}&quot;);

$twitter_data = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($httpcode != 200) {
echo &quot;&lt;strong&gt;Don&#039;t Panic!&lt;/strong&gt; Something went wrong, and the tweet wasn&#039;t posted correctly.&quot;;
} 



can someone give me correct code ?</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
i m not able to execute this script.</p>
<p>$twitter_api_url = &#8220;http://twitter.com/statuses/update.xml&#8221;;<br />
$twitter_data = &#8220;status=Visit <a href="http://www.webmaster-source.com" rel="nofollow">http://www.webmaster-source.com</a> for PHP tips and tutorials!&#8221;;<br />
$twitter_user = &#8220;your_user_name&#8221;;<br />
$twitter_password = &#8220;your_password&#8221;;</p>
<p>$ch = curl_init($twitter_api_url);<br />
curl_setopt($ch, CURLOPT_POST, 1);<br />
curl_setopt($ch, CURLOPT_POSTFIELDS, $twitter_data);<br />
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);<br />
curl_setopt($ch, CURLOPT_HEADER, 0);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_USERPWD, &#8220;{$twitter_user}:{$twitter_password}&#8221;);</p>
<p>$twitter_data = curl_exec($ch);<br />
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);<br />
curl_close($ch);</p>
<p>if ($httpcode != 200) {<br />
echo &#8220;<strong>Don&#8217;t Panic!</strong> Something went wrong, and the tweet wasn&#8217;t posted correctly.&#8221;;<br />
} </p>
<p>can someone give me correct code ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiz</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-20562</link>
		<dc:creator>Tiz</dc:creator>
		<pubDate>Tue, 27 Dec 2011 17:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-20562</guid>
		<description>I tried the script in three files.
When I connect twitter it tells me a PIN that I have nto clue where to put it.</description>
		<content:encoded><![CDATA[<p>I tried the script in three files.<br />
When I connect twitter it tells me a PIN that I have nto clue where to put it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pummy Manku</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-19576</link>
		<dc:creator>Pummy Manku</dc:creator>
		<pubDate>Sat, 25 Jun 2011 01:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-19576</guid>
		<description>Hello Matt,

Maybe this tutorial out-of-date but it helps me to find the automated way to add the tweets automatically :)

I added my twitter info (name+pass) in my google feedburner account and now google is adding my tweets via my site&#039;s RSS into twitter and its 100% automatic.. saves lots of time of mine. 

If you have an google account, just add your twitter info and you are done.

Regards,
Pummy Manku, Admin of Neatstat.com &amp; Nicestat.com</description>
		<content:encoded><![CDATA[<p>Hello Matt,</p>
<p>Maybe this tutorial out-of-date but it helps me to find the automated way to add the tweets automatically <img src='http://media.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I added my twitter info (name+pass) in my google feedburner account and now google is adding my tweets via my site&#8217;s RSS into twitter and its 100% automatic.. saves lots of time of mine. </p>
<p>If you have an google account, just add your twitter info and you are done.</p>
<p>Regards,<br />
Pummy Manku, Admin of Neatstat.com &amp; Nicestat.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18837</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 20 Jan 2011 20:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-18837</guid>
		<description>As I said previously:

&quot;Twitter no longer supports basic authentication. You need to use the more advanced OAuth technique in order to update statuses via the API.&quot;

This tutorial is out-of-date.</description>
		<content:encoded><![CDATA[<p>As I said previously:</p>
<p>&#8220;Twitter no longer supports basic authentication. You need to use the more advanced OAuth technique in order to update statuses via the API.&#8221;</p>
<p>This tutorial is out-of-date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urvisha</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18835</link>
		<dc:creator>Urvisha</dc:creator>
		<pubDate>Thu, 20 Jan 2011 12:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-18835</guid>
		<description>This code is not at all working for me. i have used this code in facebook application. then i have tried also in local but not working.Can anyone help me to sort out this.</description>
		<content:encoded><![CDATA[<p>This code is not at all working for me. i have used this code in facebook application. then i have tried also in local but not working.Can anyone help me to sort out this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ayauho</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18631</link>
		<dc:creator>ayauho</dc:creator>
		<pubDate>Wed, 05 Jan 2011 12:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-18631</guid>
		<description>Fast and easy way to update status in twitter with PHP in 2 steps - http://ayauho.com/~ay</description>
		<content:encoded><![CDATA[<p>Fast and easy way to update status in twitter with PHP in 2 steps &#8211; <a href="http://ayauho.com/~ay" rel="nofollow">http://ayauho.com/~ay</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-12421</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 12 Dec 2010 23:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-12421</guid>
		<description>It&#039;s considerably more difficult. Here are a link though: http://tips4php.net/2010/12/twitter-oauth-the-easy-way-simple-post-to-twitter-script/</description>
		<content:encoded><![CDATA[<p>It&#8217;s considerably more difficult. Here are a link though: <a href="http://tips4php.net/2010/12/twitter-oauth-the-easy-way-simple-post-to-twitter-script/" rel="nofollow">http://tips4php.net/2010/12/tw.....er-script/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pummy Manku</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-12415</link>
		<dc:creator>Pummy Manku</dc:creator>
		<pubDate>Sun, 12 Dec 2010 12:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-12415</guid>
		<description>is there any new modern script out there? post the code or any link.

thanks</description>
		<content:encoded><![CDATA[<p>is there any new modern script out there? post the code or any link.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-12127</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 20 Oct 2010 22:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-12127</guid>
		<description>Twitter no longer supports basic authentication. You need to use the more advanced OAuth technique in order to update statuses via the API.</description>
		<content:encoded><![CDATA[<p>Twitter no longer supports basic authentication. You need to use the more advanced OAuth technique in order to update statuses via the API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthick</title>
		<link>http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-12116</link>
		<dc:creator>karthick</dc:creator>
		<pubDate>Tue, 19 Oct 2010 13:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-12116</guid>
		<description>I&#039;m also getting same error(401)!! Pls any one can help me
karthickv08@gmail.com</description>
		<content:encoded><![CDATA[<p>I&#8217;m also getting same error(401)!! Pls any one can help me<br />
<a href="mailto:karthickv08@gmail.com">karthickv08@gmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: www.webmaster-source.com @ 2012-02-09 19:07:27 by W3 Total Cache -->
