<?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>Tue, 21 May 2013 05:50:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rudi's Blog: Get torrent data with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11360</guid>
      <link>http://www.phpdeveloper.org/news/11360</link>
      <description><![CDATA[<p>
<a href="http://blog.zurka.us/index.php/2008/10/13/get-torrent-data-with-php/">This new post</a> to <i>Rudi</i>'s blog shows how, with the help of <A href="http://blog.zurka.us/go.php?http://blog.zurka.us/wp-content/uploads/2008/10/functions.phps">an external class</a> you can use PHP to grab information from a torrent file.
</p>
<blockquote>
To use this code you first need to include a file with the benc, bdec and hex2bin functions. To get the torrent data (like the announce url, the files etc) it is enough if we decode the content of the torrent. On the other hand, if we want to read the number of seeds, leechs and downloads, we must encode the info part of the torrent, encrypt it with the sha1 function and convert the result to lowercase.
</blockquote>
<p>
He includes the code to make the decoding/encryption of the results a copy and paste away (once you have <a href="http://blog.zurka.us/go.php?http://blog.zurka.us/wp-content/uploads/2008/10/functions.phps">these functions</a> to work from). He's even provided <a href="http://blog.zurka.us/go.php?http://blog.zurka.us/wp-content/uploads/2008/10/torrent.phps">an example using the code</a> that gets the information from a torrent on the Pirate Bay website.
</p>]]></description>
      <pubDate>Thu, 06 Nov 2008 13:50:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[AddedBytes.com: Regular Expressions Cheat Sheet]]></title>
      <guid>http://www.phpdeveloper.org/news/6282</guid>
      <link>http://www.phpdeveloper.org/news/6282</link>
      <description><![CDATA[<p>
One of the more elusive concepts of programming can be working with regular expressions. Now, there's lots of places to learn them and to get a handle on what they can do (such as <a href="http://www.oreilly.com/catalog/regex3/index.html">this book</a>), but what if you don't need the full-blown reference and just want a quick and dirty reference source? AddedBytes.com is happy to be of service with <a href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/">their latest cheat sheet</a> divided up into the different formats (anchors, character classes, assertions, escape characters, etc).
</p>
<blockquote>
The Regular Expressions cheat sheet is designed to be printed on an A4 sheet of paper and live by a designer or developer's desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Regular Expressions cheat sheet.
</blockquote>
<p>
This time, they've posted it in a few different formats, including <a href="http://www.addedbytes.com/regular_expressions_cheat_sheet.torrent">a torrent file</a> to make for faster/easier download. They still have <a href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/">the usual methods</a> (PDF and PNG) but you'll need to visit the page for those links - it's been requested not to directly link to them.
</p>]]></description>
      <pubDate>Fri, 15 Sep 2006 07:46:23 -0500</pubDate>
    </item>
  </channel>
</rss>
