<?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, 18 May 2013 05:30:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: Scraping login requiring websites with cURL]]></title>
      <guid>http://www.phpdeveloper.org/news/12007</guid>
      <link>http://www.phpdeveloper.org/news/12007</link>
      <description><![CDATA[<p>
Several sites have areas that have content protected behind a login making them difficult to pull into a script. <i>Juozas Kaziukenas</i> has <a href="http://dev.juokaz.com/php/scraping-login-requiring-websites-with-curl">created an option</a> to help you past this hurdle - a PHP class (that uses cURL) that can POST the login data to the script and pull back the session ID.
</p>
<blockquote>
But how you are going to do all this work with cookies and session id? Luckily, PHP has <a href="http://uk.php.net/curl">cURL extension</a> which simplifies connecting to remote addresses, using cookies, staying in one session, POSTing data, etc. It's really powerful library, which basically allows you to use all HTTP headers functionality. For secure pages crawling, I've created very simple <a href="http://dev.juokaz.com/examples/crawler/crawler.phps">Secure_Crawler</a> class.
</blockquote>
<p>
The class uses the built-in cURL functionality to send the POST information (in this case the username and password, but it can be easily changed for whatever the form requires) and provides a get() method to use for fetching other pages once you're connected.
</p>]]></description>
      <pubDate>Tue, 24 Feb 2009 08:44:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: The PDO v2 Proposal]]></title>
      <guid>http://www.phpdeveloper.org/news/9494</guid>
      <link>http://www.phpdeveloper.org/news/9494</link>
      <description><![CDATA[<p>
<i>Wez Furlong</i> posted a <a href="http://news.php.net/php.pdo/1">request for comments</a> to the php.internals and php.pdo mailing lists yesterday about a new ly proposed update to the current PDO functionality - PDO 2. He just wants to clear up a few things...
</p>
<blockquote>
It became apparent over the past year or so that PDO has been a good and
valuable addition to PHP. [...] We believe that having direct involvement from the data access providers would be most effective, which is why we set out to try and get them on board.
</blockquote>
<p>
There were three steps they would need to make to push things to version two (documentation, define scope/direction and organize data provider integration methods) and the proposal that has caused a huge stir in the community - the idea of requiring a CLA contributors would need to sign.
</p>
<p>Comments to this point from the community include:</p>
<ul>
<li><a href="http://www.cyberlot.net/php-cla-pdo">Richard Thomas</a>
<li><a href="http://daylessday.org/archives/21-We-dont-need-no-new-PDO.html">Antony Dovgal</a>
<li>some of <a href="http://feeds.feedburner.com/~r/EvilAsInDr/~3/222720416/pdo-2-and-cla">Wez's own comments</a>
<li><a href="http://blog.digitalstruct.com/2008/01/24/thoughts-on-pdo-v2/">Mike Willbanks</a>
<li><a href="http://blogs.oracle.com/opal/2008/01/24#a267">Christopher Jones</a>
<li><a href="http://pooteeweet.org/blog/0/968">Lukas Smith</a>
<li><a href="http://paul-m-jones.com/?p=274">Paul Jones</a>
<li><a href="http://blog.thepimp.net/index.php/post/2008/01/24/Say-NO-to-CLA-in-PHP">Pierre-Alain Joye</a>
<li><a href="http://jpipes.com/index.php?/archives/208-Just-Chill...Chilll-Out,-OK-There-Aint-No-Devil-in-PDOv2.html">Jay Pipes</a>
<li><a href="http://derickrethans.nl/pdo_comments.php">Derick Rethans</a>
<li><a href="http://mtabini.blogspot.com/2008/01/heres-humble-thought-drop-cla.html">Marco Tabini</a>
<li><a href="http://mysqldump.azundris.com/archives/75-PHP-PDO-V2-CLA.html">Kristian Kohntopp</a>
<li>Some PDO humor from <a href="http://blog.agoraproduction.com/index.php?/archives/59-PDOv2-humor.html">David Coallier</a> and <a href="http://www.travisswicegood.com/index.php/2008/01/28/pdo2-humor">Travis Swicegood</a>
<li><a href="http://blog.somabo.de/2008/01/pdo-to-turn-php-into-closed-software.html">Marcus Borger</a> (and his <a href="http://blog.somabo.de/2008/02/we-want-pdo-don-we.html">part two</a>)
<li><a href="http://www.phpguru.org/#193">Richard Heyes</a>
<li><a href="http://till.vox.com/library/post/who-needs-it.html?_c=feed-rss-full">Till's blog entry</a>
<li><a href="http://open-php.net/">Say No to the CLA</a>
</ul>]]></description>
      <pubDate>Fri, 25 Jan 2008 08:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Auto Loading Classes in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9168</guid>
      <link>http://www.phpdeveloper.org/news/9168</link>
      <description><![CDATA[<p>
A <a href="http://www.devshed.com/c/a/PHP/Auto-Loading-Classes-in-PHP-5/">new tutorial</a> on DevShed today takes a look at a handy bit of functionality that's included with PHP5 - the automatic autoloading of classes.
</p>
<blockquote>
As you might know, the "__autoload()" function, when used in a clever way, can eliminate almost completely the need to use the "require()/require_once()" and "include()/include_once()". [...] Now is the perfect time to move forward and start learning how to put the "__autoload()" magic function to work for you, and load your classes without having to include them manually into your PHP 5 object-oriented applications.
</blockquote>
<p>
They show the more traditional approach with a code example (just using the require/include method) then show the difference in using a custom defined autoload function to tell the script where to find the libraries.
</p>]]></description>
      <pubDate>Tue, 04 Dec 2007 09:25:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP Discovery Blog: Dangers of Remote Execution]]></title>
      <guid>http://www.phpdeveloper.org/news/9092</guid>
      <link>http://www.phpdeveloper.org/news/9092</link>
      <description><![CDATA[<p>
On the PHP Discovery blog, there's a <a href="http://phpdiscovery.com/dangers-of-remote-execution/">new post</a> reminding PHP developers of some of the more dangerous ways that remote execution could effect your site and some of the common entry points it can have.
</p>
<blockquote>
PHP has numerous ways to execute raw PHP code unless you the programmer stops it.  Best way in preventing these methods is making sure you check the input of what your users are inputting, and making sure you escape all malicious actions that a hacker,cracker, kiddy scripter might want to do to your website. 
</blockquote>
<p>
He summarizes four of the things from the <a href="http://apress.com/book/view/1590595084">Pro PHP Security</a> book from Apress (by <i>Chris Snyder</i> and <i>Michael Southwell</i>) that can leave holes in you application for would-be explots - preg_replace, shell_exec/exec, eval (which we all know is only one letter from "evil" anyway) and require/include.
</p>]]></description>
      <pubDate>Wed, 21 Nov 2007 13:48:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Coding-Practices.com: Try-Catch Syntax Weirdness]]></title>
      <guid>http://www.phpdeveloper.org/news/8108</guid>
      <link>http://www.phpdeveloper.org/news/8108</link>
      <description><![CDATA[<p>
In working with his code recently, <i>Tim Koschuetzki</i> <a href="http://php-coding-practices.com/language-specific/try-catch-syntax-weirdness/">noticed something odd</a> with a block of try/catch code:
</p>
<blockquote>
I just noticed today, that PHP's try catch blocks require curly braces. Anybody has an idea why it is like that? I have used curly braces by default up until now, so I just stumbled upon this weirdness today.
</blockquote>
<p>
He includes two examples, one with a curly brace after the catch clause and the other without. This is different than several other control structures (like ifs) that don't require the curly brace when there's only the one line following it.
</p>]]></description>
      <pubDate>Fri, 22 Jun 2007 13:28:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: How to Interact with Web Forms (Part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/4719</guid>
      <link>http://www.phpdeveloper.org/news/4719</link>
      <description><![CDATA[With a continuation of their <a href="http://www.phpdeveloper.org/news/4683">previous article</a>, WebReference has posted <a href="http://www.webreference.com/programming/php_forms2/">part two</a> of their "How to Interact with Web Forms" series - an excerpt from the PHP Phrasebook (Sams).
<p>
They build on the <a href="http://www.phpdeveloper.org/news/4683">previous code</a>, showing how to:
<ul>
<li>preselect items from a multiple select list, 
<li>process image submit buttons
<li>checking the mandatory fields
<li>checking the values of select lists
</ul>
They <a href="http://www.webreference.com/programming/php_forms2/3.html">wrap it all up</a> with two handy concepts - how to write out your data to a form and send it off in email form to the location of your choosing and working with the files uploaded via a form.]]></description>
      <pubDate>Tue, 24 Jan 2006 07:03:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Vidyut Luther's Blog: Difference between "require()" and "include()" in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/4611</guid>
      <link>http://www.phpdeveloper.org/news/4611</link>
      <description><![CDATA[On his blog, phpcult.com, <i>Vidyut Luther</i> talks about the difference between <a href="http://www.phpcult.com/archives/36-Difference-between-require-and-include-in-PHP.html">require and include</a> in PHP.
<p>
<quote>
<i>
This should be well known, and people should be aware as to why they are using either or. But, I've noticed lately that a lot of people new to PHP or programming are not aware of the difference. Depending on what you need you, need to decide what the differences are.
</i>
</quote>
<p>
It's a <a href="http://www.phpcult.com/archives/36-Difference-between-require-and-include-in-PHP.html">short post</a>, but for someone just getting into PHP, it's some handy information to have. He looks at both functions and gives what they're good for. He does throw in a few caveats, though - including an issue with parse errors in included files pre-PHP 4.3.5...]]></description>
      <pubDate>Thu, 05 Jan 2006 06:56:33 -0600</pubDate>
    </item>
  </channel>
</rss>
