<?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>Sat, 25 May 2013 22:04:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Handle Unloaded PHP Extensions at Runtime]]></title>
      <guid>http://www.phpdeveloper.org/news/14253</guid>
      <link>http://www.phpdeveloper.org/news/14253</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today <i>Craig Buckler</i> has a suggestion on <a href="http://www.sitepoint.com/blogs/2010/03/26/php-extension-not-loaded/">how to handle unloaded extensions</a> in your application in case you need to define a failover.
</p>
<blockquote>
Unless you're creating very simple applications, you will soon require one or more PHP extensions. Extensions are code libraries which extend the core functionality of the language. [...] What happens when you want to move your web application to another host or platform where a different set of extensions are configured?
</blockquote>
<p>
Using the <a href="http://www.php.net/manual/en/function.extension-loaded.php">extension_loaded</a> function built into PHP, you can create intelligent code that can fall back on a different technology if needed. In his example its trying to check for the GD graphics extension and echoing and error message if it's not found. The <a href="http://www.php.net/manual/en/function.function-exists.php">function_exists</a> function can be used similarly.
</p>]]></description>
      <pubDate>Fri, 26 Mar 2010 09:10:13 -0500</pubDate>
    </item>
  </channel>
</rss>
