<?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>Thu, 17 May 2012 04:10:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Giving Your First PHP Presentation]]></title>
      <guid>http://www.phpdeveloper.org/news/17818</guid>
      <link>http://www.phpdeveloper.org/news/17818</link>
      <description><![CDATA[<p>
In <a href="http://phpmaster.com/giving-your-first-php-presentation/">this recent post</a> from PHPMaster.com <i>Aaron Saray</i> gives a few helpful hints (and reasons to speak) for the aspiring presenters out there wanting to give their first talk at a PHP (or any technology-related) conference.
</p>
<blockquote>
Your heart begins to race. Suddenly, it's stifling hot in here. Your palms begin to sweat and your knees are threatening to give up and flee to a vacation in Cancun without you. The dull rhythmic thump-thump in your ears heightens to a frenzied jack-hammer. You can't remember a time when your mouth has been this dry. It's time to begin - and your voice cracks. It's public speaking time and you're the next one up. In this article I'll cover the basics of why presenting PHP is important, who can present about PHP related topics and what you can do to make your presentation stand out.
</blockquote>
<p>
He starts off by answering the "why" question - why even give a presentation at a conference or local user group? His answer has a few parts and involves things like giving back to the community and being considered an expert in the field. He follows this with a few ways to help your talk stand out - include code samples, give live demos and be entertaining.
</p>]]></description>
      <pubDate>Mon, 16 Apr 2012 08:15:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Henri Bergius' Blog: Open Advice (Book)]]></title>
      <guid>http://www.phpdeveloper.org/news/17690</guid>
      <link>http://www.phpdeveloper.org/news/17690</link>
      <description><![CDATA[<p>
If you're into Open Source software (doesn't matter if you're new to it or an old hand), you'd do well to check out <a href="http://bergie.iki.fi/blog/open_advice/">the book Henri Bergius has posted about</a> - that he also contributed to - "Open Advice - FOSS: What We Wish We Had Known When We Started".
</p>
<p>
As quoted from the <a href="http://lwn.net/Articles/481222/">LWN review</a> of the book:
</p>
<blockquote>
Open Advice is a book that will be helpful to those who are new to FOSS, but, because of the individual voices, styles, and tones, it doesn't read like a "how to". It could even be recommended to those who aren't necessarily interested in contributing, but are curious about what this "free software thing" is all about.
</blockquote>
<p>
It contains real experience from real developers that work on FOSS projects with chapters titled:
</p>
<ul>
<li>"Code First"
<li>"University and Community"
<li>"Love the Unknown"
<li>"Quality Assurance"
<li>"Good Manners Matter"
<li>"Stop Worrying and Love the Crowd"
</ul>
<p>
The book is licensed under a Creative Commons license (<a href="http://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>) and can be downloaded in multiple formats - <a href="http://open-advice.org/Open-Advice.epub">ePub</a>, <a href="http://open-advice.org/Open-Advice.mobi">mobi</a>, <a href="http://open-advice.org/Open-Advice.pdf">PDF</a> and <a href="http://www.lulu.com/shop/lydia-pintscher/open-advice/paperback/product-18889265.html">paperback</a>, if you prefer that.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 10:16:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Reddit.com: Let's talk Character Encoding]]></title>
      <guid>http://www.phpdeveloper.org/news/17680</guid>
      <link>http://www.phpdeveloper.org/news/17680</link>
      <description><![CDATA[<p>
On Reddit.com there's <a href="http://www.reddit.com/r/PHP/comments/qxacr/rphp_lets_talk_character_encoding/">a recent post</a> with a growing discussion about character encodings in PHP applications (with some various recommendations).
</p>
<blockquote>
I would rather not have to convert these weird characters to the HTML character entities, if possible. I'd rather be able to use these characters directly on the web page. If this is for some reason a bad idea, let me know. This might be more of a general web design question (i already posted it there), but I figured it is still appropriate to post here as well since PHP is used to pull an entry from the database, and I figured a lot of you here would know the answer to the question. 
</blockquote>
<p>
The general consensus is to use UTF8 in this case, but there's a few reminders for the poster too:
</p>
<ul>
<li>Don't forget to make the database UTF8 too
<li>Be sure you're sending the right Content-Type for the UTF8 data
<li>an <a href="http://www.joelonsoftware.com/articles/Unicode.html">link to an article</a> about what "developers must know about unicode/charactersets"
</ul>]]></description>
      <pubDate>Thu, 15 Mar 2012 11:07:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: How Not to Suck at PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17511</guid>
      <link>http://www.phpdeveloper.org/news/17511</link>
      <description><![CDATA[<p>
In <a href="http://www.littlehart.net/atthekeyboard/2012/02/03/how-not-to-suck-at-php/">this recent post</a> to his blog, <i>Chris Hartjes</i> answers his request for a "rant topic" by responding to a question about "how to not suck at PHP" (from <i>Travis Northcutt</i>).
</p>
<blockquote>
I thought about this question for a while and have some thoughts on what it really means to know how to not suck at building things using PHP. In my never even remotely humble opinion I think the key is to understand what PHP is really good at.
</blockquote>
<p>
He talks about how PHP had the early-adoption advantage at first with Apache, but how things have changed so much since then. Now, he proposes, PHP's popularity and usefulness is based on what it can do as a language without messing with frameworks at all. He's worried that, once someone picks up a framework, it'll become so ingrained that they won't know what "plain old PHP" can do (or how to work with it).
</p>
<blockquote>
So my advice to Travis is that he should worry about learning to use PHP like glue and correctly identify the problems he is trying to solve NOW instead of worrying about the problems he might have to solve later. There will be time to fix your problems. Some of those will be solved by using tools that are not written in PHP, but PHP can still glue them together.
</blockquote>]]></description>
      <pubDate>Tue, 07 Feb 2012 12:48:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Reinheimer's Blog: Cookies don't replace Sessions]]></title>
      <guid>http://www.phpdeveloper.org/news/17438</guid>
      <link>http://www.phpdeveloper.org/news/17438</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Paul Reinheimer</i> talks about <a href="http://blog.preinheimer.com/index.php?/archives/373-Cookies-dont-replace-Sessions.html">replacing sessions with cookies</a> and some of the (security) pitfalls that can come with it.
</p>
<blockquote>
I've seen several instances where people have demonstrated the ease with which encrypted cookies can replace sessions within PHP. Michael Nitschinger <a href="http://nitschinger.at/Session-Encryption-with-Lithium">wrote a piece</a> recently demonstrating the switch with Lithium, while CodeIgniter does this <a href="http://codeigniter.com/user_guide/libraries/sessions.html">by default</a> (optionally encrypting). The problem is that while replacing sessions with cookies works, it introduces a few risks not present with native session support, and these risks tend to be under documented.
</blockquote>
<p>
He gives an illustration of an attacker who sits between Amazon and one of their warehouses. Despite encrypting their order details, all it would take is the attacker to grab an order and copy it and resend (a "replay attack"). He's created <a href="http://betting-example.orchestra.io/">an example application</a> to illustrate the point (<a href="https://github.com/preinheimer/Betting-Example">source on github</a>). The attacker doesn't even have to know what the encrypted information contains - they only have to replicate it.
</p>]]></description>
      <pubDate>Tue, 24 Jan 2012 09:26:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Reddit.com: What everyone should know about strip_tags()]]></title>
      <guid>http://www.phpdeveloper.org/news/17282</guid>
      <link>http://www.phpdeveloper.org/news/17282</link>
      <description><![CDATA[<p>
In <a href="http://www.reddit.com/r/PHP/comments/nj5t0/what_everyone_should_know_about_strip_tags/">this new post to Reddit</a>, the author shares a bit of their knowledge on what they think everyone should know about <a href="http://php.net/strip_tags">strip_tags</a> and some of the issues that can come with it (including security problems).
</p>
<blockquote>
<a href="http://www.php.net/manual/en/function.strip-tags.php">strip_tags</a> is one of the common go-to functions used for making user input on web pages safe for display. But contrary to what it sounds like it's for, strip_tags is never, ever, ever the right function to use for this and it has a lot of problems.
</blockquote>
<p>
Specific problems mentioned include "eating" of valid text, not preventing typed HTML entities, the whitelist of tags opening holes and character set issues that could have security implications. Other tools are recommended in both the article and the comments like <a href="http://htmlpurifier.org/">HTML Purifier</a>, the option of <a href="https://secure.wikimedia.org/wikipedia/en/wiki/BBCode">BBCode</a> and <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Markdown">Markdown</a>.
</p>]]></description>
      <pubDate>Tue, 20 Dec 2011 10:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DeveloperDrive.com: What Web Developers Need to Know About Cross-Site Scripting]]></title>
      <guid>http://www.phpdeveloper.org/news/17002</guid>
      <link>http://www.phpdeveloper.org/news/17002</link>
      <description><![CDATA[<p>
On the DeveloperDrive.com site there's a recent post anyone wondering about cross-site scripting should give a read. They <a href="http://www.developerdrive.com/2011/10/what-web-developers-need-to-know-about-cross-site-scripting/">introduce you to the basic concept</a> and two things you can do to help prevent them.
</p>
<blockquote>
This little fable describes the most common vulnerability found in web sites, the Cross Site Scripting (XSS) attack. According to a report from <a href="http://www.darkreading.com/security/app-security/showArticle.jhtml?articleID=221601529">WhiteHat Security</a> 83 percent of websites they tested have had at least one serious vulnerability and 66 percent of all websites with vulnerabilities are susceptible to XSS attacks making it the most common vulnerability web developers face. To fix this, it takes 67 days on average. Tools like <a href="http://www.owasp.org/index.php/Main_Page">WebScarab</a> and <a href="http://www.parosproxy.org/index.shtml">Paros Proxy</a> can be used to scan sites for possible vulnerabilities.
</blockquote>
<p>
They offer two simple pieces of advice that it's all too easy to forget when developing applications - validate all user input to ensure it's what it should be and escape any untrusted output (even sometimes your own!) before pushing it out to the page.
</p>]]></description>
      <pubDate>Mon, 17 Oct 2011 13:39:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Marco Tabini's Blog: Suggestions for a younger developer]]></title>
      <guid>http://www.phpdeveloper.org/news/16855</guid>
      <link>http://www.phpdeveloper.org/news/16855</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Marco Tabini</i> offers some quick advice to younger developers looking to make their mark in their profession (PHP-related or not). He <a href="http://blog.tabini.ca/2011/09/suggestions-for-a-younger-developer/">shares five tips</a> to keep in mind as you hone your process and write your code.
</p>
<blockquote>Every now and then, I get asked by developers who are just getting started in the trade if I have any suggestions to help them out - favourite language, tips and tricks, and the like. None of these things matter, really, but there are a few things I wish I had known when I started out that have nothing to do with the mechanics of software development.
</blockquote>
<p>His tips each come with a paragraph or so of explanation:</p>
<ul>
<li>Be humble
<li>There is no magic
<li>Programming is a craft, not an art
<li>Software solves problems
<li>Code doesn't leave sawdust
</ul>]]></description>
      <pubDate>Wed, 14 Sep 2011 08:54:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans's Blog: Crafting a conference proposal]]></title>
      <guid>http://www.phpdeveloper.org/news/16425</guid>
      <link>http://www.phpdeveloper.org/news/16425</link>
      <description><![CDATA[<p>
<i>Cal Evans</i>, one of the organizers of the <a href="http://tek11.phparch.com">php|tek 2011</a> conference, has some <a href="http://blog.calevans.com/2011/06/02/crafting-conference-proposal/">words of advice</a> for anyone out there looking to submit a proposal to a technology conference for the topic of your choice...and have a better chance of being accepted.
</p>
<blockquote>
Recently on twitter, <a href="http://twitter.com/johncongdon">@johncongdon</a> asked me about proposals for <a href="http://blog.calevans.com/tag/conferences/">conferences</a>. Specifically, he asked if I had any examples that I can share because he was considering submitting to a conference. While I don't have any examples to share, I can give you some advice on the topic.
</blockquote>
<p>
He offers some <a href="http://blog.calevans.com/2010/08/27/tips-on-how-to-get-accepted-as-a-speaker-at-a-php-conference/">recommended reading</a> of one of his other posts and points out that there's not a single version of a proposal that'll work for all events. He also recommends finding a way to be noticed immediately, whether it be by name or by catchy content. 
</p>]]></description>
      <pubDate>Fri, 03 Jun 2011 11:50:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: PHP Quick Reference]]></title>
      <guid>http://www.phpdeveloper.org/news/16152</guid>
      <link>http://www.phpdeveloper.org/news/16152</link>
      <description><![CDATA[<p>
On DZone.com today there's a new post from <i>Chris Shiflett</i> sharing some <a href="http://css.dzone.com/news/php-quick-reference">timeless advice</a> from an older copy of a <a href="http://shiflett.org/blog/2009/aug/php-quick-reference">PHP Quick Reference</a> (published in 2009) about performance and security.
</p>
<blockquote>
While cleaning out my desk, I found an old copy of a PHP Quick Reference I helped make a few years ago. On the front page are a few performance and security tips that I thought I'd share. (Performance tips are from George Schlossnagle.)
</blockquote>
<p>
Performance tips include profile early/profile often, cache when possible and don't over-optimize. The security hints include some of the usual suspects - trust nothing, filter input/escape output and use prepared statements.
</p>]]></description>
      <pubDate>Wed, 06 Apr 2011 08:34:05 -0500</pubDate>
    </item>
  </channel>
</rss>

