<?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 14:07:24 -0500</pubDate>
    <ttl>30</ttl>
    <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[Sameer Borate's Blog:Pushing xpi mime content from php]]></title>
      <guid>http://www.phpdeveloper.org/news/12541</guid>
      <link>http://www.phpdeveloper.org/news/12541</link>
      <description><![CDATA[<p>
In <a href="http://www.codediesel.com/php/sending-xpi-mime-content-from-php/">this new post</a> to his blog, <i>Sameer</i> shows how you can push content with the xpi content type out from your PHP scripts (for things like a Firefox toolbar/extension).
</p>
<blockquote>
A couple of days back I created a Firefox toolbar for my blog as an experiment in learning XUL. Once installed on my blog I wanted Firefox to recognize it as an addon and install it rather than displaying a 'save/open' dialog. 
</blockquote>
<p>
Since his hosting provider (GoDaddy) didn't seem to work with adding it into an .htaccess file (an AddType for Apache), he had to force the download type with a few calls to <a href="http://php.net/header">header</a> with the right content type, file size and file name to push it to the user.
</p>]]></description>
      <pubDate>Wed, 20 May 2009 07:06:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Open Zip Files with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11652</guid>
      <link>http://www.phpdeveloper.org/news/11652</link>
      <description><![CDATA[<p>
The NETTUTS.com site has a <a href="http://feedproxy.google.com/~r/nettuts/~3/umTYCt6xvOg/">new tutorial/screencast</a> posted looking at their method for opening up uploaded zip files with PHP:
</p>
<blockquote>
ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task...that's what we're going to use!
</blockquote>
<p>
They create a simple form with one field - a file input - and write some basic PHP around it. The script ensures that it was a zip file that was uploaded (based on the mime type) and passes it through a ZipArchive class to do the hard work. This class and the rest of the source <a href="http://nettuts.s3.amazonaws.com/165_php_zip/unZip_php.zip">can be downloaded</a> from the site.
</p>]]></description>
      <pubDate>Wed, 31 Dec 2008 12:04:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Migrating Class Code for a MIME Email to PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/10783</guid>
      <link>http://www.phpdeveloper.org/news/10783</link>
      <description><![CDATA[<p>
DevShed has finished off their series looking at sending MIME emails with PHP in <a href="http://www.devshed.com/c/a/PHP/Migrating-Class-Code-for-a-MIME-Email-to-PHP-5/">this new tutorial</a>, moving the current code from the previous parts up to a fully PHP5 state.
</p>
<blockquote>
While this mailer class can be used with small PHP applications, it lacks some important features related specifically to its object model, since it was built in PHP 4 from the very beginning. 
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Migrating-Class-Code-for-a-MIME-Email-to-PHP-5/1/">review</a> the PHP4 version of the script first then move on to the process of <a href="http://www.devshed.com/c/a/PHP/Migrating-Class-Code-for-a-MIME-Email-to-PHP-5/2/">porting it</a> to a more standardized PHP5 structure and code.
</p>]]></description>
      <pubDate>Thu, 07 Aug 2008 11:16:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Composing Messages in HTML for MIME Email with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10720</guid>
      <link>http://www.phpdeveloper.org/news/10720</link>
      <description><![CDATA[<p>
DevShed continues its look at sending MIME emails with PHP in <a href="http://www.devshed.com/c/a/PHP/Composing-Messages-in-HTML-for-MIME-Email-with-PHP/">the fourth part</a> of the series - a method for sending HTML in the message.
</p>
<blockquote>
In this article, I'm going to show you how to provide the MIME mailer class with the ability to send email messages in HTML format. This will greatly extend its functionality, so don't miss this tutorial.
</blockquote>
<p>
They start by <a href="http://www.devshed.com/c/a/PHP/Composing-Messages-in-HTML-for-MIME-Email-with-PHP/1/">reviewing</a> the class they've created so far, including an example of its use. From there they modify it slightly to make it easy to embed the HTML content into the email by adding the addHTML and buildHTMLPart methods.
</p>]]></description>
      <pubDate>Wed, 30 Jul 2008 14:34:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: A Better Way to Determine MIME Types for MIME Email with PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/10670</guid>
      <link>http://www.phpdeveloper.org/news/10670</link>
      <description><![CDATA[<p>
Continuing on in their look at sending MIME emails with PHP, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/A-Better-Way-to-Determine-MIME-Types-for-MIME-Email-with-PHP/">a better way</a> for you to determine the correct MIME type of the file you're wanting to send (third part of the series).
</p>
<blockquote>
I demonstrated how to build a modular MIME mailer class in PHP 4; it was provided with the capacity to send messages in plain text, and to work with different types of file attachments. This class implements a private method, called "getMimeTypes()," which, as its name would suggest, comes in handy for determining the correct MIME type of a given file. [...] However, the logic implemented by this method is rather primitive and can definitely be improved.
</blockquote>
<p>
They start with <a href="http://www.devshed.com/c/a/PHP/A-Better-Way-to-Determine-MIME-Types-for-MIME-Email-with-PHP/1/">a review</a> of the previous code (PHP4) and show how to get the correct mime type of the file based on the extension mapped to an array of types.
</p>]]></description>
      <pubDate>Thu, 24 Jul 2008 07:53:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Handling mail and mime in PHP using the Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/10633</guid>
      <link>http://www.phpdeveloper.org/news/10633</link>
      <description><![CDATA[<p>
On the Techfounder blog (from <i>Eran Galperin</i>) there's a <a href="http://www.techfounder.net/2008/07/18/handling-mail-and-mime-in-php-using-the-zend-framework/">quick tutorial</a> about using the Zend_Mail component of the Zend Framework to send both normal, plain-text emails and ones with MIME attachments.
</p>
<blockquote>
Using PHP's built in function (aptly named <a href="http://www.php.net/mail">mail()</a> ) is relatively straightforward - until you need slightly more advanced features, such as adding and encoding email headers or sending multiple mails efficiently. Fortunately, the Zend Framework comes with a very capable mail component called <a href="http://framework.zend.com/manual/en/zend.mail.html">Zend_Mail</a>.
</blockquote>
<p>
He <a href="http://www.techfounder.net/2008/07/18/handling-mail-and-mime-in-php-using-the-zend-framework/">shows</a> how to send a simple email, do something a bit more complex with a custom SMTP server, read messages from a remote POP3 email box and how to attach a binary file/message.
</p>]]></description>
      <pubDate>Fri, 18 Jul 2008 08:47:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Handling Attachments in MIME Email with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10620</guid>
      <link>http://www.phpdeveloper.org/news/10620</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Handling-Attachments-in-MIME-Email-with-PHP/">second part</a> of their series looking at handling MIME attachments in PHP generated emails today. This time they focus on the modification of their PHP4 class to make sending the emails easy.
</p>
<blockquote>
In this second tutorial of the series, I'm going to teach you how to improve the initial structure of the MIME mailer class developed in the first article by giving it the ability to work directly with attachments. Sounds fairly interesting, right? Then don't waste any more time in preliminaries and begin reading this article now!
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Handling-Attachments-in-MIME-Email-with-PHP/1/">refresh</a> you on the code from the former tutorial and show you how to modify it to work with more than just the simple plain-text attachment like before (with binary information, things like JPEGs, PDFs and other text formats like XML and HTML).
</p>]]></description>
      <pubDate>Wed, 16 Jul 2008 12:58:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Sending MIME Email with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10575</guid>
      <link>http://www.phpdeveloper.org/news/10575</link>
      <description><![CDATA[<p>
In <a href="http://www.devshed.com/c/a/PHP/Sending-MIME-Email-with-PHP/">this new tutorial</a> on DevShed <i>Alejandro Gervasio</i> explains how to send emails from PHP with MIME payloads attached.
</p>
<blockquote>
One of the most common tasks that a PHP programmer has to tackle is the development of applications that send MIME email in one form or another. In simple terms, MIME email consists of an extension of traditional email technology and comes in handy for sending email messages in fancy HTML and handling file attachments in a wide variety of formats.
</blockquote>
<p>
In this first part of the series he just lays the groundwork - creating the <a href="http://www.devshed.com/c/a/PHP/Sending-MIME-Email-with-PHP/1/">mailer class</a> they'll use for the series and using it to send a sample email (a basic message with a plain text MIME block).
</p>]]></description>
      <pubDate>Thu, 10 Jul 2008 08:49:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Retrieving Information on Selected Files with a PHP 5 File Uploader]]></title>
      <guid>http://www.phpdeveloper.org/news/9866</guid>
      <link>http://www.phpdeveloper.org/news/9866</link>
      <description><![CDATA[<p>
DevShed has continued their series (here's <a href="http://www.phpdeveloper.org/news/9830">part one</a>) looking at the use of file uploading in your PHP scripts. They build on that foundation and add in some more useful features <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/">this time</a>:
</p>
<blockquote>
The initial script in the first tutorial of this series lacked some important features, such as the implementation of an effective error handling module and the ability to check the MIME type and size of the file being uploaded. In this second installment of the series, I'm going to improve the logic of the script from the first tutorial to provide it with the capacity to retrieve useful information concerning the entire file uploading process.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/1/">look back</a> at the previous tutorial to remind you of some of the concepts and then move on to show you how to <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/2/">get information</a> about the file (like the MIME type, name and size of the uploaded file). The <a href="http://www.devshed.com/c/a/PHP/Retrieving-Information-on-Selected-Files-with-a-PHP-5-File-Uploader/3/">last page</a> is just the full source code for the cut and pasters out there.
</p>]]></description>
      <pubDate>Thu, 27 Mar 2008 09:31:04 -0500</pubDate>
    </item>
  </channel>
</rss>
