<?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>Sun, 19 May 2013 21:07:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Michael Nitschinger's Blog: Session Encryption with Lithium]]></title>
      <guid>http://www.phpdeveloper.org/news/17427</guid>
      <link>http://www.phpdeveloper.org/news/17427</link>
      <description><![CDATA[<p>
<i>Michael Nitschinger</i> has a new post for the <a href="http://lithify.me/">Lithium framework</a> users out there - a quick tutorial about <a href="http://nitschinger.at/Session-Encryption-with-Lithium">encrypting your session information</a> with the new built in "Encrypt" strategy feature.
</p>
<blockquote>
If you check out the master branch, you can use the new Encrypt strategy to encrypt your session data automatically. This means that you can read and write session data in cleartext and they will be encrypted on the fly before getting stored (in a cookie, for example). 
</blockquote>
<p>
You'll need the <a href="http://php.net/manual/en/book.mcrypt.php">mcrypt extension</a> installed for it to work correctly, but it makes storing the encrypted version of your data more or less automatic. Just set up your Session configuration to use it as a strategy and any time you call a "read" or "write" the hard work is handled for you. For those more interests in what's "under the hood" he goes on to talk about how the strategy works, what cipher it uses by default, how to change it and the default string to use in hashing. 
</p>]]></description>
      <pubDate>Fri, 20 Jan 2012 12:09:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell' Blog: PHP OAuth Provider: Access Tokens]]></title>
      <guid>http://www.phpdeveloper.org/news/16788</guid>
      <link>http://www.phpdeveloper.org/news/16788</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted the latest in her look at OAuth in PHP to her blog today, an <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-access-tokens">introduction to access tokens</a> - generating and handling them in your application.
</p>
<blockquote>
I've been working with <a href="http://oauth.net/">OAuth</a>, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. [...] This entry follows on from the ones about the <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Initial-Requirements">initial requirements</a>, <a href="http://www.lornajane.net/posts/2011/PHP-OAuth-Provider-Request-Tokens">how to how to handle request tokens</a>, and <a href="http://www.lornajane.net/posts/2011/php-oauth-provider-authenticate-user">authenticating users</a>.
</blockquote>
<p>
In this latest post, she talks about the three different types of tokens - consumer, request and verififier - and how to use them to locate a user in your app's users. Her code validates the request token and verifier against the database and, if successful, inserts the rest of the token information for the user.
</p>]]></description>
      <pubDate>Tue, 30 Aug 2011 08:28:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Getting an OAuth Access Token from the Command Line]]></title>
      <guid>http://www.phpdeveloper.org/news/16448</guid>
      <link>http://www.phpdeveloper.org/news/16448</link>
      <description><![CDATA[<p>
<i>Tim Lytle</i> has written up a <a href="http://devzone.zend.com/article/15363-Getting-an-OAuth-Access-Token-from-the-Command-Line">new tutorial</a> for the Zend Developer Zone talking about OAuth and making one of the more difficult parts - getting an access token - a bit simpler using a command-line application.
</p>
<blockquote>
OAuth is great - there's no need to save users' passwords, it's - in theory - a consistent way to interact with other services, and it's hopefully something that your users are familiar and comfortable using. But if you're not just interacting with your users' accounts - for example, your application uses a single account on a service to broadcast messages, or analyze data - getting or renewing the access token can be painful.
</blockquote>
<p>
He illustrates the problem with an example connecting to Twitter and even <a href="https://gist.github.com/407858">points out a script</a> that makes bridging this gap simpler. Unfortunately, it's not exactly what he needed, so he reworked the idea with a call to the Twitter API using a Zend_Oauth_Consumer and a custom callback. The script is then set up with some command line options for inputting the key and secret information. Also included is functionality letting you define a configuration file. You can see the final result <a href="https://gist.github.com/1014769">here on github</a>.
</p>]]></description>
      <pubDate>Thu, 09 Jun 2011 11:04:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: Accessing Twitter via Zend_Service_Twitter]]></title>
      <guid>http://www.phpdeveloper.org/news/15803</guid>
      <link>http://www.phpdeveloper.org/news/15803</link>
      <description><![CDATA[<p>
In <a href="http://blog.calevans.com/2011/01/25/accessing-twitter-via-zend_service_twitter/">this new post</a> to his blog <i>Cal Evans</i> talks about a project he was working on that needed to interface with Twitter via their API. This, of course, requires OAuth but his script is all backend and Twitter requires a frontend to allow the application access.
</p>
<blockquote>
There is no front end at all. It just collects info and stores it in a database so I can query it later. (I'm an old-school database guy and love just writing ad-hoc queries to see what I can see) Twitter wants to redirect you to a site once you have authorized access. Since I don't actually have a site to redirect it to, this was a problem.
</blockquote>
<p>
His solution ("in two parts") involves tips from two different blog posts - <a href="http://www.dragonbe.com/2010/10/single-user-zendservicetwitter.html">this tutorial</a> from <i>Michelangelo van Dam</i> and the other from <i>Jaisen Mathai</i> about <a href="http://www.jaisenmathai.com/articles/twitter-php-oauth.html">using OAuth with Twitter</a>. He's not releasing the source for his script just yet, though, so you'll have to do a little research on your own.
</p>]]></description>
      <pubDate>Tue, 25 Jan 2011 12:08:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Authenticating with OAuth from PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15202</guid>
      <link>http://www.phpdeveloper.org/news/15202</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has <a href="http://www.lornajane.net/posts/2010/Authenticating-with-OAuth-from-PHP">posted about her experiences</a> with getting OAuth working with her PHP application by way of the <a href="http://pecl.php.net/package/oauth">PECL package</a> that adds support into PHP.
</p>
<blockquote>
I've been looking into OAuth recently and really like what I see, so I started looking at actually starting to play with something that uses it (and isn't twitter). In the pursuit of this, I spent some time walking through the process of how to actually authenticate using OAuth, as a client.
</blockquote>
<p>
She briefly touches on the consumer key and secret and how those are passed along with the OAuth object creation to grab a request token, complete with details on setting a callback. She also mentions how to grab an access token - a piece of information you include in your API calls to let the remote service know who you are. All of her examples are using <a href="http://developer.yahoo.com/oauth/guide/about.html">Yahoo! OAuth services</a>.
</p>]]></description>
      <pubDate>Wed, 29 Sep 2010 08:18:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nettuts.com: Unraveling the Secrets of WordPress' Comments.php File]]></title>
      <guid>http://www.phpdeveloper.org/news/10309</guid>
      <link>http://www.phpdeveloper.org/news/10309</link>
      <description><![CDATA[<p>
The Nettuts site has posted a <a href="http://nettuts.com/news/unraveling-the-secrets-of-wordpress-commentsphp-file/">detailed guide</a> to the "comments.php" file that comes with every release of <a href="http://www.wordpress.org">WordPress</a>:
</p>
<blockquote>
WordPress seems to be everywhere these days, and it's no wonder with it's ease of use and ease of customization. In this tutorial, I'll be dissecting the default WordPress theme's comments.php structure and giving you various snippets of code to make your skinning easier.
</blockquote>
<p>
<a href="http://nettuts.com/news/unraveling-the-secrets-of-wordpress-commentsphp-file/">The guide</a> breaks down the major parts of the file - some of the general code, how it displays comments, the comment submission form and some "little tricks" it does to handle things like comment numbers, links and the alternating colors.
</p>]]></description>
      <pubDate>Fri, 30 May 2008 11:18:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Adam Trachtenberg's Blog: Dirty Secrets of OSCON 2006]]></title>
      <guid>http://www.phpdeveloper.org/news/5973</guid>
      <link>http://www.phpdeveloper.org/news/5973</link>
      <description><![CDATA[<p>
<i>Adam Trachtenberg</i> has posted, according to <a href="http://www.trachtenberg.com/blog/2006/08/07/dirty-secrets-of-oscon-2006/">this new item on his blog</a>, the slides from his presentation at this year's OSCON. The title of the talk? "Dirty Secrets of PHP 5's ext/soap Extension."
</p>
<p>
<a href="http://www.trachtenberg.com/talks/dirtysecretssoap.pdf">The slides</a> [pdf] summarizes his talk, described as:
</p>
<blockquote>
PHP 5's ext/SOAP extension is an excellent web services client. However, while the easy things are easy, lack of documentation means the hard things can appear downright impossible. Starting with SOAPClient basics and building upwards, learn the hidden secrets necessary to conquer even the strangest WSDL.
</blockquote>
<p>
In the presentation, he not only describes the functionality the PHP 5 extension offers, but provides a few simple code examples to help with the explaination.
</p>]]></description>
      <pubDate>Tue, 08 Aug 2006 05:46:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike Naberezny's Blog: PHP Secret Santa]]></title>
      <guid>http://www.phpdeveloper.org/news/4514</guid>
      <link>http://www.phpdeveloper.org/news/4514</link>
      <description><![CDATA[In the spirit of the holiday, <i>Mike Naberezny</i> has his own take on the whole "simplicity" and "clean code" arguments between the different camps (PHP/Python/Ruby) and gives an example of a simple way PHP can handle your Secret Santa needs.
<p>
<quote>
<i>
Today, I ran across <a href="http://project.ioni.st/post/490">Ruby Secret Santa</a>. I couldn't help but think to myself, "That's sort of nice looking but wow, for a little thing like Secret Santa, how much overkill is that?" Here's the same thing in PHP, minus the database fetch (add it in two lines).
<p>
That's less than half the code. I think this is a fair comparison because it directly compares PHP to Ruby, without any "frameworks" or other middleware in between. Which one do you think is extremely simple?
</i>
</quote>
<p>
I like how <a href="http://www.mikenaberezny.com/archives/34">he puts it</a> as well: 
<p>
<quote>
<i>
I think that Rails is a phenomenal tool, but it's tooling '" not a language. I am sure that great tools will come for PHP as well, and that <a href="http://www.php.net/">PHP</a> itself will always be a language that is both highly productive and high performance. Do you <a href="http://talks.php.net/show/acon05/4">Yahoo</a>!?
</i>
</quote>]]></description>
      <pubDate>Fri, 16 Dec 2005 07:40:48 -0600</pubDate>
    </item>
  </channel>
</rss>
