<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 17:24:58 +0000</lastBuildDate>
    <item>
      <title>(PHP) Fix CDATA blocks in XML files after reformatting with Tidy - iroybot</title>
      <link>https://snipplr.com/view/69689/fix-cdata-blocks-in-xml-files-after-reformatting-with-tidy</link>
      <description>&lt;p&gt;For some reason tidy inserts new lines before/after &lt;![CDATA[ content in XML files. Since I like the benefits of a reformatted, readable XML...&#13;
... i run tidy first, then remove the spaces before/after the CDATA block:&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jan 2013 09:43:33 UTC</pubDate>
      <guid>https://snipplr.com/view/69689/fix-cdata-blocks-in-xml-files-after-reformatting-with-tidy</guid>
    </item>
    <item>
      <title>(PHP) PHP Exec debugging - iroybot</title>
      <link>https://snipplr.com/view/66893/php-exec-debugging</link>
      <description>&lt;p&gt;easy way of catching and displaying errors and return values from a exec() command  back in PHP.&lt;/p&gt;</description>
      <pubDate>Sat, 25 Aug 2012 00:42:55 UTC</pubDate>
      <guid>https://snipplr.com/view/66893/php-exec-debugging</guid>
    </item>
    <item>
      <title>(PHP) PHP Exec debugging - iroybot</title>
      <link>https://snipplr.com/view/66892/php-exec-debugging</link>
      <description>&lt;p&gt;easy way of catching and displaying errors and return values from a exec() command  back in PHP.&lt;/p&gt;</description>
      <pubDate>Sat, 25 Aug 2012 00:41:58 UTC</pubDate>
      <guid>https://snipplr.com/view/66892/php-exec-debugging</guid>
    </item>
    <item>
      <title>(PHP) Simplepie with fixed Cache directory handling - iroybot</title>
      <link>https://snipplr.com/view/60572/simplepie-with-fixed-cache-directory-handling</link>
      <description>&lt;p&gt;Simplepie per default uses relative paths to generate the cache filename. Whenever I  use Simplepie I run into the same problem, that the cache directory can't be located. This is why I modify the file everytime. Here's my version (with a hardcoded path which you'll want to replace with your desired location).&lt;/p&gt;</description>
      <pubDate>Sun, 06 Nov 2011 07:00:30 UTC</pubDate>
      <guid>https://snipplr.com/view/60572/simplepie-with-fixed-cache-directory-handling</guid>
    </item>
    <item>
      <title>(PHP) Joomla! K2 image naming... - iroybot</title>
      <link>https://snipplr.com/view/56954/joomla-k2-image-naming</link>
      <description>&lt;p&gt;If you wanna use images stored by K2 in your custom scripts/classes you'll need to know how K2 generates the names... (took me quite a bit to find that, because they're not stored in the _k2_items table)&lt;/p&gt;</description>
      <pubDate>Thu, 21 Jul 2011 09:19:11 UTC</pubDate>
      <guid>https://snipplr.com/view/56954/joomla-k2-image-naming</guid>
    </item>
    <item>
      <title>(PHP) Example XML representation of Zend_Form - iroybot</title>
      <link>https://snipplr.com/view/52714/example-xml-representation-of-zendform</link>
      <description>&lt;p&gt;the link explains how the XML is generated.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:30:17 UTC</pubDate>
      <guid>https://snipplr.com/view/52714/example-xml-representation-of-zendform</guid>
    </item>
    <item>
      <title>(PHP) Zend_Form  Object to XML Data Representation (for use in XSLT) - iroybot</title>
      <link>https://snipplr.com/view/52713/zendform--object-to-xml-data-representation-for-use-in-xslt</link>
      <description>&lt;p&gt;Turns a Zend_Form object into XML data. Click the associated link to see an Example XML result and a XSL Stylesheet used to display regular HMTL.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Apr 2011 08:10:07 UTC</pubDate>
      <guid>https://snipplr.com/view/52713/zendform--object-to-xml-data-representation-for-use-in-xslt</guid>
    </item>
    <item>
      <title>(PHP) Using PHP in XPath - iroybot</title>
      <link>https://snipplr.com/view/48042/using-php-in-xpath</link>
      <description>&lt;p&gt;I'm using this out of laziness.&#13;
PHP is slowing things down here, since it's not as close to C as XPath.&#13;
A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).&lt;/p&gt;</description>
      <pubDate>Fri, 28 Jan 2011 10:14:24 UTC</pubDate>
      <guid>https://snipplr.com/view/48042/using-php-in-xpath</guid>
    </item>
    <item>
      <title>(PHP) Compiling JS with Closure Compiler and PHP - iroybot</title>
      <link>https://snipplr.com/view/45852/compiling-js-with-closure-compiler-and-php</link>
      <description>&lt;p&gt;ported to PHP5 from this tutorial: http://bohuco.net/blog/2010/09/use-google-closure-compiler-local-with-php/&#13;
since I had problems running the compiler on mutliple files, I did the joining myself.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Dec 2010 02:41:49 UTC</pubDate>
      <guid>https://snipplr.com/view/45852/compiling-js-with-closure-compiler-and-php</guid>
    </item>
    <item>
      <title>(PHP) Accessing applications.ini - iroybot</title>
      <link>https://snipplr.com/view/45592/accessing-applicationsini</link>
      <description>&lt;p&gt;you get the whole config if you leave the APPLICATION_ENV (production/development/etc.) parameter out of the constructor&lt;/p&gt;</description>
      <pubDate>Sat, 11 Dec 2010 03:58:55 UTC</pubDate>
      <guid>https://snipplr.com/view/45592/accessing-applicationsini</guid>
    </item>
    <item>
      <title>(PHP) Retrieve Zend_Config options from application.ini - iroybot</title>
      <link>https://snipplr.com/view/45531/retrieve-zendconfig-options-from-applicationini</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 10 Dec 2010 02:52:52 UTC</pubDate>
      <guid>https://snipplr.com/view/45531/retrieve-zendconfig-options-from-applicationini</guid>
    </item>
    <item>
      <title>(PHP) safe strtolower - iroybot</title>
      <link>https://snipplr.com/view/38096/safe-strtolower</link>
      <description>&lt;p&gt;in order to handle special chars like german umlauts...&lt;/p&gt;</description>
      <pubDate>Fri, 30 Jul 2010 20:43:45 UTC</pubDate>
      <guid>https://snipplr.com/view/38096/safe-strtolower</guid>
    </item>
    <item>
      <title>(PHP) DOMDocument - prevent empty tags // retrieve node without xml declaration - iroybot</title>
      <link>https://snipplr.com/view/34796/domdocument--prevent-empty-tags--retrieve-node-without-xml-declaration</link>
      <description>&lt;p&gt;the LIBXML parameter is what this snippet is about. Also this is one way to retrieve XML without having a  XML-declaration prepended &lt;?xml&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 May 2010 05:19:20 UTC</pubDate>
      <guid>https://snipplr.com/view/34796/domdocument--prevent-empty-tags--retrieve-node-without-xml-declaration</guid>
    </item>
    <item>
      <title>(PHP) Using different domains for different languages - iroybot</title>
      <link>https://snipplr.com/view/34121/using-different-domains-for-different-languages</link>
      <description>&lt;p&gt;courtesy of mark8barnes&lt;/p&gt;</description>
      <pubDate>Mon, 10 May 2010 06:42:47 UTC</pubDate>
      <guid>https://snipplr.com/view/34121/using-different-domains-for-different-languages</guid>
    </item>
    <item>
      <title>(PHP) Adding Rules to the WordPress WP_Rewrite - iroybot</title>
      <link>https://snipplr.com/view/34120/adding-rules-to-the-wordpress-wprewrite</link>
      <description>&lt;p&gt;courtesy of mark8barnes (http://wordpress.org/support/profile/52354)&lt;/p&gt;</description>
      <pubDate>Mon, 10 May 2010 06:39:52 UTC</pubDate>
      <guid>https://snipplr.com/view/34120/adding-rules-to-the-wordpress-wprewrite</guid>
    </item>
    <item>
      <title>(PHP) Reading external files - the safe way - iroybot</title>
      <link>https://snipplr.com/view/20465/reading-external-files--the-safe-way</link>
      <description>&lt;p&gt;this comes from YAPB plugin for WordPress. kudos to the author.&#13;
(there are some functions that are deprecated in PHP 5.2+ - you'll need to replace eregi with the mb_ version). This should be quite failsafe, regardless if curl is installed or the settings in your php.ini (allow_url_fopen), etc.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Sep 2009 08:51:18 UTC</pubDate>
      <guid>https://snipplr.com/view/20465/reading-external-files--the-safe-way</guid>
    </item>
    <item>
      <title>(PHP) HTML compression // white space removal - iroybot</title>
      <link>https://snipplr.com/view/19628/html-compression--white-space-removal</link>
      <description>&lt;p&gt;i know these regex stuff is rather slow, but still i like having slim documents. (don't forget to use gzip compression on all text docs)&lt;/p&gt;</description>
      <pubDate>Sat, 12 Sep 2009 10:15:24 UTC</pubDate>
      <guid>https://snipplr.com/view/19628/html-compression--white-space-removal</guid>
    </item>
    <item>
      <title>(PHP) PHP Paragrapher - iroybot</title>
      <link>https://snipplr.com/view/14560/php-paragrapher</link>
      <description>&lt;p&gt;Transform text (eg. from a WYSIWYG) into nicely formatted HTML paragraphs. (Credits: Ludo Magnocavallo's LightPress).&#13;
&#13;
[this is a solid starting point - but a lot of HTML elements are missing]&lt;/p&gt;</description>
      <pubDate>Wed, 29 Apr 2009 04:26:58 UTC</pubDate>
      <guid>https://snipplr.com/view/14560/php-paragrapher</guid>
    </item>
    <item>
      <title>(PHP) Pagination Madness - iroybot</title>
      <link>https://snipplr.com/view/12077/pagination-madness</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 10 Feb 2009 12:51:06 UTC</pubDate>
      <guid>https://snipplr.com/view/12077/pagination-madness</guid>
    </item>
    <item>
      <title>(PHP) Basic PHP Login and Forwarding - iroybot</title>
      <link>https://snipplr.com/view/11898/basic-php-login-and-forwarding</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 06 Feb 2009 07:35:21 UTC</pubDate>
      <guid>https://snipplr.com/view/11898/basic-php-login-and-forwarding</guid>
    </item>
    <item>
      <title>(PHP) Translator instanzieren - iroybot</title>
      <link>https://snipplr.com/view/11681/translator-instanzieren</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 30 Jan 2009 11:19:24 UTC</pubDate>
      <guid>https://snipplr.com/view/11681/translator-instanzieren</guid>
    </item>
    <item>
      <title>(PHP) Singleton Pattern - iroybot</title>
      <link>https://snipplr.com/view/11647/singleton-pattern</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 29 Jan 2009 07:56:40 UTC</pubDate>
      <guid>https://snipplr.com/view/11647/singleton-pattern</guid>
    </item>
  </channel>
</rss>
