<?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="https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Mon, 06 Apr 2026 13:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>By: Post to Twitter From a PHP Script: 2013 Edition</title>
		<link>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-27086</link>
		<dc:creator><![CDATA[Post to Twitter From a PHP Script: 2013 Edition]]></dc:creator>
		<pubDate>Wed, 09 Jan 2013 11:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-27086</guid>
		<description><![CDATA[[...] in 2009, I wrote a post on how to write a simple PHP script to call on the Twitter API and update your status. Despite its [...]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] in 2009, I wrote a post on how to write a simple PHP script to call on the Twitter API and update your status. Despite its [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-26929</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 19 Dec 2012 20:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-26929</guid>
		<description><![CDATA[@Kim Josephs 

or if you need a hosted script you can try http://engator.com/]]></description>
		<content:encoded><![CDATA[<p>@Kim Josephs </p>
<p>or if you need a hosted script you can try <a href="http://engator.com/" rel="nofollow">http://engator.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Josephs</title>
		<link>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-20758</link>
		<dc:creator><![CDATA[Kim Josephs]]></dc:creator>
		<pubDate>Sat, 25 Feb 2012 20:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2010#comment-20758</guid>
		<description><![CDATA[@Deepak - twitter is using now OAuth so the script is not working anymore

Now I use a good app in my opinion called Automatic Rss to Twitter - you can find out more from their website http://bncscripts.com/bnc-automatic-rss-to-twitter-php-script/]]></description>
		<content:encoded><![CDATA[<p>@Deepak &#8211; twitter is using now OAuth so the script is not working anymore</p>
<p>Now I use a good app in my opinion called Automatic Rss to Twitter &#8211; you can find out more from their website <a href="http://bncscripts.com/bnc-automatic-rss-to-twitter-php-script/" rel="nofollow">http://bncscripts.com/bnc-auto.....hp-script/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-20637</link>
		<dc:creator><![CDATA[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><![CDATA[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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-20562</link>
		<dc:creator><![CDATA[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><![CDATA[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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-19576</link>
		<dc:creator><![CDATA[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><![CDATA[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="https://www.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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18837</link>
		<dc:creator><![CDATA[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><![CDATA[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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18835</link>
		<dc:creator><![CDATA[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><![CDATA[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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-18631</link>
		<dc:creator><![CDATA[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><![CDATA[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>https://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/#comment-12421</link>
		<dc:creator><![CDATA[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><![CDATA[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>
</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-14 19:45:02 by W3 Total Cache
-->