<?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>Sun, 19 May 2013 18:33:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Parallel web scraping in PHP: cURL multi functions]]></title>
      <guid>http://www.phpdeveloper.org/news/10701</guid>
      <link>http://www.phpdeveloper.org/news/10701</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has <a href="http://www.developertutorials.com/blog/php/parallel-web-scraping-in-php-curl-multi-functions-375/">posted a tutorial</a> about scraping other website information in parallel (with their permission, of course) with the help of the <a href="http://www.php.net/curl">cURL extension</a>.
</p>
<blockquote>
For anyone who's ever tried to fetch multiple resources over HTTP in PHP, the logic is trivial, but one key challenge is ever-present: latency delays. While web servers have perfectly good downstream links, latencies can increase script execution time tenfold just by downloading a few external URLs. But there's a simple solution: parallel cURL operations. In this tutorial, I'll show you how to use the "multi" functions in PHP's cURL library to get around this quickly and easily.
</blockquote>
<p>
He starts with a basic cURL example, grabbing the content from example.com and putting it into a variable. He modifies this to make it a bit more complex and to run multiple fetches in parallel - creating more than one cURL object and using the culr_multi_* methods to manage them.
</p>]]></description>
      <pubDate>Tue, 29 Jul 2008 07:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: New antipattern? "Multi Master Data"]]></title>
      <guid>http://www.phpdeveloper.org/news/5726</guid>
      <link>http://www.phpdeveloper.org/news/5726</link>
      <description><![CDATA[<p>
If you've been programming for any length of time, you know the "joy" of working with someone else's code. When taking over a project, the first inclination I've seen with most programmers is to go in and format everything to what they'd like (or duplicate functionality). This is where the problem comes in, the trend that <i>Michael Kimsal</i> talks about in <a href="http://fosterburgess.com/kimsal/?p=93">his new blog post</a> - something he wonders about being an "antipattern".
</p>
<blockquote>
I was discussing things with my brother the other day and I came up with a problem which he helped name.  I'm currently maintaining some code, and it's quite a jumble.  One of the things I can tell is that one of my predecessors began adding new sections of code to clean up the logic in other areas of the code.  However, what never happened was the clean up of the old code, so now there's two places where the same set of data is retrieved in different ways.
</blockquote>
<p>
He <a href="http://fosterburgess.com/kimsal/?p=93">proposes the name</a> "Multi Master Data" for the situation - two different sources, living in the same code, doing the same thing. Of course, he also mentions a situation where this type of problem can cause real issues, especially when trying to track down a bug (a bang your head on the desk moment).
</p>]]></description>
      <pubDate>Thu, 29 Jun 2006 07:00:35 -0500</pubDate>
    </item>
  </channel>
</rss>
