<?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>Mon, 20 May 2013 14:08:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[HashBangCode.com: Revisiting filter_var() and FILTER_VALIDATE_URL]]></title>
      <guid>http://www.phpdeveloper.org/news/16139</guid>
      <link>http://www.phpdeveloper.org/news/16139</link>
      <description><![CDATA[<p>
From the HashBangCode.com site today there's a new post that <a href="http://www.hashbangcode.com/blog/revisiting-filtervar-and-filtervalidateurl-548.html">revisits filtering with the filter_var function</a> included with the language. The focus in this article is specifically in validating URLs with the FILTER_VALIDATE_URL flag.
</p>
<blockquote>
<a href="http://www.hashbangcode.com/blog/php-filter-filtervalidateurl-limitations-111.html">Quite a while ago</a> I looked at using the filter_var() function to validate URL's using the FILTER_VALIDATE_URL flag and someone pointed out recently that this function has not only changed since the initial release, but that a number of flags can be added to change the way that this function works.
</blockquote>
<p>
He lists some of the other flags that are now available that can be used in conjunction with FILTER_VALIDATE_URL to get more fine-grained in your filtering - checks on things like a required scheme, hostname and query string. He includes some code with a set of URLs to run through some tests and output as a table with the pass/fail rank of each URL value. You can see the <a href="http://www.hashbangcode.com/examples/filter_var_url_validate/">resulting output here</a>.
</p>]]></description>
      <pubDate>Mon, 04 Apr 2011 08:44:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: User Personalization with PHP: Beginning the Application]]></title>
      <guid>http://www.phpdeveloper.org/news/12026</guid>
      <link>http://www.phpdeveloper.org/news/12026</link>
      <description><![CDATA[<p>
WebReference.com has kicked off a new series of tutorials today with <a href="http://www.webreference.com/programming/php/user_personalization/index.html">this first part</a> of their look at building a personalization system as a part of a bookmarking system.
</p>
<blockquote>
In this tutorial we will build an online bookmark system. This will be used to create a database for storing all our URL's and their descriptions. There are many commercial and non-commercial applications that offer almost the exact functionality that we will create in our application; the difference is that we have full control over our application, allowing us to tweak it to suit our needs.
</blockquote>
<p>
The application lets users login/logout, manage bookmarks, gives recommendations based on those bookmarks, show some news headlines and, most importantly, the user must be able to personalize their interface with a custom color scheme and image of their choosing.
</p>
<p>
This first part gets up to the point of creating the databases (a bookmarks and users tables) and creating the basic template wrapper for the entire site.
</p>]]></description>
      <pubDate>Thu, 26 Feb 2009 08:44:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tobias Schlitt's Blog: iRefuseToUse aNamingScheme]]></title>
      <guid>http://www.phpdeveloper.org/news/10519</guid>
      <link>http://www.phpdeveloper.org/news/10519</link>
      <description><![CDATA[<p>
<i>Tobias Schlitt</i> has <a href="http://schlitt.info/applications/blog/index.php?/archives/607-iRefuseToUse-aNamingScheme.html">posted some comments</a> on things recently said on PHP's upcoming support for namespaces - specifically on the ideas about naming classes the could conflict with PHP's own internal ones.
</p>
<blockquote>
Namespaces are potentially coming in PHP 5.3 (does anyone believe?) and people start discussion about how they can even shorten their names from Abstract to aSomething and from Interface to iAnotherthing. I'm a fan of short names. [...] I agree with these rules and am of the opinion that class names must all above anything contain a semantic. Interfaces indicate what you can do with an object, while abstract classes model that different classes have a common base and can be used in the same mannor. And indeed you can add these semantics to names without using the terms.
</blockquote>
<p>
He gives a few <a href="http://schlitt.info/applications/blog/index.php?/archives/607-iRefuseToUse-aNamingScheme.html">examples</a>, things like Persistable, Configurable and Reflector.
</p>]]></description>
      <pubDate>Tue, 01 Jul 2008 10:25:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Two Security Tips - Naming Scheme & Input Filtering]]></title>
      <guid>http://www.phpdeveloper.org/news/7408</guid>
      <link>http://www.phpdeveloper.org/news/7408</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted two more handy security tips - <a href="http://devzone.zend.com/node/view/id/1761">one</a> concerning file/directory naming and <a href="http://devzone.zend.com/node/view/id/1767">the other</a> about input validation.
</p>
<p>
From <a href="http://devzone.zend.com/node/view/id/1761">the first tip</a>:
</p>
<blockquote>
Don't rely on obscure names to keep your application safe. You should always check permissions, test for vulnerabilities with testing tools and keep an eye on your log files for suspicious activity. When designing your applications and web sites though, don't make it easy for bad people to do bad things. Don't use default or common names for your files and directories.
</blockquote>
<p>
And from <a href="http://devzone.zend.com/node/view/id/1767">the second</a>:
</p>
<blockquote>
It's a sad fact of life but users are evil. Users want nothing more than to find a way to exploit your application. As soon as you let your guard down and start thinking "I'm only selling small stuffed animals so how evil can my users really be?" you've lost the battle.
</blockquote>
<p>
You can catch up on these and the other previous security tips on <a href="http://devzone.zend.com/public/view/tag/Security_Tips">this page</a> on the Zend Developer Zone website.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2007 09:26:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Andrei Zmievski's Blog: PHP 6 and Request Decoding]]></title>
      <guid>http://www.phpdeveloper.org/news/7324</guid>
      <link>http://www.phpdeveloper.org/news/7324</link>
      <description><![CDATA[<p>
<i>Andrei Zmievski</i> has <a href="http://www.gravitonic.com/blog/archives/000360.html">posted something new</a> to his blog today about a feature of PHP6 that's finally been hammered down - HTTP input (request) decoding.
</p>
<blockquote>
There have been no fewer than 4 different proposals floated before, but this one combines flexibility, performance, intuitiveness, and minimal architectural changes, and has only a couple of small drawbacks. Let's take a closer look.
</blockquote>
<p>
He <a href="http://www.gravitonic.com/blog/archives/000360.html">details the functionality</a> - what it is, what's been decided on, and the advantages of the method. The basic approach is a "lazy" one where PHP will only store the request when it comes in, no filtering or anything, until you want to do something with it (i.e. get it via $_GET, $_POST, etc). When the request for data is made, PHP looks at the encoding settings and formats the data accordingly.
</p>
<p>
Advantages he mentions for this method include removing the guess-work on PHP's part for which encoding the request is and that it removes some of the overhead by not processing the data until it's actually needed.
</p>]]></description>
      <pubDate>Thu, 22 Feb 2007 07:49:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Norbet Mocsnik's Blog: Setting Up DokuWiki with Simple Authentication]]></title>
      <guid>http://www.phpdeveloper.org/news/6931</guid>
      <link>http://www.phpdeveloper.org/news/6931</link>
      <description><![CDATA[<p>
<i>Norbet Mocsnik</i>, having just set it up himself, is <a href="http://norbert.mocsnik.hu/blog/archives/208-Setting-Up-DokuWiki-with-Simple-Authentication.html">sharing the steps needed</a> to get DokuWiki set up and working with a simple authentication system.
</p>
<blockquote>
I promised to investigate the steps needed to set up DokuWiki with the simplest authentication scheme for a friend and I thought others might benefit from it too, so here it is.
</blockquote>
<p>
There's about fifteen steps in all, including the download/install of the package and creating the basic functionality (like a simple Auth schema - he gives an example). Create the superuser and set up the desired restrictions and you're home free. If you want more information on authentication in DokuWiki, check out <a href="http://wiki.splitbrain.org/wiki:acl">this page</a> on the DokuWiki's wiki. 
</p>]]></description>
      <pubDate>Tue, 19 Dec 2006 09:02:00 -0600</pubDate>
    </item>
  </channel>
</rss>
