<?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>PHP Tutorials</title>
	<atom:link href="http://phpcollection.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpcollection.com</link>
	<description>PHP Tutorials collection</description>
	<lastBuildDate>Tue, 01 May 2012 12:39:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Codeigniter Linkedin library</title>
		<link>http://phpcollection.com/php-linkedin-library/</link>
		<comments>http://phpcollection.com/php-linkedin-library/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 17:18:59 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Codeigniter]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=809</guid>
		<description><![CDATA[Linkedin is a much ignored API with a lot of potential. I was always looking for a good implementation of Codeigniter Linkedin library but never found one, with the help of Linkedin PHP library (Please someone point out to correct source). I have created a basic implementation of Linkedin library on Linkedin, documentation and more [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Linkedin is a much ignored API with a lot of potential. I was always looking for a good implementation of Codeigniter Linkedin library but never found one, with the help of Linkedin PHP library (Please someone point out to correct source). I have created a basic implementation of Linkedin library on Linkedin, documentation and more functions are in roadmap. Do check out at <a href="https://github.com/gauravtechie/Codeigniter-linkedin">https://github.com/gauravtechie/Codeigniter-linkedin</a> .   </p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/php-linkedin-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pinterest API</title>
		<link>http://phpcollection.com/pinterest-api-php/</link>
		<comments>http://phpcollection.com/pinterest-api-php/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 09:22:24 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[API]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=836</guid>
		<description><![CDATA[Everyone&#8217;s waiting to see a launch of Pinterest API. Pinterest had a working API which they took down for some unclaimed reasons. Some users have managed to take a cached version of Pinterest API docs online and can be found at http://tijn.bo.lt/pinterest-api . You are not able to use the oAuth calls from these API [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Everyone&#8217;s waiting to see a launch of Pinterest API. Pinterest had a working API which they took down for some unclaimed reasons. Some users have managed to take a cached version of Pinterest API docs online and can be found at <a href="http://tijn.bo.lt/pinterest-api">http://tijn.bo.lt/pinterest-api</a> . </p>
<p>You are not able to use the oAuth calls from these API docs, but you can successfully read data via these API docs, even for that you need to send correct headers to emulate calls such that they are coming from Pinterest iPhone app.</p>
<p>Correct headers are:-</p>
<p><code><br />
Host: api.pinterest.com<br />
User-Agent: Pinterest For iPhone / 1.4.3<br />
Accept-Encoding: gzip<br />
Connection: keep-alive<br />
Proxy-Connection:...<br />
</code></p>
<p>There are news going around that Pinterest is scared of having a problem like twitter, where spammers used API very intelligently to bombard twitter with a lot of crap data. Twitter still having a hard time to tackle these spam accounts big time <a href="http://articles.businessinsider.com/2012-03-26/tech/31238519_1_mobile-apps-twitterrific-hootsuite">http://articles.businessinsider.com/2012-03-26/tech/31238519_1_mobile-apps-twitterrific-hootsuite</a> . We hope that these fears don&#8217;t put Pinterest people off track of developing a full fledged API.</p>
<p>Want more of updated development. Join Pinterest unofficial API developer Group here on facebook <a href="https://www.facebook.com/groups/pinterestapi/">https://www.facebook.com/groups/pinterestapi/</a></p>
<p>Update:<br />
One implementation of Pinterest API at Github. Still to test it though by me. <a href="https://github.com/kellan/pinterest.api.php">https://github.com/kellan/pinterest.api.php</a> </p>
<p>&#038;nbsp</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/pinterest-api-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make svn ignore file and folders on update and commit</title>
		<link>http://phpcollection.com/svn-ignore-file-folder/</link>
		<comments>http://phpcollection.com/svn-ignore-file-folder/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 10:58:59 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[SVN]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=827</guid>
		<description><![CDATA[When we work on Production and Development environment separately on subversion, many times we need to keep a file outside of the SVN versioning. Usually conf files come under this category. A simple method of this is to navigate to the repositry and simply issue command so that svn ignore file in that folder. &#160; Don&#8217;t forget [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When we work on Production and Development environment separately on subversion, many times we need to keep a file outside of the SVN versioning. Usually conf files come under this category.</p>
<p>A simple method of this is to navigate to the repositry and simply issue command so that svn ignore file in that folder. </p>
<p>&nbsp;</p>
<pre class="brush: php; title: ; notranslate">
svn propset svn:ignore -F filename .
</pre>
<p>Don&#8217;t forget to include the last &#8220;.&#8221; it tells the svn client to set this property in the current folder you are working on. </p>
<p>For exluding multiple files of the same </p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/svn-ignore-file-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revert files to older svn version</title>
		<link>http://phpcollection.com/revert-files-to-older-svn-version/</link>
		<comments>http://phpcollection.com/revert-files-to-older-svn-version/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 07:07:53 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=813</guid>
		<description><![CDATA[A lot of times developers do one or other mistakes and you need to revert the files to older version. Which basically mean that you need to merge backwards with a older version of files. So let&#8217;s say if you want to go back from version 100 to 99, you&#8217;ve to svn update svn merge [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>A lot of times developers do one or other mistakes and you need to revert the files to older version. Which basically mean that you need to merge backwards with a older version of files. So let&#8217;s say if you want to go back from version 100 to 99, you&#8217;ve to </p>
<p><code><br />
svn update<br />
svn merge -r 100:99 .<br />
svn commit -m "Rolling back to version 99"<br />
</code></p>
<p>Notice the . at end of svn merge command, this tells that current directory needs to be merged if you need a particular file to be merged you need to issue</p>
<p><code><br />
svn merge -r 100:99 conf.php<br />
svn commit -m "Rolling back conf.php to version 99"<br />
</code></p>
<p>Hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/revert-files-to-older-svn-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restricting folders for svn access</title>
		<link>http://phpcollection.com/restrict-folder-svn/</link>
		<comments>http://phpcollection.com/restrict-folder-svn/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 06:30:50 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=816</guid>
		<description><![CDATA[While working with several developers at the same time, you really need a method to make sure that each team doesn&#8217;t mess up with someone else module. Splitting directories of each user is a nice idea when your developers are not that diciplined or when you are running multiple sites of same repository. I faced [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>While working with several developers at the same time, you really need a method to make sure that each team doesn&#8217;t mess up with someone else module. Splitting directories of each user is a nice idea when your developers are not that diciplined or when you are running multiple sites of same repository. </p>
<p>I faced a similar problem when i wanted to restrict access to 2 of my developers from editing anything above directories i allocated. For this</p>
<p>Go to your conf directory this would be located inside your main configuration directory.</p>
<p><code>#cd conf<br />
</code><br />
Fire up your favorite editor, mine is nano</p>
<p><code>#nano authz<br />
</code><br />
And put a access control to directory</p>
<p><code>[/repo/project/folder]<br />
usera = rw<br />
userb = r<br />
</code></p>
<p>Say if you have multiple repositry in svn server, restrict access to a particular repositry by </p>
<p><code>[repo1:/repo/project/folder]<br />
usera = rw<br />
userb = r</code></p>
<p>I think this should help.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/restrict-folder-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Plus API</title>
		<link>http://phpcollection.com/google-plus-api/</link>
		<comments>http://phpcollection.com/google-plus-api/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 01:50:01 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google plus]]></category>
		<category><![CDATA[plus API]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=792</guid>
		<description><![CDATA[Google is rolling out API very soon for developers to take a sneak peak and develop applications. In the meantime developers can sign up at https://services.google.com/fb/forms/plusdevelopers/ to get a early access onto the Google plus API. Eventually, google plus is playing a invite only for brands and developers too after a successful stunt with social [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Google is rolling out API very soon for developers to take a sneak peak and develop applications. In the meantime developers can sign up at https://services.google.com/fb/forms/plusdevelopers/ to get a early access onto the Google plus API.</p>
<p>Eventually, google plus is playing a invite only for brands and developers too after a successful stunt with social networking users all around the world. Brands can sign up here http://goo.gl/zq95C to be the first to get listed as business on Google+.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/google-plus-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ERROR:  While executing gem (Gem::RemoteSourceException)  HTTP Response 302 fetching</title>
		<link>http://phpcollection.com/error-while-executing-gem-gemremotesourceexception-http-response-302-fetching/</link>
		<comments>http://phpcollection.com/error-while-executing-gem-gemremotesourceexception-http-response-302-fetching/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 01:40:29 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[gem exception]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[ruby on rails error]]></category>
		<category><![CDATA[source ruby]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=790</guid>
		<description><![CDATA[While struggling with old gems and ruby installation on my macosx. I googled a lot for response and find no satisfactory answer. The problem was simple, macosx 10.5 comes with ruby 1.8.1 and rails 1.2.6 which is now a depreciated version of ROR and not recommended to be used for production. Now since gems have [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>While struggling with old gems and ruby installation on my macosx. I googled a lot for response and find no satisfactory answer.</p>
<p>The problem was simple, macosx 10.5 comes with ruby 1.8.1 and rails 1.2.6 which is now a depreciated version of ROR and not recommended to be used for production.</p>
<p>Now since gems have moved there base, every gem install command was throwing a 302 HTTP error.</p>
<pre>
$ sudo gem install rails
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml
</pre>
<p>Even the most suggested resolution which is a gem update didn&#8217;t work.</p>
<pre>
gaurav-mishras-macbook:rubygems-1.8.5 gaurav$ sudo gem update --system
Updating RubyGems...
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml
</pre>
<p>Then luckily a landed to a blog post which mentioned a similar problem and changing the source of the gem repositry worked like charm. Just add  &#8211;source http://production.s3.rubygems.org</p>
<p>For example</p>
<pre>
gaurav-mishras-macbook:rubygems-1.8.5 gaurav$ sudo gem update --system --source http://production.s3.rubygems.org
Updating RubyGems...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/error-while-executing-gem-gemremotesourceexception-http-response-302-fetching/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>2 most common php url functions for daily use</title>
		<link>http://phpcollection.com/php-url/</link>
		<comments>http://phpcollection.com/php-url/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 14:00:44 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=773</guid>
		<description><![CDATA[Seldom every php developer need some php url functions to work with , usually while parsing a web portal or finding the links url functions come very handy. Here are URL based functionalities a developer may need . 1) Get the url of the portal:- echo $_SERVER('HTTP_HOST'); 2) Parse the url for extracting all components:- [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Seldom every php developer need some php url functions to work with , usually while parsing a web portal or finding the links url functions come very handy.</p>
<p>Here are URL based functionalities a developer may need .</p>
<p>1) Get the url of the portal:-</p>
<pre class="php">

echo $_SERVER('HTTP_HOST');
</pre>
<p>2) Parse the url for extracting all components:-</p>
<pre class="php">

$url_demo = 'http://user:pass@host/path?arg=val';

print_r(parse_url($url_demo));
</pre>
<p>Hope these handy code snippets would help you to save time for URL formatting in PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/php-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Plus Circles</title>
		<link>http://phpcollection.com/google-circle/</link>
		<comments>http://phpcollection.com/google-circle/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 16:10:22 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google Circles]]></category>
		<category><![CDATA[Google Circles API]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=781</guid>
		<description><![CDATA[Update:- Google launched the google circle social network as Google plus. API is still awaited. Updates will be coming as the API gets launched. Google is launching there new social networking service &#8220;Google Circles&#8221;, this is rumored to offer photo sharing, video sharing and updates. Which can be tightly linked to other social networks and [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Update:- Google launched the google circle social network as Google plus. API is still awaited. Updates will be coming as the API gets launched.</p>
<p>Google is launching there new social networking service &#8220;Google Circles&#8221;, this is rumored to offer photo sharing, video sharing and updates. Which can be tightly linked to other social networks and circles. This news was broken by Read Write web today from #sxsw.</p>
<p>We wonder where buzz will fit into this and since this will be google product we are very excited to see what API details it will offer. We promise our readers to update with every bit of details, when there API announcement comes out.</p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/google-circle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Youtube PHP class</title>
		<link>http://phpcollection.com/youtube-php/</link>
		<comments>http://phpcollection.com/youtube-php/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 13:22:06 +0000</pubDate>
		<dc:creator>Learn PHP</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://phpcollection.com/?p=778</guid>
		<description><![CDATA[Youtube is a great API for finding relevant videos. Vimeo may had great community, but no one can challenge huge amount of videos and buzz youtube community generates. For fetching youtube video,i have put down a very basic PHp class. It would help users to fetch videos via query or categories. Complete code can be [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Youtube is a great API for finding relevant videos. Vimeo may had great community, but no one can challenge huge amount of videos and buzz youtube community generates.</p>
<p>For fetching youtube video,i have put down a very basic PHp class. It would help users to fetch videos via query or categories.</p>
<p>Complete code can be found at <a href="https://github.com/gauravtechie/youtube-api-php">https://github.com/gauravtechie/youtube-api-php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://phpcollection.com/youtube-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

