<?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 16:34:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: A little fun with the average tech salaries as reported by dice.com]]></title>
      <guid>http://www.phpdeveloper.org/news/15903</guid>
      <link>http://www.phpdeveloper.org/news/15903</link>
      <description><![CDATA[<p>
On the Zend Developer Zone, <i>Cal Evans</i> has <a href="http://devzone.zend.com/article/13053-A-little-fun-with-the-average-tech-salaries-as-reported-by-dice.com">had some fun with salaries</a> - specifically the salary information recently posted by <a href="http://dice.com">Dice.com</a>.
</p>
<blockquote>
Every year dice.com puts together a salary survey for those of us working in tech. It's a chance to look at what other developers say they are making and either snicker or sigh wishfully. This week they released "<a href="http://marketing.dice.com/pdf/Dice_2010-11_TechSalarySurvey.pdf">2010-11 Tech Salary Survey Results</a>". [...] To me, page 5 was the most interesting. Page 5 is a table of salaries by metro area.  
</blockquote>
<p>
He's created a table to lay out the data in a bit more readable (and normalized) format with Charlotte, North Carolina being the baseline and other cities diverging up and down (in salary range) from there. It helps you compare both the salary range and the normalized version of it that includes some of the cost of living that comes along with the location.
</p>]]></description>
      <pubDate>Mon, 14 Feb 2011 14:53:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dagfinn Reiersol's Blog: Real programming with PHP 5.3 (part 4): A more realistic example]]></title>
      <guid>http://www.phpdeveloper.org/news/12629</guid>
      <link>http://www.phpdeveloper.org/news/12629</link>
      <description><![CDATA[<p>
On the PHP in Action blog <i>Dagfinn Reiersol</i> continues his look at real programming examples using the upcoming PHP 5.3 release. In <A href="http://blog.agilephp.com/2009/06/02/real-programming-with-php-53-part-4-a-more-realistic-example/">this new tutorial</a> he focuses on making a classed based on the Range design pattern to paginate results.
</p>
<blockquote>
A Range object is defined by just two values (three in my variation), so it might seem like too much to have an object just to keep these values, but as you can see from the example, a Range class can have behaviors to change and compare ranges.
</blockquote>
<p>
He gives two code snippets - the first defines most of the methods of the class in the constructor (using the lambda functions) and the second uses a __call to catch the calls to the same methods but defined normally as private (making them inaccessible to the outside world).
</p>]]></description>
      <pubDate>Fri, 05 Jun 2009 07:57:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Gregg's Blog: PHP algorithms: Determining if an IP is within a specific range.]]></title>
      <guid>http://www.phpdeveloper.org/news/12417</guid>
      <link>http://www.phpdeveloper.org/news/12417</link>
      <description><![CDATA[<p>
<i>Paul Gregg</i> has <a href="http://pgregg.com/blog/2009/04/php-algorithms-determining-if-an-ip-is-within-a-specific-range.html">shared a method</a> he's come up with to determine if a given IP is within a selected range.
</p>
<blockquote>
Unfortunately although people usually understand that an IP address is simply an unsigned 32 bit integer, and is easily determined, usually with $_SERVER['REMOTE_ADDR'], where the real challenge is - is in specifying the range within which they wish to check that IP address.  IP ranges are usually specified in three common ways (in increasing complexity): wildcard, start-end range, classless inter-domain routing.
</blockquote>
<p>
He looks at each method and includes descriptions and code examples as well as a link to <a href="http://pgregg.com/projects/php/ip_in_range/ip_in_range.phps">the source code</a> and a <a href="http://pgregg.com/projects/php/ip_in_range/test.php">live demo</a> of it in action. 
</p>]]></description>
      <pubDate>Tue, 28 Apr 2009 09:25:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Expanding the Application Range of Visitor Objects in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/5989</guid>
      <link>http://www.phpdeveloper.org/news/5989</link>
      <description><![CDATA[<p>
DevShed continues their series on the Visitor objects in PHP5 with <a href="http://www.devshed.com/c/a/PHP/Expanding-the-Application-Range-of-Visitor-Objects-in-PHP-5/">this second part</a>, looking at expanding the "application range" of the objects.
</p>
<blockquote>
Well, at this stage I'm assuming that creating visitor objects with PHP isn't a strange concept to you any longer, therefore I'll continue this journey by developing some additional -yet useful- examples on how to build up and implement visitors with PHP 5. The main purpose of this is simply reaffirming the concepts deployed in the first tutorial, so you can have a solid background for including your own visitor classes inside your PHP applications.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Expanding-the-Application-Range-of-Visitor-Objects-in-PHP-5/">start off by creating</a> a new abstract class to use in this part, a User class with plenty of properties and methods. Next up, they make a class extending this base, abstract class to make a SoftwareUser that will accept visitor objects. They then use this interface and create a Visitor class to make the calls, showing a code example of them playing nicely together.
</p>]]></description>
      <pubDate>Wed, 09 Aug 2006 06:57:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[BarelyFitz.com: CSS Colors - Take Control Using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5497</guid>
      <link>http://www.phpdeveloper.org/news/5497</link>
      <description><![CDATA[<p>
On BarelyFitz Designs, there's <a href="http://www.barelyfitz.com/projects/csscolor/">a handy tutorial</a> that's been posted to help developers out there combine the powers of PHP and CSS to form a sort of color management system for their site.
</p>
<quote>
<i>
While many web sites use powerful programming environments to create HTML, these same tools are usually ignored when it comes to creating Cascading Style Sheets (CSS). This article describes how to take control of your colors in CSS using PHP. You will learn how to:
<ul>
<li>Centralize your color definitions using variables.
<li>Separate presentation and content by referring to colors using abstract names such as base and highlight.
<li>Automatically generate a color gradient from a single base color:
<li>Automatically adjust the contrast of foreground colors so they can viewed on top of your background colors
</ul>
</i>
</quote>
<p>
They <a href="http://www.barelyfitz.com/projects/csscolor/">follow the steps</a> to making a CSS file with PHP - generate the header and output the CSS - as well as examples of its usage. They create a range of colors based around a central one, five levels in either direction. The file they've created to accomplish this is also <a href="http://www.barelyfitz.com/projects/csscolor/csscolor.zip">available for download</a>.
</p>]]></description>
      <pubDate>Fri, 02 Jun 2006 06:16:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building a PHP5 Form Processor - Coding the Form Validator Module]]></title>
      <guid>http://www.phpdeveloper.org/news/4718</guid>
      <link>http://www.phpdeveloper.org/news/4718</link>
      <description><![CDATA[DevShed has the second part of their "Building a PHP5 Form Processor" series posted today - <a href="http://www.devshed.com/c/a/PHP/Building-a-PHP5-Form-Processor-Coding-the-Form-Validator-Module/">Coding the Form Validator Module</a>. It looks at how to construct a set of functions that will check the data inputted to ensure it exists and correct/valid.
<p>
<quote>
<i>
In this second part of a three-part series, we take up the topic of server-side validation. By the time you finish this article, you'll have the general guidelines for how to build a form validating class. You'll use some PHP built-in introspection functions, along with regular expressions, to assist you in building this class.
</i>
</quote>
<p>
They create several functions, including validateEmpty, validateInteger, validateNumber, validateRange, and validateEmail. Each one (obviously) serves their own purpose, and some are more complex that others (validating an integer versus a valid email address), but they walk you through each, showing you plenty of code and explainations along the way...]]></description>
      <pubDate>Tue, 24 Jan 2006 06:57:09 -0600</pubDate>
    </item>
  </channel>
</rss>
