<?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, 12 Feb 2012 18:13:32 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Martin Psinas' Blog: Watermarking with text and ImageMagick]]></title>
      <guid>http://www.phpdeveloper.org/news/16947</guid>
      <link>http://www.phpdeveloper.org/news/16947</link>
      <description><![CDATA[<p>
<i>Martin Psinas</i> has submitted a new tutorial he's written up (complete with sample code) showing how to <a href="http://psinas.com/index.php?blogid=38">watermark an image with ImageMagick</a>.
</p>
<blockquote>
In my most recent venture with <a href="http://www.phpmaster.com/">PHPMaster</a> I was asked to write an article about watermarking images with PHP using ImageMagick. Virtually no documentation exists on the <a href="http://php.net/imagick">PHP API</a>, although there are plenty of command-line examples from the official <a href="http://www.imagemagick.org/Usage/annotating/#wmark_text">ImageMagick website</a>. I spent a solid day and a half attempting to convert command-line code into PHP before (due to miscommunication) the topic was covered by someone else and my work was no longer needed. Although disappointed, it gave me something to blog about! Yay.
</blockquote>
<p>
His script is pretty straight forward - it loads a sample image, sets up some watermark text and applies it with a "gravity" setting of "southwest" and adds it to the image (annotateImage). The output is pushed back out as a JPEG image. Also included is a slightly more complex example showing how to give the watermark an embossed look and a "text all over the image" look to prevent use of any part of the image, not just one section.
</p>]]></description>
      <pubDate>Tue, 04 Oct 2011 11:44:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Weiske's Blog: A MIME type for .php files]]></title>
      <guid>http://www.phpdeveloper.org/news/16195</guid>
      <link>http://www.phpdeveloper.org/news/16195</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a recent post to his site looking at something most PHP developers don't even think about when serving up their scripts - the <a href="http://cweiske.de/tagebuch/php-mimetype.htm">MIME types for PHP files</a>.
</p>
<blockquote>
While setting some svn properties at work, we wondered about the correct MIME type for .php files.
</blockquote>
<p>
He found several in the <a href="http://www.iana.org/assignments/media-types/">official IANA list</a> including "text/php", "application/php" and "application/x-http-php" - all valid but none of them considered a standard. He talks about the ones supported by linux distributions (like Debian/Ubuntu) and some reasoning that might make "application/php" the best choice of the list. He points out some downsides to the choice, though, including the fact that something starting with "application/" should considered "machine readable" only despite PHP just being text.
</p>]]></description>
      <pubDate>Thu, 14 Apr 2011 09:17:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Maclean's Blog: Using Pango for PHP: a taster]]></title>
      <guid>http://www.phpdeveloper.org/news/15943</guid>
      <link>http://www.phpdeveloper.org/news/15943</link>
      <description><![CDATA[<p>
<i>Michael Maclean</i> has a new article today talking about the <a href="http://pango.org/">Pango</a> graphics library and how it can be coupled with the <a href="http://pecl.php.net/package/cairo">Cairo PECL extension</a> to more easily create better looking text in dynamic images.
</p>
<blockquote>
The <a href="http://pecl.php.net/package/cairo">PECL/Cairo</a> library is pretty good at drawing vector graphics (in our opinion, as the developers, at least!), but one thing it's not able to do by itself is draw text with mildly advanced layout. [...] That's because the developers of the Cairo library decided to let another more specialised library handle the job of text layout.
</blockquote>
<p>
<i>Michael</i> has created <a href="https://github.com/mgdm/php-pango">a wrapper</a> for Pango in PHP (github) and some sample code that can be used as a test to ensure it's all setup and working. He steps through each part of the image creation and describes what's happening and what each method is doing along the way.
</p>]]></description>
      <pubDate>Tue, 22 Feb 2011 12:58:27 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: How to Send Text Messages with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15801</guid>
      <link>http://www.phpdeveloper.org/news/15801</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial showing you how to <a href="http://net.tutsplus.com/tutorials/php/how-to-send-text-messages-with-php/">send text messages</a> via SMS directly from your script to the user's cell phone.
</p>
<blockquote>
Text messaging has become extremely widespread throughout the world - to the point where an increasing number of web applications have integrated SMS to notify users of events, sales or coupons directly through their mobile devices. In this tutorial, we will cover the fundamentals of sending text messages with PHP.
</blockquote>
<p>
Their method "cheats" a little bit and uses an interface many of the cell phone providers offer to their subscribers - a link from an email address to SMS. Most providers <a href="http://www.venture-ware.com/kevin/?p=83">have their domains</a> you can send the email to and have it automatically forwarded to the user's cell as a text. Thankfully, this requires nothing more than the <a href="http://php.net/mail">mail</a> function to accomplish. They include the sample code and HTML+CSS to make a basic form as well as mention <a href="http://phpmailer.worxware.com/">PHPMailer</a> as a more powerful mailing alternative.
</p>]]></description>
      <pubDate>Tue, 25 Jan 2011 10:14:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Samuel Folkes' Blog: The Tools You Need For PHP Development]]></title>
      <guid>http://www.phpdeveloper.org/news/13403</guid>
      <link>http://www.phpdeveloper.org/news/13403</link>
      <description><![CDATA[<p>
<i>Samuel Folkes</i> has <a href="http://www.samuelfolkes.com/2009/10/the-tools-you-need-for-php-development/">posted a few of his ideas</a> on the tool(s) that every PHP developer needs to have on his belt to make their work easy and more effective.
</p>
<blockquote>
Quite often, I am asked the question "What tools do I need for PHP development?". [...] For those who will listen, I have one very simple answer to that question: Aside from a server running PHP and a text editor, you need absolutely nothing. That answer may seem extreme but its the truth. Lets break it down.
</blockquote>
<p>
<i>Samuel</i> suggests that, while the choices for IDE, debuggers and other tools for PHP development are too many to count, nothing is as good and clean as a basic text editor (his choice is <a href="http://notepad-plus.sourceforge.net/">Notepad++</a>). There are a few things that can make your code more effective like <a href="http://www.phpdoc.org/">phpDocumentor</a> or <a href="http://www.phpunit.de/">PHPUnit</a>, but those are more about good coding practices than how you develop.
</p>]]></description>
      <pubDate>Sat, 17 Oct 2009 06:26:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Building Helpers in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/12909</guid>
      <link>http://www.phpdeveloper.org/news/12909</link>
      <description><![CDATA[<p>
DevShed has started up a new series of tutorials today with <a href="http://www.devshed.com/c/a/PHP/Building-Helpers-in-PHP-5/">this first part</a> of their "helpers in PHP5" series. They look at some of the first steps into creating these helpers and the handy methods inside.
</p>
<blockquote>
Despite its seeming simplicity, building helpers can be a pretty challenging process, particularly for beginners whom are just starting to implement the object-oriented paradigm in PHP 5. [...] I'm going to introduce you as gently as possible to creating different types of helpers, which hopefully will make you understand the basis of this process and encourage you to create your own.
</blockquote>
<p>
They start off with a <a href="http://www.devshed.com/c/a/PHP/Building-Helpers-in-PHP-5/1/">text helper</a> that gives you methods to change newlines to &lt;br> or &lt;p> tags. They extend the class a bit more by adding in a few other methods - convert newlines to &lt;div> tags, and uppercase/lowercase/uppercase the first letter in a string.
</p>]]></description>
      <pubDate>Tue, 21 Jul 2009 07:56:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: The ABC's of PHP Part 5 - Strings & Text ]]></title>
      <guid>http://www.phpdeveloper.org/news/12355</guid>
      <link>http://www.phpdeveloper.org/news/12355</link>
      <description><![CDATA[<p>
PHPBuilder.com has <a href="http://www.phpbuilder.com/columns/peter_shaw04152009.php3">the latest in their series</a> looking at beginner level PHP and some of the core concepts that go with it ("The ABC's of PHP"). This latest tutorial looks at string and text handling.
</p>
<blockquote>
In the last part of this series we looked at what a variable was in general. Today we'll be covering strings and text. We'll look at the contents those variables would typically hold. 
</blockquote>
<p>
Topics include the differences between single and double quotes, appending to a string and special characters (like line feeds and tabs). Code snippets are provided for each to help you visualize what they mean.
</p>]]></description>
      <pubDate>Thu, 16 Apr 2009 09:31:25 -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[Sameer Borate's Blog: PHP built in functions map]]></title>
      <guid>http://www.phpdeveloper.org/news/11752</guid>
      <link>http://www.phpdeveloper.org/news/11752</link>
      <description><![CDATA[<p>
<i>Sameer</i> has <a href="http://www.codediesel.com/php/php-built-in-functions-map/">put together a few images</a>, the results from the <a href="http://www.wordle.net/">Wordle website</a> when he plugged in the names of the built-in functions included in PHP.
</p>
<blockquote>
The application is simple. You enter a bunch of text and Wordle does the rest. The applet provides options to change color, font and layout. Just for fun I created a Wordle cloud to display php's built in functions. Two samples are shown <a href="http://www.codediesel.com/php/php-built-in-functions-map/">below</a>. The size of the font in the cloud is proportional to the number of functions starting with the particular name.
</blockquote>
<p>
Among the largest on the list are words like "array", "get", "mysql" and "mcrypt". He used a call to the get_defined_functions() method and looped through the "internal" subarray to build his lists.
</p>]]></description>
      <pubDate>Fri, 16 Jan 2009 09:31:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer's Blog: Creating a Figlet text in php]]></title>
      <guid>http://www.phpdeveloper.org/news/11424</guid>
      <link>http://www.phpdeveloper.org/news/11424</link>
      <description><![CDATA[<p>
<i>Sameer</i> has <A href="http://www.codediesel.com/php/creating-a-figlet-text-in-php/">posted an example</a> of a new(ish) component of the Zend Framework - the Zend_Figlet component - and how you can use it to render the multi-line ASCII text figlet users are familiar with.
</p>
<blockquote>
Zend_Text_Figlet is a Zend component which enables developers to create a <a href="http://en.wikipedia.org/wiki/FIGlet">FIGlet</a> text. A Figlet is nothing but a technique of creating large letters using ordinary text. I don't know how to make a use of this in my daily matters, but its a nice recreation. A short history on Figlet can be found <A href="http://www.figlet.org/figlet_history.html">here</a>. An example and the code to generate it is shown below.
</blockquote>
<p>
He includes a few quick code examples to show it in action - including how to make it work with your own fonts and styles.
</p>]]></description>
      <pubDate>Tue, 18 Nov 2008 14:15:00 -0600</pubDate>
    </item>
  </channel>
</rss>

