<?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, 18 Jun 2013 16:12:45 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mike Purcell's Blog: PHP - Reflection Class - Determine Parent Method Signature]]></title>
      <guid>http://www.phpdeveloper.org/news/18185</guid>
      <link>http://www.phpdeveloper.org/news/18185</link>
      <description><![CDATA[<p>
In <a href="http://melikedev.com/2012/07/03/php-reflection-class-determine-parent-method-signature/">this recent post</a> to his blog <i>Mike Purcell</i> shares a method he found to discover the parameters required by a method in a class' parent via <a href="http://php.net/reflection">reflection</a>.
</p>
<blockquote>
According to <a href="http://us.php.net/manual/en/memcached.get.php">PHP docs</a> regarding the Memcached::get() method, there are three arguments which which must be added to my extended signature, which I added, but kept getting "...should be compatible with that of Memcached::get()" errors. I tried looking for the method signature via source code but didn't glean anything useful from the <a href="https://github.com/php-memcached-dev/php-memcached">PECL documentation</a>, so I turned to <a href="http://us3.php.net/reflectionclass">PHP's RelectionClass</a>.
</blockquote>
<p>
He includes a quick snippet of code showing how the check works and the handy output it produces - a set containing the parameter name, if it's require or optional and it's definition.
</p>]]></description>
      <pubDate>Thu, 05 Jul 2012 10:12:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Source Code Signatures in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17115</guid>
      <link>http://www.phpdeveloper.org/news/17115</link>
      <description><![CDATA[<p>
In <a href="http://www.codediesel.com/php/source-code-signatures-in-php/">this new post</a> to his blog <i>Sameer Borate</i> applies an interesting method of discovery of structure in unfamiliar code - <a href="http://c2.com/doc/SignatureSurvey/">generating code signatures</a>.
</p>
<blockquote>
One method [Ward Cunningham] suggests is that of summarizing on a single line select punctuation characters from each source file. He calls this the file's "signature". This will help the developer gauge the complexity of the code base.
</blockquote>
<p>
He includes a few examples from files in WordPress - looking for the structure of curly braces and semicolons as delimiters for chunks of functionality. Included are a few lines of code to help you generate a signature from any file and an example of a result. It's an interesting idea, but I'm not sure how practical it is. It could be a helpful reference for how complicated the file is, though.
</p>]]></description>
      <pubDate>Thu, 10 Nov 2011 13:11:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Error Handling for Dynamic Twitter Signature Images with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13110</guid>
      <link>http://www.phpdeveloper.org/news/13110</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Error-Handling-for-Dynamic-Twitter-Signature-Images-with-PHP">third part</a> of their series looking at the creation of dynamic twitter signatures. These signatures are the sort of badges you'd see on a site with the user's latest tweet and their photo.
</p>
<blockquote>
In the third installment in this series, I will be demonstrating how to add proper object-oriented error handling to the SignatureImage class.
</blockquote>
<p>
They've built up the class to take in a <a href="http://twitter.com">twitter</a> username and, via a cURL request pull in both the account's avatar and latest tweets. If something goes wrong, though, the class needs to be modified to handle it. They show how to add in try/catch handling with an error handler method in the class to work with the error's result.
</p>]]></description>
      <pubDate>Wed, 26 Aug 2009 07:55:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Enhancing Dynamic Twitter Signature Images with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13042</guid>
      <link>http://www.phpdeveloper.org/news/13042</link>
      <description><![CDATA[<p>
In this <a href="http://www.devshed.com/c/a/PHP/Enhancing-Dynamic-Twitter-Signature-Images-with-PHP/">second part</a> of their "dynamic twitter signature" series DevShed expands on the previous part and adds in code to work with the GD libraries to make the image.
</p>
<blockquote>
In my last article we began putting together a solution that will allow us to display dynamic Twitter signature images in forum posts and emails. In this article we'll continue where we left off by adding the functions that will harness the power of GD to create the actual image.
</blockquote>
<p>
They review the previous code - a simple class that makes a request to the twitter servers for the latest statuses from the user - and adds on the fetching of the user's avatar and to push the text content into the generated image.
</p>]]></description>
      <pubDate>Fri, 14 Aug 2009 08:27:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPFreaks.com: PHP Add Text To Image]]></title>
      <guid>http://www.phpdeveloper.org/news/11816</guid>
      <link>http://www.phpdeveloper.org/news/11816</link>
      <description><![CDATA[<p>
<a href="http://www.phpfreaks.com/tutorial/php-add-text-to-image">This new tutorial</a> from the PHPFreaks.com website shows how to add text into a custom created image (they go with an Arial font in a PNG image).
</p>
<blockquote>
One of the standard features of a message board is allowing members to have a signature, which is appended to the bottom of each post they make. Posters can put whatever they want into the signature (within forum settings). Putting quotes in one's signature is one of the more popular things to do. [...] Soon afterwards, I started receiving messages on a fairly regular basis asking me "What kind of sorcery is this?? How do I do that??" You know, I think it's kind of funny people should ask, because this is really nothing new.
</blockquote>
<p>
His code (the <a href="http://www.phpfreaks.com/tutorial/php-add-text-to-image/page2">full script is here</a>) sets up the font size, the font face (Arial) and the quotes to be randomly pulled from first. The image manipulation comes next - making a PNG resource, adding a few colors and shapes, and dropping in the text.
</p>
<p>
Each line of the code is covered in detail so you'll understand exactly what's going on. The end result is a script that makes a simple image and can be easily expanded to work with other sources (like databases or flat text files).
</p>]]></description>
      <pubDate>Mon, 26 Jan 2009 12:04:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkPHP Blog: Improving Usability on "My Chorizo" page: the host signature file]]></title>
      <guid>http://www.phpdeveloper.org/news/5908</guid>
      <link>http://www.phpdeveloper.org/news/5908</link>
      <description><![CDATA[<p>
The guys over at the ThinkPHP blog are already improving their <a href="https://chorizo-scanner.com/">Chorizo</a> security scanner software with <a href="http://blog.thinkphp.de/archives/129-Improving-Usability-on-My-Chorizo-page-the-host-signature-file.html">refreshed usability</a> for their "My Chorizo" page inside the utility.
</p>
<blockquote>
In the spirit of Web2.0 applications, we constantly improve Chorizo! and silently update the application with the newest features. In order to scan a host, you have to prove that you are the owner of the host by uploading a unique signature file to your host's document root. Some of our users had trouble uploading it into the docroot, some accidently put it into the wrong directory.
</blockquote>
<p>
Their <a href="http://blog.thinkphp.de/archives/129-Improving-Usability-on-My-Chorizo-page-the-host-signature-file.html">enhancement</a> makes it easy to tell which of the products have their signature files in place and while don't at a glance.
</p>]]></description>
      <pubDate>Mon, 31 Jul 2006 05:59:21 -0500</pubDate>
    </item>
  </channel>
</rss>
