<?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>Wed, 22 May 2013 13:03:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Keith Casey: Refactor vs Rebuild: New Years make New Beginnings]]></title>
      <guid>http://www.phpdeveloper.org/news/19012</guid>
      <link>http://www.phpdeveloper.org/news/19012</link>
      <description><![CDATA[<p>
<i>Keith Casey</i> has an interesting new post to his site looking at a common dilema among development groups - whether <a href="http://caseysoftware.com/blog/refactor-vs-rebuild-new-years-make-new-beginnings">refactor or rewrite</a> is a better option for the state of the current codebase when it comes time for a change.
</p>
<blockquote>
In software development, we're spoiled. We can write a single line of code and do some interesting things. If we add a framework, that single line of code is backed up by thousands.. and can do even more impressive things. [...] I can't tell you how many people have pitched me to "rewite web2project using [framework x]." At first pass, it sounds like a great idea. We can lay the foundation for doing things "right." We can use the latest and greatest tools, technology, and concepts. Even better, we don't have to figure out all that old crappy code! It's open source so it's free anyway. Everyone wins! How many times have you looked at an application and thought "I could rebuild that in a weekend!"
</blockquote>
<p>
He points out the "seductive" nature of this kind of thinking and some of the things that it can hide from your immediate vision. These are things like: the lessons that were learned and implemented in the current code, catch up vs new development on the project and the possibility of "killing the community" as they'd no longer know which part of the project to contribute to.
</p>
<p>
He suggests instead of worrying about a rewrite, that development groups worry more about <a href="http://caseysoftware.com/blog/technical-debt">managing technical debt</a> in their applications and reducing that piece by piece instead.
</p>]]></description>
      <pubDate>Wed, 09 Jan 2013 09:23:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder: Running Zend Framework Applications in AppFog]]></title>
      <guid>http://www.phpdeveloper.org/news/18751</guid>
      <link>http://www.phpdeveloper.org/news/18751</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> has a quick post to his blog today about how you can <a href="http://hasin.me/2012/11/15/running-zend-framework-applications-in-appfog/">configure an AppFog instance</a> to be able to run Zend Framework-based projects on them.
</p>
<blockquote>
<a href="http://appfog.com/">AppFog</a> is quite a popular polyglot PaaS (Platform as a Service) provider and it comes with a generous free plan for the developers. [...] Recently, I was looking for a solution on how to host a Zend Framework based application in AppFog. The main problem was that the url must point to the /public folder inside the app and  from there it is initialized.  After searching for some time, I found the clue in AppFog's doumentation which is you'll have to redirect all the traffic from the parent domain to the /public/index.php file using the URL rewrite rules.
</blockquote>
<p>
The rewrite rules are included in the post for easy cut-and-pasting. With the recently announced closing of their <a href="http://phpfog.com">phpFog</a> service (in favor of just supporting AppFog) I'm sure this tip could come in handy for a lot of developers out there.
</p>]]></description>
      <pubDate>Thu, 15 Nov 2012 09:28:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Adam Culp: Clean Development Series: Part 4, Rewrite dilemma]]></title>
      <guid>http://www.phpdeveloper.org/news/18729</guid>
      <link>http://www.phpdeveloper.org/news/18729</link>
      <description><![CDATA[<p>
<i>Adam Culp</i> has published the <a href="http://www.geekyboy.com/archives/547">fourth part</a> of his "Clean Code" series to his site today (see more about parts 1-3 <a href="http://phpdeveloper.org/news/18704">here</a>) with a look at the "Rewrite Dilema" - whether it's more productive to just rewrite or to try to refactor.
</p>
<blockquote>
Unfortunately the first reaction to a poorly written application is usually a resounding "rewrite".  Developers feel like a weight is lifted from their shoulders, as the manager hears a distant "cha-ching" sounds of money slipping away. [...] In the managers mind a rewrite means it must all be duplicated, and that's not far from the truth when we consider the salaries of an entire development team for the time it will take to rewrite the entire application.
</blockquote>
<p>
<i>Adam</i> talks about some of his experience in the past with challenging applications and a typical scenario where one group in the company splits off and creates the new version while another maintains the old. He suggests, however, that refactoring may be a more viable option. While it might not seem easier to handle overall, the end results could lead to a more stable system and could take less time than starting from scratch.
</p>]]></description>
      <pubDate>Mon, 12 Nov 2012 10:28:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.3.12 and 5.4.2 and the CGI flaw (CVE-2012-1823)]]></title>
      <guid>http://www.phpdeveloper.org/news/17915</guid>
      <link>http://www.phpdeveloper.org/news/17915</link>
      <description><![CDATA[The PHP.net site as new post with some supplemental information for those users of the PHP CGI that might be effected by the recently announced bug, the reason for the  <a href="http://phpdeveloper.org/news/17907">most recent release</a>. Unfortunately, this patch only fixes some of the cases of the problem, so they've <a href="http://www.php.net/index.php#id2012-05-06-1">amended their instructions</a> to included a more effective mod_rewrite rule to help protect your applications.
</p>
<blockquote>
PHP 5.3.12/5.4.2 do not fix all variations of the CGI issues described in CVE-2012-1823. It has also come to our attention that some sites use an insecure cgiwrapper script to run PHP. These scripts will use $* instead of "$@" to pass parameters to php-cgi which causes a number of issues. Again, people using mod_php or php-fpm are not affected.
</blockquote>
<p>
The rewrite rule is there in the post, ready for copy and pasting into your config. Even if you're running the latest PHP 5.3.12 and 5.4.2., be sure to use this rule as a stop-gap measure for now. Another release is planned for tomorrow to fully correct the CGI flaw.
</p>]]></description>
      <pubDate>Mon, 07 May 2012 09:03:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Security.net: New PHP-CGI Exploit (CVE-2012-1823)]]></title>
      <guid>http://www.phpdeveloper.org/news/17908</guid>
      <link>http://www.phpdeveloper.org/news/17908</link>
      <description><![CDATA[<p>
The PHP-Security.net site has two posts related to the recently discovered bug in PHP (hence the <a href="http://phpdeveloper.org/news/17907">new versions</a>) related to the CGI handling in certain server configurations. 
</p>
<p>
In <a href="http://www.php-security.net/archives/9-New-PHP-CGI-exploit-CVE-2012-1823,-PoC-exploit.html">the first</a> they detail more of what the bug is, how it could be exploited and link to the <a href="http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/">original advisory</a> for the problem. Also included are more details on the issue, including sample avenues of attack.
</p>
<p>
In the <a href="http://www.php-security.net/archives/11-Mitigation-for-CVE-2012-1823-CVE-2012-2311.html">second post</a> they look at the recent PHP release and note that it does not completely rid the language of the problem. They point out that the Rewrite rule that's included in their post (not the one on PHP.net) should be used to prevent this issue from effecting your installations.
</p>]]></description>
      <pubDate>Fri, 04 May 2012 08:24:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gaurish Patil's Blog: URL rewriting in Yii to hide index.php]]></title>
      <guid>http://www.phpdeveloper.org/news/17844</guid>
      <link>http://www.phpdeveloper.org/news/17844</link>
      <description><![CDATA[<p>
In <a href="http://gaurishpatil.wordpress.com/2012/04/19/url-rewriting-in-yii-to-hide-index-php/">this new post</a> to his blog <i>Gaurish Patil</i> shows users of the <a href="http://www.yiiframework.com/">Yii framework</a> how they can update their configuration settings to hide the "index.php" in their requests and make cleaner URLs.
</p>
<blockquote>
Finally we figure out the basics of  Yii. While working on basic of Yii, I want to rewrite the url to SEO friendly. So I started to search on google, forum got useful information here http://www.yiiframework.com/doc/guide/1.1/en/topics.url To hide the index.php from url I did changes in config/main.php [...] and I created new .htaccess file in the same directory as my index.php file.
</blockquote>
<p>
The changes are pretty simple - it's mostly a change to the "urlManager" setting to provide some rules for mapping controller and actions to the right place. The .htaccess file uses Apache's mod_rewrite functionality to grab the requested URL and remap it back to lay on top of the "index.php" front controller for the request.
</p>]]></description>
      <pubDate>Fri, 20 Apr 2012 09:27:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Keith Casey's Blog: Technical Debt Doesn't Disappear]]></title>
      <guid>http://www.phpdeveloper.org/news/15939</guid>
      <link>http://www.phpdeveloper.org/news/15939</link>
      <description><![CDATA[<p>
In a recent post to his site <i>Keith Casey</i> mentions something that should be obvious to most software developers (and managers of developers out there) but is easy to forget - <a href="http://caseysoftware.com/blog/technical-debt-doesn039t-disappear">technical debt doesn't just disappear</a>, even if the related resources change dramatically.
</p>
<blockquote>
Just because you set a codebase aside and do it the "right" way, your problems don't disappear. The same bugs that annoyed people yesterday will be there today and tomorrow. In fact, when the bugs are still there a week, month, or year from now, they move beyond annoyances and into frustrations as people think (or say) things like "this has been broken for years.. why haven't they fixed it!?"
</blockquote>
<p>
He notes that, while tossing the entire codebase out the window and starting over again (a move very, very rarely shown a good idea), you'll still end up with issues - this time involving resources and the work needed to sift through all of the bugs in the new code.
</p>]]></description>
      <pubDate>Tue, 22 Feb 2011 08:17:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Timir Shah's Blog: URL Rewriting with PHP and IIS 7]]></title>
      <guid>http://www.phpdeveloper.org/news/14282</guid>
      <link>http://www.phpdeveloper.org/news/14282</link>
      <description><![CDATA[<p>
On his PHP Genious blog <i>Timir Shah</i> has written up a new post looking at how <a href="http://www.phpgenious.com/2010/04/url-rewriting-with-php-and-iis-7/">you can configure URL rewriting</a> (much like mod_rewrite) in an IIS7 web server running PHP applications.
</p>
<blockquote>
Few days ago, I faced a URL rewriting problem on windows server. After checking the server configuration, I found that there is an II7 installed. After long research about this, I found that II7 is not support .HTACCESS. If youwant to male your site SEO URL friendly, then you have to use web.config file for URL rewriting instead of .HTACCESS. Now the question is how to make web.config file from .HTACCESS?
</blockquote>
<p>
He compares the two formats, showing how different directives from the .htaccess file can be translated over. He starts with an example of default documents on either side - the .htaccess defining several "php_value" settings and the web.config setting some default routing and rewrite rules. He shows how to set up a few things on each side - error page redirects and setting up some custom URL rewrite rules for both sides (with examples).
</p>]]></description>
      <pubDate>Thu, 01 Apr 2010 09:51:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Koopmanschap's Blog: An Open Letter To The phpBB Community]]></title>
      <guid>http://www.phpdeveloper.org/news/14066</guid>
      <link>http://www.phpdeveloper.org/news/14066</link>
      <description><![CDATA[<p>
In response to an announcement made by the phpBB group at the just-passed Symfony Live event about considerations being made to change the base platform to Symfony, <i>Stefan Koopmanschap</i> has posted <a href="http://www.leftontheweb.com/message/An_Open_Letter_To_The_phpBB_Community">an open letter</a> to the phpBB community and development group with his thoughts on the potential move.
</p>
<blockquote>
The past week was the week of Symfony Live 2010 in Paris. One of the people there was Nils Adermann, the new Lead Developer of the phpBB project. The biggest news was that phpBB is considering moving to Symfony 2 as the basis of their new version of phpBB: phpBB4.
</blockquote>
<p>
There's an <a href="http://area51.phpbb.com/phpBB/viewtopic.php?f=78&t=32433">RFC posted</a> for anyone that would like to reply back to the idea. In <i>Stefan</i>'s response he mentions things that would be positive about the decision like not having to reinvent the wheel, getting the support of the pre-established Symfony community, making it easier to extend phpBB via Symfony code and a certain sense of security that comes with having the framework backing.
</p>]]></description>
      <pubDate>Mon, 22 Feb 2010 09:12:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Software Development Times: Facebook rewrites PHP runtime]]></title>
      <guid>http://www.phpdeveloper.org/news/13941</guid>
      <link>http://www.phpdeveloper.org/news/13941</link>
      <description><![CDATA[<p>
According to <a href="http://www.sdtimes.com/blog/post/2010/01/30/Facebook-rewrites-PHP-runtime.aspx">this new article</a> from the Software Development Times <a href="http://facebook.com">Facebook</a> has rewritten the PHP runtime from scratch and will be releasing it soon as an open source project.
</p>
<blockquote>
So, why has Facebook rewritten the PHP runtime? Because PHP is obviously too slow for their tastes. A few years ago, I had a coffee meeting with some of the folks from Zend. When they asked what I had been hearing about PHP in the market from my sources, I hemmed and hawed, then told them that I had heard people complaining about how slow PHP was.
</blockquote>
<p>
Other sources suggest the release won't be a full runtime but instead a sort of compiler for PHP applications including <a href="http://therumpus.net/2010/01/conversations-about-the-internet-5-anonymous-facebook-employee/?full=yes">an interview</a> with a Facebook employee who drops a hint about their future plans for the language.
</p>]]></description>
      <pubDate>Mon, 01 Feb 2010 08:09:52 -0600</pubDate>
    </item>
  </channel>
</rss>
