<?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>Fri, 24 May 2013 22:55:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Anthony Ferrara: Programming With Anthony - References]]></title>
      <guid>http://www.phpdeveloper.org/news/18853</guid>
      <link>http://www.phpdeveloper.org/news/18853</link>
      <description><![CDATA[<p>
<i>Anthony Ferrara</i> has <a href="http://blog.ircmaxell.com/2012/12/programming-with-anthony-references.html">posted the third video</a> in his series on programming over on <a href="https://www.youtube.com/watch?v=_YZIBWQr_yk">Youtube</a>. In this new episode, he talks about variable and object references (and the differences between them).
</p>
<p>The two other video tutorials he's posted are:</p>
<ul>
<li>an <a href="https://www.youtube.com/watch?v=RLmuFlDygn0">introduction to encryption</a>
<li>about <a href="http://youtu.be/CV4vPsEizJM">programming paradigms</a>
</ul>
<p>
If you like the videos, <a href="http://blog.ircmaxell.com/2012/12/programming-with-anthony-references.html#comments">leave him feedback</a> on what you'd like to see in future videos.
</p>]]></description>
      <pubDate>Thu, 06 Dec 2012 10:54:36 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: References suck! - Let's fix MySqli prepared statements!]]></title>
      <guid>http://www.phpdeveloper.org/news/16466</guid>
      <link>http://www.phpdeveloper.org/news/16466</link>
      <description><![CDATA[<p>
<i>Volker Dusch</i> has a new post to his blog looking at the use of references in PHP (or lack there of) and what we, as end users of the language, can do about it. His example looks at <a href="http://edorian.posterous.com/references-suck-lets-fix-mysqli-prepared-stat">mysqli prepared statements</a>.
</p>
<blockquote>
Even so not every PHP Developers knows WHY we don't use references pretty much every core function and every somewhat modern framework avoids them so people adapted this best practice. The leftovers in the PHP core, like sort() or str_replace(), are exceptions to the rule. So if the common consensus is, or at least 'should be', that we <a href="http://schlueters.de/blog/archives/125-Do-not-use-PHP-references.html">should not use references</a> then maybe we should start looking for places where they hurt and how we could fix them?
</blockquote>
<p>
He talks about prepared statements and one thing he sees that makes it a "hard sell" to developers needing a good way to query their databases. He points out the difference in code required between the normal MySQL calls and mysqli (hint: it's more) and shows how to use an abstraction layer to make things a bit easier. He points out the downfalls of using this approach, mainly the performance hit you get (from using his fetchAll method).
</p>]]></description>
      <pubDate>Tue, 14 Jun 2011 11:46:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Collecting Garbage: Cleaning Up]]></title>
      <guid>http://www.phpdeveloper.org/news/15086</guid>
      <link>http://www.phpdeveloper.org/news/15086</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has continued his series on garbage collection in the PHP internals with <a href="http://derickrethans.nl/collecting-garbage-cleaning-up.html">this second post</a> of the series with a special look at circular references. You can find the first part <a href="http://phpdeveloper.org/news/15049">here</a>.
</p>
<blockquote>
In this second part of the three part column on the new garbage collecting mechanism in PHP 5.3, we'll dive into a solution to the problem with circular references. If we look quickly back, we found that by using code like the [first example], an in-request memory leak is created.
</blockquote>
<p>
He goes on to briefly describe the synchronous algorithm (including a few more helpful graphs to show the flow) and how that has worked its way into the PHP garbage collection methods. He also points out that this collection can be turned off and on via the <a href="http://php.net/gc_enable">gc_enable</a> and <a href="http://php.net/gc_disable">gc_disable</a> functions. Keep an eye out for the next part of the series where he gets into more detail on how this is all integrated into PHP.
</p>]]></description>
      <pubDate>Tue, 07 Sep 2010 09:56:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: References and foreach]]></title>
      <guid>http://www.phpdeveloper.org/news/14999</guid>
      <link>http://www.phpdeveloper.org/news/14999</link>
      <description><![CDATA[<p>
To reinforce a point he's made before (references in PHP are bad) <i>Johannes Schluter</i> has <a href="http://schlueters.de/blog/archives/141-References-and-foreach.html">posted an example</a> to his blog of a specific instance that causes an (expected) issue with references and foreach loops.
</p>
<blockquote>
Now there is one use case which leads to an, at first, unexpected behavior which I didn't see as a real live issue when I stumbled over it at first, but then there were a few bug reports about it and recently a friend asked me about it ... so here it goes.
</blockquote>
<p>
He show a code snippet of looping over an array with two <a href="http://php.net/foreach">foreach</a>es and a <a href="http://php.net/print_r">print_r</a> that shows the bug - the array changed from the original for no clearly apparent reason. To understand why this happens, he goes into detail on how variables are handled - complete with graphs.
</p>]]></description>
      <pubDate>Fri, 20 Aug 2010 12:44:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: Do not use PHP references]]></title>
      <guid>http://www.phpdeveloper.org/news/13813</guid>
      <link>http://www.phpdeveloper.org/news/13813</link>
      <description><![CDATA[<p>
In <a href="http://schlueters.de/blog/archives/125-Do-not-use-PHP-references.html">a new post</a> to his blog <i>Johannes Schluter</i> recommends that you don't use references in your applications, mostly because of some misconceptions about how they work.
</p>
<blockquote>
Last year I spoke at eight conferences and attended a few more multiple times at most of them I found myself in discussions about references and PHP as many users seem to have wrong understandings about them. Before going to deep into the subject let's start with a quick reminder what references are and clear some confusion about objects which are "passed by reference."
</blockquote>
<p>
He re-introduces referenced variables and scratches the surface about the confusion they can cause, not only on the user level but also in the internals of the language, and can lead to some unexpected results. He also mentions the "always passed by reference" idea that several PHPers have about PHP5 objects and why it's not entirely correct. He finishes off the post with a look at returning referenced parameters and how it can lead to bad application design.
</p>]]></description>
      <pubDate>Mon, 11 Jan 2010 10:50:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rochak Chauhan's Blog: Top Ten Security Vulnerabilities in PHP Code]]></title>
      <guid>http://www.phpdeveloper.org/news/10756</guid>
      <link>http://www.phpdeveloper.org/news/10756</link>
      <description><![CDATA[<p>
<i>Rochak Chauhan</i> has come up with <a href="http://rochakchauhan.com/blog/2008/07/13/top-ten-security-vulnerabilities-in-php-code/">a list of ten things</a>, some security problems that could be lurking in your applications waiting to pop up at the worst time. Here's his list:
</p>
<ul>
<li>Unvalidated Parameters
<li>Broken Access Control
<li>Broken Account and Session Management
<li>Cross-Site Scripting (XSS) Flaws
<li>Buffer Overflows
<li>Command Injection Flaws
<li>Error Handling Problems
<li>Insecure Use of Cryptography
<li>Remote Administration Flaws
<li>Web and Application Server Misconfiguration
</ul>
<p>
Each item on the list has a bit of detail (and sometimes some code) to help point out the problem. Some of them even have references to external sources and packages to help you solve the problems.
</p>]]></description>
      <pubDate>Mon, 04 Aug 2008 12:58:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: Little reminder about PHP references and some thoughts about FUDs]]></title>
      <guid>http://www.phpdeveloper.org/news/7359</guid>
      <link>http://www.phpdeveloper.org/news/7359</link>
      <description><![CDATA[<p>
<i>Pierre-Alain Joye</i> has a <a href="http://blog.thepimp.net/index.php/post/2007/02/27/Little-reminder-about-PHP-references-and-some-thoughts-about-FUDs">little reminder</a> posted to his blog today about two posts from planet-debian and Apache that refer to clones/references in PHP4 and PHP5 and some of the misconceptions presented there.
</p>
<blockquote>
Reading planet-debian and Apache (from <a href="http://blog.incase.de/index.php/2007/02/27/php4-php5-objects-and-cloning/">Sven</a> and <a href="http://journal.dedasys.com/articles/2007/02/27/php4-php5-objects-and-cloning">David</a>), I catched two posts about clones and references in php4 and php5. I do not think it is worth to explain again everything here as Sara wrote a very good post already, check it out <a href="http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html#extended">here</a>.
</blockquote>
<p>
He <a href="http://blog.thepimp.net/index.php/post/2007/02/27/Little-reminder-about-PHP-references-and-some-thoughts-about-FUDs">mentions his annoyance</a> with articles/posts like these and the impact that it has on PHP as well as the person posting.
</p>
<blockquote>
I wonder when the OS community in general will be mature enough to stop bitching at each other. And that's valid for PHP developers, gnome-kde and other well established wars.
</blockquote>]]></description>
      <pubDate>Wed, 28 Feb 2007 09:17:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Nefarious Designs: Object-Oriented PHP Part 2: Relationships]]></title>
      <guid>http://www.phpdeveloper.org/news/6100</guid>
      <link>http://www.phpdeveloper.org/news/6100</link>
      <description><![CDATA[<p>
Nefarious Designs has posted <a href="http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-2-relationships/">part two</a> of their look at the object-oriented functionality, this time, there's a focus on the relationships objects and their friends have.
</p>
<blockquote>
<p>
Following on from my posts "Object-Oriented Concepts" and "Object-Oriented Javascript", I'm going to take a look at OOP in PHP.
</p>
In "Part 1: Definition" we took a look at defining objects and classes in PHP. In part 2 I'm going to look at the most important part of any object-oriented system - the relationships.
</p>
</blockquote>
<p>
They <a href="http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-2-relationships/">look at</a> inheritance, association, aggregation, and references. Code examples are sprinkled liberally to help illustrate the points.
</p>]]></description>
      <pubDate>Mon, 21 Aug 2006 18:06:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Shiflett's Blog: php|tek Recap]]></title>
      <guid>http://www.phpdeveloper.org/news/5305</guid>
      <link>http://www.phpdeveloper.org/news/5305</link>
      <description><![CDATA[<p>
<i>Chris Shiflett</i> has posted his <a href="http://shiflett.org/archive/231">brief recap</a> of his experience at the php|tek conference this year, including links to two helpful references - the <a href="http://hades.phparch.com/ceres/public/page/index.php/tek_live::slides">page of slides</a> provided by php|architect and a <a href="http://cluesheet.com/">Cluesheet</a> of tons of info from the conference</a>.
</p>
<p>
There's also a comment made about the <a href="http://hades.phparch.com/ceres/public/page/index.php/works::cfp">Call for Papers</a> for php|architect's next conference later in the year.
</p>]]></description>
      <pubDate>Thu, 04 May 2006 06:58:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: What References Do You Use?]]></title>
      <guid>http://www.phpdeveloper.org/news/4305</guid>
      <link>http://www.phpdeveloper.org/news/4305</link>
      <description><![CDATA[Well, <i>Davey Shafik</i> started it with <a href="http://pixelated-dreams.com/archives/196-Desktop-References.html">this post</a> on his blog, and <i>Firman Wandayandi</i> (of DotGeek) <a href="http://firman.dotgeek.org/blog/index.php?itemid=3">continues it</a> - a listing of "references on their desktop" - books/magazines/etc that are around them at all times for their reference.
<p>
From Davey:
<p>
<quote>
<i>
Mine are:
<ul>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=pixelateddrea-20&camp=1789&creative=9325&path=tg/detail/-/0672328631/qid=1131988737/sr=8-2/ref=sr_8_xs_ap_i1_xgl14?v=glance%26s=books%26n=507846">Sams Teach Yourself MySQL in 10 Minutes</a>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=pixelateddrea-20&camp=1789&creative=9325&path=tg/detail/-/0596000480/qid=1131988909/sr=2-1/ref=pd_bbs_b_2_1?v=glance%26s=books">JavaScript: The Definitive Guide</a>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=pixelateddrea-20&camp=1789&creative=9325&path=tg/detail/-/059600656X/qid=1131988989/sr=2-1/ref=pd_bbs_b_2_1?v=glance%26s=books">Essential PHP Security</a>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=pixelateddrea-20&camp=1789&creative=9325&path=tg/detail/-/0596000537/qid=1131989044/sr=1-8/ref=sr_1_8?v=glance%26s=books">XSLT</a>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&tag=pixelateddrea-20&camp=1789&creative=9325&path=tg/detail/-/0973589825/qid=1131989109/sr=1-1/ref=sr_1_1?v=glance%26s=books">PHP|Architect's Guide to PHP Design Patterns</a>
<li><a href="http://phparch.com/">The latest issue of php|architect</a>
</ul>
</i>
</quote>
<p>
And Firman's:
<p>
<quote>
<i>
<ul>    
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0764588338/qid=1132019965/sr=1-1/ref=sr_1_1/002-8288720-8694406?v=glance&s=books">Wrox Professional CSS Cascading Style Sheets for Web Design</a>
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0201633612/qid=1132020458/sr=8-1/ref=pd_bbs_1/002-8288720-8694406?v=glance&s=books&n=507846">Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series)</a>
<li><a href="http://www.manning.com/books/crane/about">Manning Ajax in Action</a>
<li><a href="http://phparch.com/">PHP|Architect issues</a>
<li><a href="http://php.net/manual/en">PHP Manual</a>
<li><a href="http://pear.php.net/manual/en/">PEAR Manual</a>
</ul>
</i>
</quote>
<p>
What kind of reference materials do you use? What books are on your desk that never seem to collect dust because is seems like they're always in use? Do you have one of the giant PHP posters on your wall that SitePoint was offering? Post your comments below!]]></description>
      <pubDate>Tue, 15 Nov 2005 06:10:09 -0600</pubDate>
    </item>
  </channel>
</rss>
