<?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>Thu, 23 May 2013 13:54:18 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Konstantin Kudryashov: Autohosts for Symfony projects on Mac]]></title>
      <guid>http://www.phpdeveloper.org/news/18625</guid>
      <link>http://www.phpdeveloper.org/news/18625</link>
      <description><![CDATA[<p>
<i>Konstantin Kudryashov</i> has posted a helpful hint for any web developer out there that knows the pain of constantly setting up VirtualHosts and local hostnames during their development. His suggestion <a href="http://everzet.com/post/33810120695/autohosts-for-symfony-projects-on-mac">makes setting them up simple</a> using Apache2's "autohosts" support.
</p>
<blockquote>
We all know, that web development is not as easy as it sounds and that it involves lot of different and sometimes really complex tools to just run or test stuff. We also know, that bootstrap (setup) of the project could take more time than you want it to. It's not a big deal if you're working on single project full time, but at KnpLabs, i'm bootstraping new sf2 project every 2 weeks. So this manual crafting of virtual host, edition of /etc/hosts and maintaining of those temp hosts everywhere made me really sick. So, at some point i've started to look for an elegant solution. Here is it.
</blockquote>
<p>
He gives you all the commands, file contents and software you'll need to install (he uses <a href="http://mxcl.github.com/homebrew/">Homebrew</a>) to install <a href="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</a> and get it configured. The only Symfony-specific part of the process is the last step - getting the latest version of the framework and installing it.
</p>]]></description>
      <pubDate>Thu, 18 Oct 2012 10:39:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Arvind Bhardwaj's Blog: How to Test PHP Emails on Localhost]]></title>
      <guid>http://www.phpdeveloper.org/news/18072</guid>
      <link>http://www.phpdeveloper.org/news/18072</link>
      <description><![CDATA[<p>
In <a href="http://www.webspeaks.in/2012/05/how-to-test-php-emails-on-localhost.html">this quick tutorial</a> <i>Arvind Bhardwaj</i> shows a method for testing your scripts that need to send emails, but on your localhost system.
</p>
<blockquote>
While developing web applications on localhost you must have always missed the functionality to send mails. As localhost does not support email service, so it has always been a bottleneck for email testing on localhost. But I have found a simple way to test emails on localhost using PHP. I have overridden the default mail() function of PHP to create a text/html file based on the email format. If the email is in html format, an HTML file is created otherwise a text file is created. You can see in this file what exactly is the content sent in your mail. See how does it work.
</blockquote>
<p>
He shows how to override the mail function with your own custom "mail" function, just in a difference namespace. He includes the sample code to send the email (the "mail" function), a basic HTML template you can use and and example of it in use.
</p>]]></description>
      <pubDate>Sat, 09 Jun 2012 12:02:20 -0500</pubDate>
    </item>
  </channel>
</rss>
