<?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 Oct 2008 13:30:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Why Should I Care What Server My Application is Running On?]]></title>
      <guid>http://www.phpdeveloper.org/news/10609</guid>
      <link>http://www.phpdeveloper.org/news/10609</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a <a href="http://devzone.zend.com/article/3692-Why-Should-I-Care-What-Server-My-Application-is-Running-On">new article</a> that looks to answer the question in its title - "Why should I care what server my application is running on?" (by <i>Eddo Rotman</i>)
</p>
<blockquote>
Imagine this - you develop an application on your machine and then, when you come to deploy it to the production server, all of a sudden, you encounter various errors and failures. Or maybe, when you decide to switch your hosting provider, your application stops behaving the way it should. How about this -... one day, out of the blue (well, out of your IT manager's whim) your application just misbehaves. Sounds familiar?
</blockquote>
<p>
Times like can never be completely avoided (yes, there'll always be bugs) but you can take some steps to help prevent most of the major failing points. He points out some of the key configuration directives to watch out for, differences in some functions' responses based on the OS, and the differences in character sets between a unix-based and Windows based environment (like rn versus just n).
</p>]]></description>
      <pubDate>Tue, 15 Jul 2008 13:12:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Kunz's Blog: PHPShield revisited]]></title>
      <guid>http://www.phpdeveloper.org/news/10242</guid>
      <link>http://www.phpdeveloper.org/news/10242</link>
      <description><![CDATA[<p>
<i>Christopher Kunz</i> has gone back and <a href="http://www.christopher-kunz.de/archives/169-PHPShield-revisited.html">revisited</a> the PHPShield product that he'd looked at <a href="http://www.phpdeveloper.org/news/10025">previously</a> with data obscured to make potential customer think that it had nothing to do with either SourceGuardian or Inovica.
</p>
<p>Checking up on it again, he was happily surprised with some of the results:</p>
<blockquote>
I asked him again today via private mail and his response was swift. The whois entries for phpshield.com now point to his person and we can expect additional information on the web site itself soon. I like it when things can be resolved like that and I actually think this is a chance for his product rather than a possible competition issue.
</blockquote>
<p>
This helps to more clearly define the difference between the PHPShield and SourceGuarian products. You can find out more information about each product from their sites - <a href="http://phpshield.com/">PHPShield</a> and <a href="http://www.sourceguardian.com/">SourceGuarian</a>. Both are encoding packages to help protect and distribute your code.
</p>]]></description>
      <pubDate>Thu, 22 May 2008 08:48:16 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Calculating date difference more precisely in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9774</guid>
      <link>http://www.phpdeveloper.org/news/9774</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> has posted <a href="http://www.developertutorials.com/blog/php/calculating-date-difference-more-precisely-in-php-71/">his own response</a> to a recent "relative time" article (showing users things like "received 2 days and 3 hours ago") with a more precise method for doing something similar:
</p>
<blockquote>
This function is production ready and you can use it in any of your application which mainly works with these date difference. I have found it somewhere in web, just forgot the source. Thanks to the unknown author of this excellent function.
</blockquote>
<p>
The rest of <a href="http://www.developertutorials.com/blog/php/calculating-date-difference-more-precisely-in-php-71/">the post</a> is the function itself that takes in the interval string (formatting), the start date, end date and whether to use timestamps or not.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 08:40:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Reinhold Weber's Blog: From PHP to Ruby - 30 similarities and differences]]></title>
      <guid>http://www.phpdeveloper.org/news/9331</guid>
      <link>http://www.phpdeveloper.org/news/9331</link>
      <description><![CDATA[<p>
<i>Reinhold Weber</i> has <a href="http://reinholdweber.com/?p=7">posted his lists</a> of some of the similarities and differences between Ruby and PHP:
</p>
<blockquote>
If you are a PHP developer chances are you have heard some of the buzz on Ruby on Rails, an open source web framework for rapid application development. [...] These are similarities and differences of Ruby compared to PHP. If you know PHP, this should give you a good and quick insight in what Ruby is all about and how it compares to PHP.
</blockquote>
<p>
Some of the similarities include the dynamic typing, class scoping, heredoc abilities and current object references. Differences include syntax differences, method calling, naming conditions and Ruby's lack of interface/abstract classes.
</p>]]></description>
      <pubDate>Mon, 31 Dec 2007 13:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[RefreshinglyBlue Blog: PHP vs Ruby - Practical Language Differences]]></title>
      <guid>http://www.phpdeveloper.org/news/8578</guid>
      <link>http://www.phpdeveloper.org/news/8578</link>
      <description><![CDATA[<p>
From the RefreshinglyBlue blog, there's <a href="http://www.refreshinglyblue.com/2007/8/20/php-vs-ruby-practical-language-differences">a new post</a> that makes a comparison between two of the most popular web scripting languages - PHP and Ruby - on a practical, basic level.
</p>
<blockquote>
There are rather significant syntactical differences between PHP and Ruby. For example PHP requires semicolons at the end of lines and generally requires curly brackets to enclose blocks of code. Ruby, on the other hand, uses newline characters to denote the end of a line of code...
</blockquote>
<p>
The post <a href="http://www.refreshinglyblue.com/2007/8/20/php-vs-ruby-practical-language-differences">goes through</a> other differences like: value return methods, function/method naming, similarities between them, frameworks, namespaces, documentation and hosting options.
</p>]]></description>
      <pubDate>Mon, 03 Sep 2007 13:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Photogapple.co.uk: time_since]]></title>
      <guid>http://www.phpdeveloper.org/news/7670</guid>
      <link>http://www.phpdeveloper.org/news/7670</link>
      <description><![CDATA[<p>
On the Photogapple.co.uk blog today, there's <a href="http://www.photogabble.co.uk/2007/04/20/time_since/">some handy code</a> that can definitely be useful when working with dates in PHP - a function to find the difference between the current time and a timestamp you give it.
</p>
<blockquote>
I found it incredibly difficult to find any form of time_since function in php so to save anyone else the trouble to hunting through hundreds of useless websites here is the function you may want to use, written by <a href="http://notes.natbat.net/2007/01/27/timesince/">Natalie Downe</a> (you don't want to know how long it took to hunt it down).
</blockquote>
<p>
The function takes in the value, subtracts the two timestamps and loops through an array of "time chunks" to each other to show nicely formatted output of how long the difference it.
</p>]]></description>
      <pubDate>Fri, 20 Apr 2007 11:07:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: The real difference between PHP and Python]]></title>
      <guid>http://www.phpdeveloper.org/news/7483</guid>
      <link>http://www.phpdeveloper.org/news/7483</link>
      <description><![CDATA[<p>
In the <a href="http://www.sitepoint.com/blogs/2007/03/18/the-real-difference-between-php-and-python/">latest post</a> to the SitePoint PHP Blog, <i>Harry Fuecks</i> takes a look at what he considers the real difference between PHP and Python.
</p>
<blockquote>
Posting in the full realization of the futility of doing so, there's some PHP bashing (as usual) happening on reddit at the moment: <a href="http://programming.reddit.com/info/1arpk/comments">PHP vs Python - the real difference</a>, brought on by this <a href="http://www.jameslaver.com/php_vs_python.png">mildly amusing image</a>. While I can accept the points - technically it's actually much harder in handle errors uniformly in PHP and the community is less rich in computer scientists than Python - the corresponding flame war on reddit manages to miss a different point, which is easiest expressed in code.
</blockquote>
<p>
He <a href="http://www.sitepoint.com/blogs/2007/03/18/the-real-difference-between-php-and-python/">gives two sample</a> scripts and asks what the real differences are. He answers his own question by way of saying that what matters between the two is how they're deployed (when it comes to error reporting):
</p>
<blockquote>
Because PHP "resets" after each request ( see here or for much more detail here ) it's actually not always necessary to handle errors explicitly'"assuming there's not something fundamentally "broke" about your code and it's some kind of runtime error (e.g. db is down), it's often enough to just ignore the problem and wait for the system to "right itself" - nothing is going to leave PHP in a state it can't recover from.
</blockquote>]]></description>
      <pubDate>Thu, 22 Mar 2007 09:06:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Builder.com.au: Get the correct time by converting between time zones with PHP and PEAR]]></title>
      <guid>http://www.phpdeveloper.org/news/7336</guid>
      <link>http://www.phpdeveloper.org/news/7336</link>
      <description><![CDATA[<p>
On the Builder.com.au website today, there's <a href="http://www.builderau.com.au/program/php/soa/Get_the_correct_time_by_converting_between_time_zones_with_PHP_and_PEAR/0,339028448,339273806,00.htm?feed=rss">a quick new tutorial</a> on grabbing the correct time for a user's "home" rather than the server's time.
</p>
<blockquote>
PHP comes with an extensive catalog of date and time functions, all designed to let you easily retrieve temporal information, massage it into a format you require, and either use it in a calculation or display it to the user. However, if you'd like to do something more complicated, things get much, much hairier
</blockquote>
<p>
To make things easier, they enlist the service of the <a href="http://pear.php.net/package/Date">PEAR Date</a> package to help bridge the gap between the time zones faster. They give some of the basics of using the package before actually getting into the time zone conversion. The code is pretty straight-forward and they even include other simple tips like how to calculate the GMT offset and how to add and subtract timespans.
</p>]]></description>
      <pubDate>Fri, 23 Feb 2007 10:11:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Visualizing Text Differences in PHPUnit 3]]></title>
      <guid>http://www.phpdeveloper.org/news/6119</guid>
      <link>http://www.phpdeveloper.org/news/6119</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has posted <a href="http://www.sebastian-bergmann.de/blog/archives/618-Visualizing-Text-Differences-in-PHPUnit-3.html">this new item</a> on his blog today detailing how to tell the differences between two strings inside of <a href="http://www.phpunit.de/">PHPUnit 3</a>.
</p>
<blockquote>
A long-standing feature request for <a href="http://www.phpunit.de/">PHPUnit</a> has been the generation of a real <a href="http://en.wikipedia.org/wiki/Diff">diff</a> between strings that span multiple lines.
</p>
<p>
Ideally this would be done by implementing the diff algorithm in <a href="http://www.php.net/">PHP</a>. But since <a href="http://derickrethans.nl/">Derick</a> needed a working solution quickly, the two of us came up with a "hack": we just use <a href="http://www.gnu.org/software/diffutils/">GNU diff</a> and invoke the diff command via <a href="http://www.php.net/shell_exec">shell_exec()</a>.
</blockquote>
<p>
He <a href="http://www.sebastian-bergmann.de/blog/archives/618-Visualizing-Text-Differences-in-PHPUnit-3.html">gives an example</a>, showing how to judge the difference between two strings of HTML in a test. The result catches the differences (inside the body tags) easily.
</p>]]></description>
      <pubDate>Wed, 23 Aug 2006 10:36:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: subtle PHP 4 to PHP 5 difference regarding objects]]></title>
      <guid>http://www.phpdeveloper.org/news/5045</guid>
      <link>http://www.phpdeveloper.org/news/5045</link>
      <description><![CDATA[PHP has a lot going on "under the hood" for each request that's made, so its no wonder that issues with PHP5 code might see some problems when shifted down to PHP4. <i>Greg Beaver</i> <a href="http://greg.chiaraquartet.net/archives/121-subtle-PHP-4-to-PHP-5-difference-regarding-objects.html">caught something</a> in the PEAR installer centered around objects.
<p>
<quote>
<i>
Recently, some code in the PEAR installer was discovered to be invalid in PHP 4. After a bit of investigation, I realized that the significant difference in the way objects are represented internally in PHP 5 was the culprit.
<p>
In PHP 5, this displays as bool(true), but in PHP 4, it displays bool(false). The reason is that in PHP 4, objects are simply glorified associative arrays, and so PHP treats the above [example] code exactly the same.
</i>
</quote>
<p>
He strongly suggests that, to help with this issue, you always check to ensure (with is_object) that what you're passing is a true object.
<p>
He's <a href="http://greg.chiaraquartet.net/archives/121-subtle-PHP-4-to-PHP-5-difference-regarding-objects.html">made an update</a> to the post since it was originally released, mentioning how some classes will also define their own cast handlers.]]></description>
      <pubDate>Mon, 27 Mar 2006 07:05:53 -0600</pubDate>
    </item>
  </channel>
</rss>
