<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Barattalo &#187; Php</title>
	<atom:link href="http://www.barattalo.it/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barattalo.it</link>
	<description>code snippets, classes and other stuff for developers</description>
	<lastBuildDate>Mon, 07 Nov 2011 11:40:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to change twitter status with php and curl without oAuth</title>
		<link>http://www.barattalo.it/2010/09/09/how-to-change-twitter-status-with-php-and-curl-without-oauth/</link>
		<comments>http://www.barattalo.it/2010/09/09/how-to-change-twitter-status-with-php-and-curl-without-oauth/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 17:43:26 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[status update]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=626</guid>
		<description><![CDATA[Twitter api authentication Since the 31 of august 2010, twitter made its API more secure, stopping basic authentication calls. So, if you used basic authentication you have to change your code and implement oAuth authentication model (you can read about oAuth on Wikipedia). The oAuth authentication model Using oAuth means that you have to register [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/' rel='bookmark' title='PHP curl bot to update Facebook status'>PHP curl bot to update Facebook status</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-to-get-twitter-infos-and-avatar/' rel='bookmark' title='PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</a></li>
<li><a href='http://www.barattalo.it/2010/01/06/test-if-a-remote-url-exists-with-php-and-curl/' rel='bookmark' title='Test if a remote url exists with PHP and CURL'>Test if a remote url exists with PHP and CURL</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='PHP bot to get wikipedia definitions'>PHP bot to get wikipedia definitions</a></li>
<li><a href='http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/' rel='bookmark' title='Tiny url encode and decode with PHP'>Tiny url encode and decode with PHP</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/09/09/how-to-change-twitter-status-with-php-and-curl-without-oauth/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	<enclosure url="http://www.barattalo.it/wp-content/uploads/2010/09/2010-09-10_122110-300x192.gif" length="11506" type="image/jpg" /><media:content url="http://www.barattalo.it/wp-content/uploads/2010/09/2010-09-10_122110-300x192.gif" width="300" height="192" medium="image" type="image/gif" />	</item>
		<item>
		<title>PHP bot to get wikipedia definitions</title>
		<link>http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/</link>
		<comments>http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 14:14:03 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & web bots]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[webbot]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=606</guid>
		<description><![CDATA[Wikipedia, the collaborative and multilingual encyclopedia project, has a lot of usefull terms defined in its database, you can find informations on artists, cities, medical terms, cars, brands&#8230; quite everything. If you need to add some content to your pages without having that content in your database you can use Wikipedia API or Google define [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2011/02/21/get-myspace-events-php-function/' rel='bookmark' title='get MySpace events with a PHP function'>get MySpace events with a PHP function</a></li>
<li><a href='http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/' rel='bookmark' title='Tiny url encode and decode with PHP'>Tiny url encode and decode with PHP</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-to-get-twitter-infos-and-avatar/' rel='bookmark' title='PHP to get twitter infos and avatar'>PHP to get twitter infos and avatar</a></li>
<li><a href='http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/' rel='bookmark' title='Parsing Flickr Feed with PHP tutorial'>Parsing Flickr Feed with PHP tutorial</a></li>
<li><a href='http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/' rel='bookmark' title='PHP curl bot to update Facebook status'>PHP curl bot to update Facebook status</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<enclosure url="http://www.barattalo.it/wp-content/uploads/2010/08/wikipedia-300x102.gif" length="5566" type="image/jpg" /><media:content url="http://www.barattalo.it/wp-content/uploads/2010/08/wikipedia-300x102.gif" width="300" height="102" medium="image" type="image/gif" />	</item>
		<item>
		<title>PHP to post on a Facebook page</title>
		<link>http://www.barattalo.it/2010/07/28/php-to-post-on-facebook-page/</link>
		<comments>http://www.barattalo.it/2010/07/28/php-to-post-on-facebook-page/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 15:18:15 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & web bots]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook page]]></category>
		<category><![CDATA[fan page]]></category>
		<category><![CDATA[mini bot class]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Spider]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=549</guid>
		<description><![CDATA[Hi, I&#8217;ve modified the Mini Bot Class, I&#8217;ve fixed the Facebook status update and I&#8217;ve implemented the function to post on the wall of a facebook page: suppose you have a page of a brand, and you need to update it regularly with a cron job&#8230; Very, very usefull, isn&#8217;t it? Nothing more to say. [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/' rel='bookmark' title='PHP curl bot to update Facebook status'>PHP curl bot to update Facebook status</a></li>
<li><a href='http://www.barattalo.it/2010/01/16/php-web-page-to-text-function/' rel='bookmark' title='PHP Web page to text function'>PHP Web page to text function</a></li>
<li><a href='http://www.barattalo.it/2010/01/17/posting-to-facebook-from-website-with-facebook-connect/' rel='bookmark' title='Posting to Facebook from website with Facebook Connect'>Posting to Facebook from website with Facebook Connect</a></li>
<li><a href='http://www.barattalo.it/2010/01/20/new-version-of-mini-bots-php-class-v-1-4/' rel='bookmark' title='New version of Mini Bots PHP Class (v.1.4)'>New version of Mini Bots PHP Class (v.1.4)</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='PHP bot to get wikipedia definitions'>PHP bot to get wikipedia definitions</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/07/28/php-to-post-on-facebook-page/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<enclosure url="http://www.barattalo.it/wp-content/uploads/2010/07/fanpage-300x132.gif" length="10893" type="image/jpg" /><media:content url="http://www.barattalo.it/wp-content/uploads/2010/07/fanpage-300x132.gif" width="300" height="132" medium="image" type="image/gif" />	</item>
		<item>
		<title>Parsing Flickr Feed with PHP tutorial</title>
		<link>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/</link>
		<comments>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/#comments</comments>
		<pubDate>Sun, 30 May 2010 21:48:28 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Spiders & web bots]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[grabbing]]></category>
		<category><![CDATA[Mini Bots Class]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Spider]]></category>
		<category><![CDATA[Thumbs]]></category>
		<category><![CDATA[webbot]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=531</guid>
		<description><![CDATA[I&#8217;ve spent about 30 minutes to find a javascript embed to print out a custom thumbs list of flickr photos, but I didn&#8217;t find anything clean enaugh&#8230; and I&#8217;ve not enaugh time to spend to read the flickr&#8217;s API&#8217;s&#8230; So, I&#8217;ve searched for the feed of the user, and I&#8217;ve found it at the bottom [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2011/08/18/how-to-use-instagr-am-photos/' rel='bookmark' title='How to use Instagr.am photos on your site'>How to use Instagr.am photos on your site</a></li>
<li><a href='http://www.barattalo.it/2009/12/24/php-meteo-bot-for-google/' rel='bookmark' title='PHP bot to grab meteo information from Google'>PHP bot to grab meteo information from Google</a></li>
<li><a href='http://www.barattalo.it/2011/02/21/get-myspace-events-php-function/' rel='bookmark' title='get MySpace events with a PHP function'>get MySpace events with a PHP function</a></li>
<li><a href='http://www.barattalo.it/2010/08/29/php-bot-to-get-wikipedia-definitions/' rel='bookmark' title='PHP bot to get wikipedia definitions'>PHP bot to get wikipedia definitions</a></li>
<li><a href='http://www.barattalo.it/2009/11/10/do-spelling-using-google/' rel='bookmark' title='Do spelling using google spell checker'>Do spelling using google spell checker</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/05/30/parsing-flickr-feed-with-php-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<enclosure url="http://www.barattalo.it/wp-content/uploads/2010/05/2010-05-30_233558-300x268.jpg" length="23388" type="image/jpg" /><media:content url="http://www.barattalo.it/wp-content/uploads/2010/05/2010-05-30_233558-300x268.jpg" width="300" height="268" medium="image" type="image/jpeg" />	</item>
		<item>
		<title>Recursive remove directory (RMDIR) in PHP</title>
		<link>http://www.barattalo.it/2010/02/02/recursive-remove-directory-rmdir-in-php/</link>
		<comments>http://www.barattalo.it/2010/02/02/recursive-remove-directory-rmdir-in-php/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:46:41 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[dir]]></category>
		<category><![CDATA[remove directory]]></category>
		<category><![CDATA[rmdir]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=428</guid>
		<description><![CDATA[This small php function is a recursive remove directory that remove non empty dirs recursively. It enters every directory, removes every file starting from the given path. Related posts:Recursive chmod on files and directory Is Empty Dir? Mini gallery/slideshow with PHP and JQuery Calculate dir size recursively with PHP (and count files) Always remove slashes [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/19/recursive-chmod-on-files-and-directory/' rel='bookmark' title='Recursive chmod on files and directory'>Recursive chmod on files and directory</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/is-empty-dir/' rel='bookmark' title='Is Empty Dir?'>Is Empty Dir?</a></li>
<li><a href='http://www.barattalo.it/2009/12/13/mini-galleryslideshow-with-php-and-jquery/' rel='bookmark' title='Mini gallery/slideshow with PHP and JQuery'>Mini gallery/slideshow with PHP and JQuery</a></li>
<li><a href='http://www.barattalo.it/2010/02/01/calculate-dir-size-recursively/' rel='bookmark' title='Calculate dir size recursively with PHP (and count files)'>Calculate dir size recursively with PHP (and count files)</a></li>
<li><a href='http://www.barattalo.it/2010/04/27/always-remove-slashes-from-get-and-post/' rel='bookmark' title='Always remove slashes from GET and POST'>Always remove slashes from GET and POST</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/02/02/recursive-remove-directory-rmdir-in-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 PHP usefull functions for MySQL stuff</title>
		<link>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/</link>
		<comments>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:44:02 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[mysql_fetch_array]]></category>
		<category><![CDATA[mysql_query]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[Recordset]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=403</guid>
		<description><![CDATA[Here is my personal collection of 10 php function that I always include in my database function library. I think they are very usefull and I&#8217;d like to share with you. Here are the mysqli versions of the functions. (NEW) FUNCTION 1: CONNECT TO A DB Connect function. I know, everybody already has this function [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/execute-scalar-for-php/' rel='bookmark' title='Execute Scalar and Execute Row for Php'>Execute Scalar and Execute Row for Php</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MYSQL add counter in a query</title>
		<link>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/</link>
		<comments>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:13:16 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=393</guid>
		<description><![CDATA[Sometimes I&#8217;ve needed to add a counter column in a query and I don&#8217;t want to add the column with php, so I&#8217;ve found this query to put the counter directly in the record set returned out from the query. To use it in PHP scripts you have to use 2 query statements: Related posts:10 [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/execute-scalar-for-php/' rel='bookmark' title='Execute Scalar and Execute Row for Php'>Execute Scalar and Execute Row for Php</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>For next project: Google Analytics API</title>
		<link>http://www.barattalo.it/2009/12/08/for-next-project-google-analytics-api/</link>
		<comments>http://www.barattalo.it/2009/12/08/for-next-project-google-analytics-api/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 20:59:37 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=192</guid>
		<description><![CDATA[This is a memo, because at the moment I don&#8217;t need to use this new API from Google, but since it&#8217;s always necessary to track clicks, events, pageviews, user&#8230; and since I&#8217;ve always had to make my own stats for my clients, I think that for the next project I will have to user this [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2009/12/13/clustering-many-markers-with-google-maps-v3/' rel='bookmark' title='Clustering many markers with Google Maps v3'>Clustering many markers with Google Maps v3</a></li>
<li><a href='http://www.barattalo.it/2009/11/10/do-spelling-using-google/' rel='bookmark' title='Do spelling using google spell checker'>Do spelling using google spell checker</a></li>
<li><a href='http://www.barattalo.it/2009/12/24/php-meteo-bot-for-google/' rel='bookmark' title='PHP bot to grab meteo information from Google'>PHP bot to grab meteo information from Google</a></li>
<li><a href='http://www.barattalo.it/2010/03/30/php-google-images-mini-bot/' rel='bookmark' title='PHP google images mini bot'>PHP google images mini bot</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/12/08/for-next-project-google-analytics-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

