<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 12:34:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: An Introduction to Redis in PHP using Predis]]></title>
      <guid>http://www.phpdeveloper.org/news/17901</guid>
      <link>http://www.phpdeveloper.org/news/17901</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial by <i>Daniel Gafitescu</i> showing you how to <a href="http://phpmaster.com/an-introduction-to-redis-in-php-using-predis/">work with Redis</a> (a key-value store) via PHP with the help of the <a href="https://github.com/nrk/predis">Predis</a> library.
</p>
<blockquote>
There is a lot of argument whether Redis or Memcache is better, though <a href="http://antirez.com/post/update-on-memcached-redis-benchmark.html">as the benchmarks show</a> they perform pretty much on par with each other for basic operations. Redis has more features than Memcache has, such as in-memory and disk persistence, atomic commands and transactions, and not logging every change to disk but rather server-side data structures instead. In this article we'll take a look at some of the basic but powerful commands that Redis has to offer using the Predis library.
</blockquote>
<p>
He helps you get a local redis server up and running and includes a <a href="https://github.com/nrk/predis">link to the repository</a> for the latest version of the Predis library. Some sample code is provided showing how to connect to the server, push data into a key/value combination, get the value back out, increment it and check to see if it exists. He also talks about some of the available data types Redis provides and a few other more complex operations you can perform on things other than strings.
</p>]]></description>
      <pubDate>Thu, 03 May 2012 09:35:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SpyreStudios.com: Connecting with API Data from Instagr.am using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17556</guid>
      <link>http://www.phpdeveloper.org/news/17556</link>
      <description><![CDATA[<p>
On SpyreStudios.com there's a post showing you how to <a href="http://spyrestudios.com/connecting-with-api-data-from-instagr-am-using-php/">connect to the Instagr.am API</a> and pull data back with a bit of simple PHP.
</p>
<blockquote>
The process of connecting into API data via OAuth is tricky. Some of the more notable social networks which have adopted this technology include Foursquare, Twitter, and Facebook. But Instagram is a very popular mobile app which has grown tremendously fast. Their recent API v1.0 release has some really neat features where you can pull popular photos, recent users, follower lists, and a whole bunch more.
</blockquote>
<p>
He points to <a href="https://github.com/macuenca/Instagram-PHP-API">the Instagr.am PHP API scripts</a> that the service already provides and shows how to set up an application on your Instagr.am account. This application then has OAuth keys you can use to connect to the service (via the PHP API scripts) and pull back basic user information - profile picture, number of photos, followers, etc. There's also <a href="http://spyrestudios.com/demos/instagram-api/index.php">a live demo</a> you can test out.
</p>]]></description>
      <pubDate>Fri, 17 Feb 2012 10:02:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: SensioLabs Connect, a week later]]></title>
      <guid>http://www.phpdeveloper.org/news/17140</guid>
      <link>http://www.phpdeveloper.org/news/17140</link>
      <description><![CDATA[<p>
On the Symfony Blog today they have an update on their latest community offering, <a href="https://connect.sensiolabs.com">SensioLabs Connect</a>, a service connecting Symfony developers all around the world. It's been one week since the release and there's <a href="http://symfony.com/blog/sensiolabs-connect-a-week-later">already some changes happening</a>.
</p>
<blockquote>
To celebrate our 1000th user on SensioLabs Connect in a week, we have just rolled out a new version that takes into account some of the <a href="http://symfony.com/blog/developing-the-symfony-community">feedback</a> we had from the community after the launch.
</blockquote>
<p>
Changes include updates to use Gravatar images if you choose not to upload a photo, fixes for a bug with email confirmations and a few new badges added to the system - "first 100 users", "attendees of SymfonyLive" and ones based on seniority in the community. A public API is in the works, but you can grab a profile in json by adding ".json" to the end of a profile URL (like <a href="https://connect.sensiolabs.com/profile/fabpot">Fabien's</a>).
</p>]]></description>
      <pubDate>Thu, 17 Nov 2011 09:47:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...]]></title>
      <guid>http://www.phpdeveloper.org/news/16712</guid>
      <link>http://www.phpdeveloper.org/news/16712</link>
      <description><![CDATA[<p>
On the Ldeveloper Tech Blog today there's a helpful new post about an error PHP's SOAP extension could throw <a href="http://ldeveloper.blogspot.com/2011/08/php-fatal-error-uncaught-soapfault.html">about not being able to connect to the host</a> despite all settings being correct.
</p>
<blockquote>
I receive this nasty error yesterday and it took me some time to figure out the problem: "Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in...". This ["new SoapClient"] line passes without any problems and this [var_dump on __getFunctions] shows the function prototypes correctly.
</blockquote>
<p>
His script connects to the service as its supposed to but the "could not connect" is still thrown. He found a few references to OpenSSL issues that could cause it, but his code was correct so he turned to the other side - the service itself. As it turns out, it wasn't configured correctly.
</p>
<blockquote>
It was configured to send invalid url and the function calls were using that invalid url. So there are two solutions [...]  the first is to configure the server correctly. The other is to give __doReguest the correct location.
</blockquote>]]></description>
      <pubDate>Fri, 12 Aug 2011 11:38:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: SQL Server Driver for PHP Connection Options: Encrypt & Failover_Partner]]></title>
      <guid>http://www.phpdeveloper.org/news/16030</guid>
      <link>http://www.phpdeveloper.org/news/16030</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has posted two more in his "SQL Server Driver for PHP" series looking at some of the connection options that are available. In these two new articles he looks at the <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/03/03/sql-server-driver-for-php-connection-options-failover-partner.aspx">Failover_Partner</a> and <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/03/08/sql-server-driver-for-php-connection-options-encrypt.aspx">Encrypt</a> options.
</p>
<blockquote>
<p>
Database mirroring is primarily a software solution for increasing database availability. [...] When a PHP application connects to the primary server, the Failover_Partner connection option specifies the name of the server to which the application should connect if the primary server is not available.
</p>
<p>
[...] These two options, Encrypt and TrustServerCertificate, are often used together. The Encrypt option is used to specify whether or not the connection to the server is encrypted (the default is false). The TrustServerCertificate option is used to indicate whether the certificate on the SQL Server instance should be trusted (the default is false).
</p>
</blockquote>
<p>
In both there's code examples showing the connection strings and what kinds of parameters you can pass to them. He also gives a few examples of scenarios when they might be useful.
</p>]]></description>
      <pubDate>Fri, 11 Mar 2011 08:41:11 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[9Lessons: Facebook Graph API Connect with PHP and Jquery]]></title>
      <guid>http://www.phpdeveloper.org/news/15817</guid>
      <link>http://www.phpdeveloper.org/news/15817</link>
      <description><![CDATA[<p>
In a new post to the 9Lessons blog <i>Srinivas Tamada</i> shows how to <a href="http://www.9lessons.info/2011/01/facebook-graph-api-connect-with-php-and.html">connect your application to the Facebook Graph API</a> with the PHP you're already using and jQuery. (You'll need to set up a <a href="http://developers.facebook.com/docs/guides/canvas">Facebook application</a> to be able to follow along)
</p>
<blockquote>
Last few days I have been working on labs.9lessons to connecting Facebook Graph API access token system, it's very interesting. This post I had presented in easy way to connect and read the Facebook home timeline with PHP and Jquery. Explained how to store facebook token and user id hope you like it.
</blockquote>
<p>
He shows you how to set up a simple database for storing the Facebook tokens for users, make the connection to the API and the PHP scripts he's created - a hander for the sessions redirect from Facebook, a "home" page for the application to use and a database connection script. He also includes a bit of CSS to style things better than the defaults.
</p>]]></description>
      <pubDate>Thu, 27 Jan 2011 09:20:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Authenticate Users With Facebook Connect]]></title>
      <guid>http://www.phpdeveloper.org/news/14639</guid>
      <link>http://www.phpdeveloper.org/news/14639</link>
      <description><![CDATA[<p>
If you've been thinking about hooking up your application's authentication to the Facebook Connect system that <a href="http://www.facebook.com">Facebook</a> has to offer but weren't sure where to begin, take a look at <a href="http://net.tutsplus.com/tutorials/php/how-to-authenticate-your-users-with-facebook-connect">this new tutorial</a> from NETTUTS.com for a good introductory guide.
</p>
<blockquote>
Lately, there's been <a href="http://www.90percentofeverything.com/2009/03/16/signup-forms-must-die-heres-how-we-killed-ours/">quite a fuzz about lazy registration</a>. It turns out that the less the user has to think, the higher the conversion rates are! What a thought! If everybody seems to have a Facebook profile, why not add a one-click user registration? I'll show you how to do that today.
</blockquote>
<p>
The complete details are here - everything from the SQL to create the MySQL backend tables to screenshots on how to set up the Facebook application to the actual code to make the authentication work. There's even a bit on extended permissions and how to push a message to the user's wall once they've approved the application.
</p>]]></description>
      <pubDate>Fri, 11 Jun 2010 10:16:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Giulio Pons' Blog: Facebook Connect Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/13868</guid>
      <link>http://www.phpdeveloper.org/news/13868</link>
      <description><![CDATA[<p>
<i>Giulio Pons</i> has posted <a href="http://www.barattalo.it/facebook-connect-tutorial/">a great tutorial</a> for anyone looking to hook their application into the Facebook Connect technology.
</p>
<blockquote>
This tutorial will guide you to the process of integration of your web community with Facebook. This means that when a visitor comes to your site it can log in with normal credentials if it has, but if it has not it can click on the "facebook connect" button and try to log in with its facebook account, automatically.
</blockquote>
<p>
You'll need to register the application with Facebook before getting started and get an API key you can use to work with their backend. With the help of the <a href="http://svn.facebook.com/svnroot/platform/clients/packages/facebook-platform.tar.gz">Facebook-provided libraries</a> and a file for the cross-domain interaction (a xd_receiver file) you can use the code he's provided to allow the user to log in with their Facebook username/password and it be mapped to a user on your local application.
</p>]]></description>
      <pubDate>Tue, 19 Jan 2010 12:46:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: Search for photos using PHP and the flickr API]]></title>
      <guid>http://www.phpdeveloper.org/news/13708</guid>
      <link>http://www.phpdeveloper.org/news/13708</link>
      <description><![CDATA[<p>
On the Web Development Blog there's <a href="http://www.web-development-blog.com/archives/search-for-photos-using-php-and-the-flickr-api/">a recent post</a> about connecting your PHP application with the <a href="http://flickr.com">Flickr</a> API to search for photos with the help of a simple class.
</p>
<blockquote>
We will be using the php function "file_get_contents" to receive data from flickr. The data which we will receive will be a serialized PHP array which means all we need to do is unserialize the array and we will easily be able to use the data returned. As an alternative we can use a cURL function to get the data, for example if the function "file_get_contents" is not allowed on your web host.
</blockquote>
<p>
They show how to get your API key from the Flickr website and the sample code that you'll need to make a GET request (with <a href="http://php.net/file_get_contents">file_get_contents</a>) and an example of a loop displaying the response.
</p>]]></description>
      <pubDate>Mon, 21 Dec 2009 15:16:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matt Curry's Blog: Connecting CakePHP Plugins]]></title>
      <guid>http://www.phpdeveloper.org/news/12591</guid>
      <link>http://www.phpdeveloper.org/news/12591</link>
      <description><![CDATA[<p>
On his blog today <i>Matt Curry</i> shows how to <a href="http://www.pseudocoder.com/archives/2009/05/29/connecting-cakephp-plugins/">connect CakePHP plugins</a> so that two could be used and treated as one by the end user.
</p>
<blockquote>
In the asset plugin I needed to know if the localization plugin was also installed and if it was use it. Cake's App::import() function returns "boolean true if Class is already in memory or if file is found and loaded, false if not." Perfect.
</blockquote>
<p>
His code shows how he combines <a href="http://github.com/mcurry/js/">a plugin for localizing javascript files</a> and <a href="http://github.com/mcurry/asset">an asset plugin</a> that combines and compacts javascript and css files.
</p>]]></description>
      <pubDate>Fri, 29 May 2009 08:47:35 -0500</pubDate>
    </item>
  </channel>
</rss>
