<?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, 06 Sep 2008 22:56:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Felix De Vliegher's Blog: Static analysis for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10856</guid>
      <link>http://www.phpdeveloper.org/news/10856</link>
      <description><![CDATA[<p>
On his blog recently <i>Felix De Vliegher</i> has <a href="http://felix.phpbelgium.be/blog/2008/08/14/static-analysis-for-php/">posted about work he's done</a> to gather some stats and great some data about how his PHP scripts are working based on a little <a href="http://en.wikipedia.org/wiki/Static_code_analysis">statistical analysis</a>.
</p>
<blockquote>
Lately I've been interested in applying <a href="http://en.wikipedia.org/wiki/Static_code_analysis">static analysis</a> to PHP projects. Static analysis is the process of analysing software code - in our case PHP source code -, without actually executing the (compiled) result of the source code you're analysing.
</blockquote>
<p>
He mentions some types of analysis and some of the tools that can be used to measure it. He also talks about issues it can help with (like the potential for harm if a part of code is changed) and a pointer to the <a href="http://pixybox.seclab.tuwien.ac.at/pixy/">Pixy</a> software he used to generate the statistics (and images like <a href="http://felix.phpbelgium.be/blog/wp-content/uploads/2008/08/callgraph.png">this</a>). 
</p>]]></description>
      <pubDate>Tue, 19 Aug 2008 11:16:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: Run PHP scripts with different users on the same server]]></title>
      <guid>http://www.phpdeveloper.org/news/10811</guid>
      <link>http://www.phpdeveloper.org/news/10811</link>
      <description><![CDATA[<p>
On the PHP::Impact blog <i>Federico</i> has <a href="http://phpimpact.wordpress.com/2008/08/10/run-php-scripts-with-different-users-on-the-same-server/">posted a sort of reminder</a> about a method you can use to run PHP scripts as different users on the same system - <a href="http://www.suphp.org/">suPHP</a>.
</p>
<blockquote>
<a href="http://www.suphp.org/">suPHP</a> is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.
</blockquote>
<p>
suPHP runs as an Apache module and works with the local server's permission system to restrict script access to whatever the user's allowances are. He links to <a href="http://blog.stuartherbert.com/php/2008/01/18/using-suphp-to-secure-a-shared-server/">this tutorial</a> for more information on setting it up.
</p>]]></description>
      <pubDate>Tue, 12 Aug 2008 09:31:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Dhiraj Patra's Blog: Running PHP Scripts with Cron]]></title>
      <guid>http://www.phpdeveloper.org/news/10761</guid>
      <link>http://www.phpdeveloper.org/news/10761</link>
      <description><![CDATA[<p>
<i>Dhiraj Patra</i> has <a href="http://dhirajpatra.blogspot.com/2008/08/running-php-scripts-with-cron.html">posted a tutorial</a> to his "LAM-PHP" blog today looking at a different-than-usual way for running PHP scripts - in the cron.
</p>
<blockquote>
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, "How to run PHP Scripts with crontab?"
</blockquote>
<p>
He explains how cron can be used effectively to replace including a backend script into another file (bad practice) and how to get started with PHP and cron. He includes how to find if you're using a CGI or Apache version of PHP and how to locate the binary. He takes this knowledge and shows how to apply it and put a sample script into the cron file. You can check out sites like <a href="http://www.adminschoice.com/docs/crontab.htm">this</a> or <a href="http://www.unixgeeks.org/security/newbie/unix/cron-1.html">this</a> for more information on cron itself.
</p>]]></description>
      <pubDate>Tue, 05 Aug 2008 08:45:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Reinheimer's Blog: Web Bot Battle - BETA]]></title>
      <guid>http://www.phpdeveloper.org/news/10740</guid>
      <link>http://www.phpdeveloper.org/news/10740</link>
      <description><![CDATA[<p>
<i>Paul Reinheimer</i> has posted about a <a href="http://blog.preinheimer.com/index.php?/archives/273-Web-Bot-Battle-BETA.html">contest in the making</a> - a turn-based robot battle sort of game where PHP scripts compete against each other.
</p>
<blockquote>
Just a quick announcement, in an effort to come up with a self scoring contest, I came up with the ridiculously simple concept of robots firing lasers at each other in a fictional arena. Each robot controlled by a different PHP script, and a central arena managing it all. It's basically a turn based game where your robots take turns for you.
</blockquote>
<p>
You can check out more about the game and its rules over on <a href="http://example.preinheimer.com/wbb/">the Web Bot Battle</a> site. It defines how your bots should act and even has some examples for you to work from.
</p>]]></description>
      <pubDate>Fri, 01 Aug 2008 11:12:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Hacking Wordpress When You've Forgotten Your Password]]></title>
      <guid>http://www.phpdeveloper.org/news/10248</guid>
      <link>http://www.phpdeveloper.org/news/10248</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has <a href="http://www.developertutorials.com/blog/wordpress-blog/hacking-wordpress-when-youve-forgotten-your-password-177/">an article</a> posted today about how you can "hack" your WordPress installation if you happen to forget the password for your account:
</p>
<blockquote>
Do you have multiple Wordpress self-hosted blogs? If so, you've likely run into a scenario where you just can't remember your password. With Wordpress 2.5 and 2.5.1 there's an annoying bug that sometimes generates passwords that don't work when you click the "Forgot Password" option. [...] Wordpress resets the password internally (in the MySQL database) but the link that it sent you to activate that password fails to connect with the database effectively locking you out of your blog. In this scenario, at least for me, all the potentially viable solutions lead to dead ends.
</blockquote>
<p>
His <a href="http://www.developertutorials.com/blog/wordpress-blog/hacking-wordpress-when-youve-forgotten-your-password-177/">six step process</a> involves <a href="http://www.village-idiot.org/archives/2007/05/22/wp-emergency-password-recovery/">an external script</a> (use with caution, especially before you read the source) that reaches into your WordPress install and updates your admin account and sends out an email with the resulting password.
</p>]]></description>
      <pubDate>Thu, 22 May 2008 12:58:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tiger Heron Blog: First steps with PHP - booting a script, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/10056</guid>
      <link>http://www.phpdeveloper.org/news/10056</link>
      <description><![CDATA[<p>
<i>Tony Freixas</i> continues his introductory look at "booting" a PHP script with <a href="http://www.tigerheron.com/article/2008/04/first-steps-php-booting-script-part-2">part two</a> of his series (here's <a href="http://www.phpdeveloper.org/news/9819">part one</a>) looking at using libraries.
</p>
<blockquote>
In the good old days, if you wanted to create re-usable code, you would create a library of related functions or objects. Now, the excitement is all around frameworks. Everyone has one. What is the difference between the two?
</blockquote>
<p>
He compares a library and a framework, pointing out key differences like how they fit with the application (controlled by or controlling) and dependencies they require. He rounds out his boot sequence, adding a few new parts to the structure of his example application.
</p>]]></description>
      <pubDate>Mon, 28 Apr 2008 12:57:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Kunz's Blog: PHPShield, SourceGuardian and Inovica Ltd.]]></title>
      <guid>http://www.phpdeveloper.org/news/10025</guid>
      <link>http://www.phpdeveloper.org/news/10025</link>
      <description><![CDATA[<p>
<i>Christopher Kunz</i> has <a href="http://www.christopher-kunz.de/archives/158-PHPShield,-SourceGuardian-and-Inovica-Ltd..html">shared about</a> a resource he came across that offers complete PHP encoding for a much lower price than some of the other services - <a href="http://ww.phpshield.com">phpshield.com</a>. It seems a little too good to be true, though:
</p>
<blockquote>
However, the phpShield.com home page did not offer the slightest clue who actually is behind that product. [...] It's common practice to whitelabel your solutions and sell them under different brands with different feature sets to different target audiences. However, we always clearly state who is behind the whitelabelled solution.
</blockquote>
<p>
A little more digging shows an interesting relationship between the company that sells SourceGuardian and the company behind this PHPShield (Inovica). He sees the deception counting against the company and has just "struck one off the list" from his search for encoding methods.
</p>]]></description>
      <pubDate>Wed, 23 Apr 2008 12:58:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: No Starch Press Releases "Wicked Cool PHP"]]></title>
      <guid>http://www.phpdeveloper.org/news/9626</guid>
      <link>http://www.phpdeveloper.org/news/9626</link>
      <description><![CDATA[<p>
<a href="http://nostarch.com/">No Starch Press</a> has officially released their PHP title "<a href="http://nostarch.com/wcphp.htm">Wicked Cool PHP</a>" (Real-World Scripts That Solve Difficult Problems).
</p>
<p>Here's a bit from the press release:</p>
<blockquote>
Wicked Cool PHP [...] is a different breed of PHP book. It's made specifically for the developer who wants to know how to get things done without mucking around and wasting a lot of time. This is not a weighty PHP complete reference or bible that threatens to take down your bookshelf and the rest of the bookcase. This is a book for coders to pick up and use, not wade through.
</blockquote>
<p>
It provides the reader with "76 immediately useful PHP scripts" that do a variety of things like send/receive email notifications, do some web scraping, track users with cookies and sessions and use web services like SOAP. 
</p>
<p>
You can find out more about the book on <a href="http://www.oreilly.com/catalog/9781593271732/index.html">this page</a> on the O'Reilly website. The book will officially hit the stands February 15th.
</p>]]></description>
      <pubDate>Wed, 13 Feb 2008 16:07:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: Four Ways to Transfer Data Between Flash and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9572</guid>
      <link>http://www.phpdeveloper.org/news/9572</link>
      <description><![CDATA[<p>
The DevX.com site has <a href="http://www.devx.com/webdev/Article/36748">posted some code</a> that gives you methods for passing information back and forth between PHP and a Flash application.
</p>
<blockquote>
When you need to develop a web form with a special design and great effects, you will probably elect to use Flash. But building and programming Flash forms is considerably different from building standard HTML-based forms. [...] To do that though, you need to know how to access data in the Flash form and (sometimes) how to update the Flash form from PHP as well.
</blockquote>
<p>
They help you build a sample Flash form as a base to work with in the transfer methods including the ActionScript to get the data out of each field. The tutorial shows the two way communication that's possible - pushing the Flash values out to the PHP script via a getURL() call and pulling the results back in with a call to loadVars() from the PHP script's output.
</p>]]></description>
      <pubDate>Tue, 05 Feb 2008 12:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ProDevTips.com: HTML entity encoding everything]]></title>
      <guid>http://www.phpdeveloper.org/news/9529</guid>
      <link>http://www.phpdeveloper.org/news/9529</link>
      <description><![CDATA[<p>
On the ProDevTips site, <i>Henrik</i> has pointed out <a href="http://www.greywyvern.com/php">a handy application</a> that can make HTML encoding characters outside the norm in PHP simple.
</p>
<blockquote>
The standard htmlentities() function will encode special characters so that they display OK in the browser. However, sometimes you might want to encode different languages to entities too. I just found a script that will do that in the form of an <a href="http://www.greywyvern.com/php">html encode application</a>.
</blockquote>
<p>
He <a href="http://www.prodevtips.com/2008/01/30/html-entity-encoding-everything/">includes an example</a> showing how to encode a string of non-english characters out to an easy-to-display HTMLified string.
</p>]]></description>
      <pubDate>Wed, 30 Jan 2008 12:57:00 -0600</pubDate>
    </item>
  </channel>
</rss>
