<?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, 07 Sep 2008 16:15:06 -0500</pubDate>
    <ttl>30</ttl>
    <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[Richard Heyes' Blog: mail() replacement]]></title>
      <guid>http://www.phpdeveloper.org/news/9203</guid>
      <link>http://www.phpdeveloper.org/news/9203</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/#163">posted about</a> a mail() replacement he's come up with that adds the additional functionality of backing up all of the data to a certain directory of your choosing.
</p>
<blockquote>
A simple drop in replacement function for PHPs mail() function called mailb() which backs up all the data to a specified directory. [...] I've also added a simple header file to Apache and the <a href="http://www.phpguru.org/downloads/">download</a> directory so it looks nicer.
</blockquote>
<p>
You can download a copy of his library <a href="http://www.phpguru.org/downloads/mailb/">here</a> as a .phps file (a quick and easy 40ish line script).
</p>]]></description>
      <pubDate>Mon, 10 Dec 2007 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: The ZendCon Sessions Episode 2: Best Practices for Sending Mail from PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9183</guid>
      <link>http://www.phpdeveloper.org/news/9183</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2788-The-ZendCon-Sessions-Episode-2-Best-Practices-for-Sending-Mail-from-PHP">another podcast posted</a> from its ZendCon Sessions series. This time it's <i>Wez Furlong</i>'s talk about sending mail from PHP.
</p>
<blockquote>
Welcome to The ZendCon Sessions. This episode of The ZendCon Sessions was recorded live at <a href="http://zendcon.com/">ZendCon 2007</a> in Burlingame, CA. We hope you enjoy today's session as we listen to Wez Furlong present "Best Practices for Sending Mail from PHP".
</blockquote>
<p>
There's three options for listening to the show - you can either: listen to it on the page with the built in player, download <a href="http://zendcon.sessions.s3.amazonaws.com/zendcon_sessions_podcast_002.mp3">the mp3</a> directly or <a href="http://feeds.feedburner.com/zendcon_sessions">subscribe to the feed</a> to get this and future (and past!) episodes. Perfect for those who weren't able to attend the event...
</p>]]></description>
      <pubDate>Thu, 06 Dec 2007 07:52:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: More goodies in the eZ Components]]></title>
      <guid>http://www.phpdeveloper.org/news/8679</guid>
      <link>http://www.phpdeveloper.org/news/8679</link>
      <description><![CDATA[<p>
As <a href="http://derickrethans.nl/more_goodies_in_the_ez_components.php">mentioned by Derick Rethans</a> on his blog today, there's some new versions of several (five) of the components in the next version of the <a href="http://ez.no/ezcomponents">eZ Components</a> framework:
</p>
<blockquote>
In the just released alpha versions you can find new features, such as better support for OpenID, a Database backend for OpenID authentication, a validating method for e-mail addresses, SMTP authentication support for DIGEST-MD5, CRAM-MD5, NTLM and LOGIN and encoding support for e-mail headers.
</blockquote>
<p>
He also <a href="http://derickrethans.nl/more_goodies_in_the_ez_components.php">mentions</a> other goodies like tree structure handling and functionality to support WebDav connections. Check out <a href="http://issues.ez.no/RoadMap.php?Id=630&ProjectId=1">their roadmap</a> to get a better idea of what's to come.
</p>]]></description>
      <pubDate>Tue, 18 Sep 2007 19:44:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SecurityReason.com: PHP 5.2.4 Released...unpatched]]></title>
      <guid>http://www.phpdeveloper.org/news/8592</guid>
      <link>http://www.phpdeveloper.org/news/8592</link>
      <description><![CDATA[<p>
As mentioned by <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,27417,nodeid,5.html">the International PHP Magazine</a>, <i>Maksymilian Arciemowicz</i> has <a href="http://securityreason.com/news/0/0x1f">posted about</a> some testing he's been doing on the newly released PHP 5.2.4 and has still found some issues with it.
</p>
<blockquote>
In 30 August PHP Team have released new version PHP with number 5.2.4. We have tested this version and now we can say, that not all issues from PHP 5.2.3 are patched. It is possible bypass safe_mode, open_basedir and disabled_functions.
</blockquote>
<p>
The issue <a href="http://securityreason.com/news/0/0x1f">he describes</a> is the lack of a "mail.force_extra_parameters" setting in the php.ini still making it possible to exploit the mail() function to execute arbitrary PHP code.
</p>]]></description>
      <pubDate>Wed, 05 Sep 2007 11:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Sending Mail with Solar]]></title>
      <guid>http://www.phpdeveloper.org/news/8278</guid>
      <link>http://www.phpdeveloper.org/news/8278</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/blog/?p=253">posted a new tutorial</a> about using the mail functionality of the <a href="http://www.solarphp.com">Solar framework</a> - the <a href="http://solarphp.com/package/Solar_Mail">Solar_Mail</a> and <a href="http://solarphp.com/package/Solar_Smtp">Solar_Stmp</a> packages.
</p>
<blockquote>
While each of these [PEAR Mail, PhpMailer, SwiftMailer, Zend_Mail] will work with <a href="http://solarphp.com/">Solar</a>, the new <a href="http://solarphp.com/package/Solar_Mail">Solar_Mail</a> and <a href="http://solarphp.com/package/Solar_Smtp">Solar_Smtp</a> packages work "natively", in that they support automatic configuration, locale and exception inheritance, and so on. Read on for some examples on how to use them.
</blockquote>
<p>
In <a href="http://paul-m-jones.com/blog/?p=253">his example</a> he sets up and sends a simple message, setting the contents of the email (sent as an HTML message). Since there's been much talk about the safety of a lot of the mailing systems in frameworks, <i>Paul</i> talks about how it's been secured from header injections, through safe attachments, and from a transport dependency-injection for SMTP. 
</p>
<p>
There's even a method included that lets you take the SMTP information out of the script and put it into the Solar configuration file to use in the entire application.
</p>]]></description>
      <pubDate>Wed, 18 Jul 2007 13:48:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Danne Lundqvist's Blog: Problem sending mail with PHP mail function]]></title>
      <guid>http://www.phpdeveloper.org/news/7636</guid>
      <link>http://www.phpdeveloper.org/news/7636</link>
      <description><![CDATA[<p>
In a <a href="http://www.dotvoid.com/view.php?id=73">new post</a> on the Dotvoid.com blog today, <i>Danne Lundqvist</i> talks about some of the issues he's had with the <a href="http://www.php.net/mail">mail function</a> in PHP. Specifically, it's about the mails being set but not making it to their destinations.
</p>
<blockquote>
Instead I have used a PHP class that allows me to send emails using a remote smtp server using an account on that server. This has been a good solution for my setup anyways. A few days ago a <a href="http://www.2good.nu/">friend of mine</a> was asked to investigate the very same problem for a client.
</blockquote>
<p>
As it turns out, the solution to their problem was pretty simple - a conflict between the sendmail_from in the php.ini and the "From" passed into the mail function call. A simple ini_set resolved the issue and kept the spam filters from catching and blocking the message.
</p>]]></description>
      <pubDate>Tue, 17 Apr 2007 08:24:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Security Tips #10, #11, and #12]]></title>
      <guid>http://www.phpdeveloper.org/news/7454</guid>
      <link>http://www.phpdeveloper.org/news/7454</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted three new helpful security tips to add to their <a href="http://devzone.zend.com/public/view/tag/Security_Tips">growing list</a> - one on mailing, one about working with privileges, and the other on the dangers of eval:
<ul>
<li>In <a href="http://devzone.zend.com/node/view/id/1815">tip #10</a>, <i>Cal</i> looks briefly at some of the dangers of blindly using form input when sending a mail. One never knows what kind of nasty headers a user might enter.
<li><a href="http://devzone.zend.com/node/view/id/1817">Tip #11</a> recommends the "path of least privileges" when it comes to allowing access to your application. Don't go global when simple will do just fine - even with the best of intentions, the wrong access can lead to big issues.
<li>Finally, in <a href="http://devzone.zend.com/node/view/id/1821">tip #12</a>, one of the more discouraged functions in PHP is discussed - eval. This one little function, when fed the wrong kind of string, can unravel your application from the inside out and provide a would-be attacker just the opening they might need.
</ul>
<p>
You can check out more great security tips like these on the <a href="http://devzone.zend.com/public/view/tag/Security_Tips">Zend Developer Zone</a> website.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2007 11:24:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: mail() logging for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6891</guid>
      <link>http://www.phpdeveloper.org/news/6891</link>
      <description><![CDATA[<p>
In his <a href="http://ilia.ws/archives/149-mail-logging-for-PHP.html">latest blog entry</a>, <i>Ilia Alshanetsky</i> has proposed (and provided) a patch that can help with one of the more abused of the popular PHP functions out there - mail().
</p>
<blockquote>
One of the problems with solving the mail() abuse is figuring out who is doing it or perhaps what script was exploited to do it, since the mail() function does not offer any logging mechanism.
</blockquote>
<p>
To address this problem, he's supplied <a href="http://ilia.ws/uploads/patches/mail_log.txt.gz">this patch</a> you can apply to your source to add two new options to the mail function:
<ul>
<li>enable the addition of the X-PHP-Originating-Script header
<li>mail.log (takes a filename) allows you to enable logging of every single mail() call
</ul>
Check out <a href="http://ilia.ws/archives/149-mail-logging-for-PHP.html">his entry</a> for more details on configuration options and other functionality included with the patch.
</p>]]></description>
      <pubDate>Wed, 13 Dec 2006 16:56:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Batch processing in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6844</guid>
      <link>http://www.phpdeveloper.org/news/6844</link>
      <description><![CDATA[<p>
Both <a href="http://devzone.zend.com/node/view/id/1334">this post</a> on the Zend Developer Zone</a> and <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26637,nodeid,5.html">tis post</a> on the International PHP Magazine's website point to a new article over on the IBM developerWorks website by <i>Jack Herrington</i>, <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-batch/">Batch processing with PHP</a>.
</p>
<blockquote>
What do you do when you have a feature in your Web application that takes longer than a second or two to finish? You need some type of offline processing solution. Check out several methods for offline servicing of long-running jobs in your PHP application.
</blockquote>
<p>
He <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-batch/">talks about cron</a> and its role in offline processing (including a basic primer on its format) before getting into the example itself. He looks at three examples:
<ul>
<li>building an email queue
<li>building a generic queue system
<li>dumping out the database 
</ul>
Each example comes complete with code and descriptions to help you work them up on you very own system.
</p>]]></description>
      <pubDate>Thu, 07 Dec 2006 09:06:00 -0600</pubDate>
    </item>
  </channel>
</rss>
