<?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, 12 Feb 2012 21:02:23 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tales of a Coder: What are the Essential PHP/Javascript/Web Development Feeds?]]></title>
      <guid>http://www.phpdeveloper.org/news/17315</guid>
      <link>http://www.phpdeveloper.org/news/17315</link>
      <description><![CDATA[<p>
On the "Tales of a Coder" blog today there's a new post trying to gather some of the more popular web resources for PHP, Javascript and general web development and <a href="http://codertales.wordpress.com/2011/12/28/what-are-the-essential-php-javascript-web-development-feeds/">provide a set of links</a> to make them easier to get to.
</p>
<blockquote>
What feeds do the super star PHP/ JavaScript web developers subscribe to?  What are the essential PHP/ JavaScript/ Web Development feeds? I have shared my fledgling list below.  Many of these feeds were recommended by my friends at <a href="http://www.phpwomen.org/">PHPWomen</a>, others I somehow stumbled across myself and some I picked up from articles tweeted with the #linktuesday hashtag, which are <a href="http://linktuesday.com/">aggregated here</a>. 
</blockquote>
<p>
So far, the links include <a href="http://www.phparch.com/feed/">php|architect</a>, <a href="http://www.planet-php.org/rss/">Planet-PHP.net</a>, the <a href="http://feeds.yuiblog.com/YahooUserInterfaceBlog">YUI blog</a>, <a href="http://feeds.feedburner.com/mattgemmell/rss2">Matt Gemmell's blog</a> and <a href="http://www.goer.org/Feeds/journal.atom">Evan Goer's blog</a>. If you have others to share, be sure to <a href="http://codertales.wordpress.com/2011/12/28/what-are-the-essential-php-javascript-web-development-feeds/#comments">leave them in the comments</a>!
</p>]]></description>
      <pubDate>Wed, 28 Dec 2011 10:07:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: File Security and Resources with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17165</guid>
      <link>http://www.phpdeveloper.org/news/17165</link>
      <description><![CDATA[<p>
In the fourth part of their series looking at working with the filesystem in PHP, DevShed has posted a new tutorial focusing on <a href="http://www.devshed.com/c/a/PHP/File-Security-and-Resources-with-PHP/">security and permission handling</a> for files/resources.
</p>
<blockquote>
These days, security is paramount to any server installation, large or small. Most modern operating systems have embraced the concept of the separation of file rights via a user/group ownership paradigm, which, when properly configured, offers a wonderfully convenient and powerful means for securing data. In this section, you'll learn how to use PHP's built-in functionality to review and manage these permissions.
</blockquote>
<p>They introduce functions like:</p>
<ul>
<li><a href="http://php.net/chown">chown</a>
<li><a href="http://php.net/chgrp">chgrp</a>
<li><a href="http://php.net/fileperms">fileperms</a>
<li><a href="http://php.net/isexecutable">isexecutable</a>
<li><a href="http://php.net/umask">umask</a>
</ul>
<p>
Sample code is also included to show how to <a href="http://www.devshed.com/c/a/PHP/File-Security-and-Resources-with-PHP/2/">open and close a file</a>.
</p>]]></description>
      <pubDate>Wed, 23 Nov 2011 16:23:27 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lars Tesmer's Blog: How to Unit Test a Class Making Calls to an URL (or the Filesystem) With PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/16889</guid>
      <link>http://www.phpdeveloper.org/news/16889</link>
      <description><![CDATA[<p>
<i>Lars Tesmer</i> has a suggestion for all of the unit testers out there (you do unit test your code, right?) when needing to test a piece of code that makes a call to something on the file system or a remote resource. Their examples come from tests written against the <a href="https://github.com/kriswallsmith/assetic">Assetic</a> codebase.
</p>
<blockquote>
For our most recent <a href="http://lars-tesmer.com/blog/categories/after-work-hacking/">After Work Hacking</a> my co-workers and me decided to write unit tests for the open source project <a href="https://github.com/kriswallsmith/assetic">Assetic</a>. That turned out to be a better decision than our last one, yet we still ran into an interesting challenge.
</blockquote>
<p>
In testing the HttpAsset class from the tool, they came across the problem - a call to a remote/file resource that could not be tested because of a <a href="http://php.net/manual/en/function.file-get-contents.php">file_get_contents</a> call that depends on an external source. They came up with a few options to try to test this example, some better than others:
</p>
<ul>
<li>Give it a real URL to test with
<li>Wrap the file_get_contents inside of a new class (ex. a "ContentFetcher")
<li>Use <a href="https://github.com/mikey179/vfsStream">vfsStream</a> to mock out the file system in the unit test
</ul>
<p>
In their case, vfsStream couldn't be used due to how the fetch call was made, but the tool can be very handy if you need to mock out an external file system resource.
</p>]]></description>
      <pubDate>Wed, 21 Sep 2011 12:04:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Importing Symfony2 security settings from a bundle]]></title>
      <guid>http://www.phpdeveloper.org/news/16772</guid>
      <link>http://www.phpdeveloper.org/news/16772</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Robert Basic</i> takes a brief look at <a href="http://robertbasic.com/blog/importing-symfony2-security-settings-from-a-bundle/">importing Symfony2 security settings</a> from a bundle he's been creating back into the main configuration.
</p>
<blockquote>
I started to work on/figuring out the <a href="http://symfony.com/doc/current/book/security.html">security part</a> in Symfony2 and one part where the docs fail so far is to explain how to import security settings from a bundle. Once I put some thinking into it, it's pretty easy actually. Simply import the needed security file in your main config file.
</blockquote>
<p>
His trick is to use the "imports" key in his YAML config file to define the resource to pull from in his config.xml. More information on the format of the security file can be <a href="http://symfony.com/doc/current/book/security.html#basic-example-http-authentication">found here</a> in the Symfony documentation. It helps you define authentication mechanisms, authorization models and working with access control and roles. 
</p>]]></description>
      <pubDate>Thu, 25 Aug 2011 11:58:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: Creating Custom Application Resources]]></title>
      <guid>http://www.phpdeveloper.org/news/16463</guid>
      <link>http://www.phpdeveloper.org/news/16463</link>
      <description><![CDATA[<p>
New on ZendCasts.com today there's a <a href="http://www.zendcasts.com/creating-custom-application-resources/2011/06/">new screencast</a> showing you how to create a custom application resource for your Zend Framework application. It's the (possibly final) video in the series he's been doing with the HTMLPurifier filtering.
</p>
<blockquote>
We've taken a library that's outside the framework and want to find an elegant solution that takes advantage of the configuration tools that are already available in the Zend Framework.
</blockquote>
<p>
He takes the previously hard-coded settings for the HTMLPurifier and moves them into a method where they can be set in a configuration file. You can watch the video via the <a href="http://www.zendcasts.com/creating-custom-application-resources/2011/06/">in-page player</a>.
</p>]]></description>
      <pubDate>Tue, 14 Jun 2011 08:55:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin van Zonneveld's Blog: Revisiting Faster PHP Sessions]]></title>
      <guid>http://www.phpdeveloper.org/news/16306</guid>
      <link>http://www.phpdeveloper.org/news/16306</link>
      <description><![CDATA[<p>
<i>Kevin van Zonneveld</i> has a new post to his blog revising an older post talking about session management with PHP and how limit the resources needed by them. In <a href="http://kevin.vanzonneveld.net/techblog/article/faster_php_sessions/">this post</a> he points out another method - holding the sessions in RAM rather than on disk.
</p>
<blockquote>
sing 2007 article <a href="http://kevin.vanzonneveld.net/techblog/article/create_turbocharged_storage_using_tmpfs/">Create turbocharged storage using tmpfs</a>, we can defeat some of this over-engineering and take a simpler approach to speeding up sessions in PHP. We'll store them decentralized in memory by mounting RAM onto the existing /var/lib/php5 session directories throughout your application servers, which I will call nodes from now on.
</blockquote>
<p>
He includes the commands you'll need to make a directory live in the RAM of your machine and how to migrate the existing sessions to this new data store. He covers some of the advantages of this approach (including that there's "less tech" involved so it's easier to manage). There is one point of failure he points out - that it wouldn't be a solution you could use for websites that might need to bridge sessions across machines.
</p>]]></description>
      <pubDate>Fri, 06 May 2011 10:49:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Invalid Protected Resource URL in pecl_oauth]]></title>
      <guid>http://www.phpdeveloper.org/news/16180</guid>
      <link>http://www.phpdeveloper.org/news/16180</link>
      <description><![CDATA[<p>
In a quick post to her blog today, <i>Lorna Mitchell</i> talks about <a href="http://www.lornajane.net/posts/2011/Invalid-Protected-Resource-URL-in-Pecl_Oauth">an issue with pecl_outh</a> tat came up during her development of a new API. A strange fatal error message was breaking her connection.
</p>
<blockquote>
I'd gone through all the handshaking steps, got the acces token and was ready to start talking to the service itself. However when I tried to call OAuth::fetch, I got an error message: Fatal error: Uncaught exception 'OAuthException' with message 'Invalid protected resource url, unable to generate signature base string'
</blockquote>
<p>
As it turns out, the issue was obscure - the address she was connecting to was missing a training slash (http://api.localhost versus http://api.localhost/) and it was causing the OAuth fetch to fail (apparently undocumented). If you're interested in some of the other things that have come up in her work with OAuth on the project, <a href="http://www.lornajane.net/plugin/tag/oauth">see here</a>.
</p>]]></description>
      <pubDate>Tue, 12 Apr 2011 10:16:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: ZendCon Sessions Episode 38: Reusable Bootstrap Resources with Zend_Application]]></title>
      <guid>http://www.phpdeveloper.org/news/15933</guid>
      <link>http://www.phpdeveloper.org/news/15933</link>
      <description><![CDATA[<p>
New on the Zend Developer Zone today is the latest podcast in their "ZendCon Sessions" series (as recorded at the <a href="http://zendcon.com">Zend/PHP Conference 2010</a> in Santa Clara, CA). In <a href="http://devzone.zend.com/article/13061-ZendCon-Sessions-Episode-038-Reusable-Bootstrap-Resources-with-Zend_Application">this episode</a> <i>Hector Virgen</i> talks about creating reusable bootstrap resources with the Zend_Application component of the Zend Framework.
</p>
<p>
His talk introduces you to bootstrapping, shows how to get started with Zend_Tool and shares code and configuration details for using resources in your controllers.
</p>
<p>
You can listen to this latest episode either through the <a href="http://devzone.zend.com/article/13061-ZendCon-Sessions-Episode-038-Reusable-Bootstrap-Resources-with-Zend_Application">in-page player</a>, by <a href="http://devzone.zend.com/content/audio/zendcon_sessions/zendcon_sessions_podcast_038.mp3">downloading the mp3</a> or by subscribing to one of <a href="http://feeds.feedburner.com/zendcon_sessions?format=xml">their</a> <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=310085132">feeds</a>. The slides are <a href="http://www.slideshare.net/djvirgen/reusable-bootstrap-resources-zend-con-2010">also on Slideshare</a> if you'd like to follow along.
</p>]]></description>
      <pubDate>Mon, 21 Feb 2011 10:40:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Using your own View object with Zend_Application]]></title>
      <guid>http://www.phpdeveloper.org/news/15913</guid>
      <link>http://www.phpdeveloper.org/news/15913</link>
      <description><![CDATA[<p>
In the latest post to his blog <i>Rob Allen</i> shows you how to <a href="http://akrabat.com/zend-framework/using-your-own-view-object-with-zend_application/">create a custom View object</a> for your Zend Framework application with the help of the Zend_Application component. It uses one of two ways to set up this custom view object - either in the bootstrap or as a custom resource.
</p>
<blockquote>
Let's say that you want to use your own view object within your Zend Framework application. Creating the view object is easy enough in library/App/View.php along with adding the App_ namespace to the the autoloader in application.ini. All we need to now is get Zend_Application to bootstrap with our new view class. There are two ways of doing this: within Bootstrap.php or using a custom resource.
</blockquote>
<p>
He includes the code to make it happen both ways - by adding an _initView method in the application's Bootstrap.php file or by creating a new class called App_Resource_View that overrides the getView() method that grabs the custom object.
</p>]]></description>
      <pubDate>Wed, 16 Feb 2011 10:38:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Harrie Verveer's Blog: The PHP community: not just about tree hugging geeks]]></title>
      <guid>http://www.phpdeveloper.org/news/15345</guid>
      <link>http://www.phpdeveloper.org/news/15345</link>
      <description><![CDATA[<p>
<i>Harrie Verveer</i> has <a href="http://www.harrieverveer.com/2010/10/26/the-php-community-not-just-about-tree-hugging-geeks/">a new post to his blog</a> today talking about how the PHP community is "not just about tree hugging geeks" and good things about the community that is has to offer companies and developers alike.
</p>
<blockquote>
every once in a while I hear some plea for the great PHP community that makes me a bit nauseous. "Sharing code, knowledge, elePHPants, it's all so fun to share and be part of this great club of lovely people! I share my project with you and you share your project with me. And then we hug! Weeeee!!!" Well f*ck that. [...] So besides the hippy arguments, the PHP community also has some great, more down-to-earth things to offer for companies, developers and everybody else involved.
</blockquote>
<p>
He's made a list of four things (of the many) that the PHP community offers like being able to contribute to open source projects, being able to open source your own projects, attending the many conferences and user groups to "learn and be inspired" by others and, of course, the great online community in the form of tutorial, IRC channels, mailing lists, etc.
</p>]]></description>
      <pubDate>Thu, 28 Oct 2010 08:42:57 -0500</pubDate>
    </item>
  </channel>
</rss>

