<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 21 Aug 2008 20:21:20 GMT</pubDate>
<item>
<title>(PHP) Clean Out A Folder - Remove A Folders Complete Contents - aristoworks</title>
<link>http://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents/</link>
<description><![CDATA[ <p>This is a simple function that will take a folder path and remove all of its contents including files and directories.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 14:41:00 GMT</pubDate>
<guid>http://snipplr.com/view/7973/clean-out-a-folder--remove-a-folders-complete-contents/</guid>
</item>
<item>
<title>(PHP) Get Current URL - mikegreen</title>
<link>http://snipplr.com/view/7972/get-current-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 13:57:34 GMT</pubDate>
<guid>http://snipplr.com/view/7972/get-current-url/</guid>
</item>
<item>
<title>(SQL) Functions in postgres - mavallad</title>
<link>http://snipplr.com/view/7971/functions-in-postgres/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 13:42:18 GMT</pubDate>
<guid>http://snipplr.com/view/7971/functions-in-postgres/</guid>
</item>
<item>
<title>(Lisp) test - najja</title>
<link>http://snipplr.com/view/7970/test/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 12:00:50 GMT</pubDate>
<guid>http://snipplr.com/view/7970/test/</guid>
</item>
<item>
<title>(PHP) Related nodes to the current node by taxonomy term (2) - aleprieto</title>
<link>http://snipplr.com/view/7969/related-nodes-to-the-current-node-by-taxonomy-term-2/</link>
<description><![CDATA[ <p>Here is a simpler list format without the Term name, sorted by date, filtered for published and images, and is rendered correctly by the theme.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:31:00 GMT</pubDate>
<guid>http://snipplr.com/view/7969/related-nodes-to-the-current-node-by-taxonomy-term-2/</guid>
</item>
<item>
<title>(PHP) Related nodes to the current node by taxonomy term (1) - aleprieto</title>
<link>http://snipplr.com/view/7968/related-nodes-to-the-current-node-by-taxonomy-term-1/</link>
<description><![CDATA[ <p>Use the code below to build a custom block that shows the related nodes to the current node by taxonomy term. For example: If the current node in display has a taxonomy term "fish", a bunch of links that link to nodes that have the "fish" term is to be shown in a block on the page.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:29:09 GMT</pubDate>
<guid>http://snipplr.com/view/7968/related-nodes-to-the-current-node-by-taxonomy-term-1/</guid>
</item>
<item>
<title>(PHP) Block that displays terms in a vocabulary as a list of links - aleprieto</title>
<link>http://snipplr.com/view/7967/block-that-displays-terms-in-a-vocabulary-as-a-list-of-links/</link>
<description><![CDATA[ <p>This is a simple little block that displays a list of terms in a vocabulary as a list of links to /taxonomy/term/tid pages. Items are listed in the order set for the vocabulary. You could probably use the php sort() function to change that if desired.

Be sure to change the $vid to reflect the vocabulary id of the vocabulary you wish to list. Also, you can change the "taxonomy/term/$term->tid" to any path you wish.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:25:03 GMT</pubDate>
<guid>http://snipplr.com/view/7967/block-that-displays-terms-in-a-vocabulary-as-a-list-of-links/</guid>
</item>
<item>
<title>(PHP) Drupal: Add node content into block depending on page ID - aleprieto</title>
<link>http://snipplr.com/view/7966/drupal-add-node-content-into-block-depending-on-page-id/</link>
<description><![CDATA[ <p>Fairly simple way to match sidebar content with the main content for several pages without the need to create multiple blocks or the hassle of putting content in a block.

For example, your Home, About and Contact pages all have a sidebar with some accompanying content which is different for each.

   1. Create pages (nodes) for each of the sidebar content and note the node ID.
   2. Add a block and paste in this code snippet
   3. Edit the Switch/Case part of this snippet for your nodes
   4. Enable the block for content/* and node/*</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:19:26 GMT</pubDate>
<guid>http://snipplr.com/view/7966/drupal-add-node-content-into-block-depending-on-page-id/</guid>
</item>
<item>
<title>(PHP) Drupal RelatedContent module: Block with links to related content - aleprieto</title>
<link>http://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content/</link>
<description><![CDATA[ <p>This code snippet make use of the API to accomplish a block with links to related content.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 10:15:20 GMT</pubDate>
<guid>http://snipplr.com/view/7965/drupal-relatedcontent-module-block-with-links-to-related-content/</guid>
</item>
<item>
<title>(Other) amfphp - Meestercor</title>
<link>http://snipplr.com/view/7964/amfphp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 09:50:50 GMT</pubDate>
<guid>http://snipplr.com/view/7964/amfphp/</guid>
</item>
<item>
<title>(PHP) Show mysql query log with firebug - stancell</title>
<link>http://snipplr.com/view/7963/show-mysql-query-log-with-firebug/</link>
<description><![CDATA[ <p>Replace all mysql_query() calls in your project to debug_mysql_query() to see all mysql queries in Firebug console.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 08:55:21 GMT</pubDate>
<guid>http://snipplr.com/view/7963/show-mysql-query-log-with-firebug/</guid>
</item>
<item>
<title>(PHP) Read more PHP - antpaw</title>
<link>http://snipplr.com/view/7961/read-more-php/</link>
<description><![CDATA[ <p>This one will display the first 200 characters and then search for . to stop.</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 05:25:41 GMT</pubDate>
<guid>http://snipplr.com/view/7961/read-more-php/</guid>
</item>
<item>
<title>(Windows PowerShell) arp request replay - cirio</title>
<link>http://snipplr.com/view/7960/arp-request-replay/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 04:24:06 GMT</pubDate>
<guid>http://snipplr.com/view/7960/arp-request-replay/</guid>
</item>
<item>
<title>(Rails) Pass dynamic javascript parameters with ajax call - pmaciver</title>
<link>http://snipplr.com/view/7959/pass-dynamic-javascript-parameters-with-ajax-call/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Aug 2008 03:25:40 GMT</pubDate>
<guid>http://snipplr.com/view/7959/pass-dynamic-javascript-parameters-with-ajax-call/</guid>
</item>
<item>
<title>(C#) Manually Send and SMTP Message - rengber</title>
<link>http://snipplr.com/view/7958/manually-send-and-smtp-message/</link>
<description><![CDATA[ <p>Mail might not send from user different from current domain or to user in ouside domain.   
Data section terminated by CRLF.CRLF</p> ]]></description>
<pubDate>Thu, 21 Aug 2008 00:19:41 GMT</pubDate>
<guid>http://snipplr.com/view/7958/manually-send-and-smtp-message/</guid>
</item>
<item>
<title>(Python) IMAP Backup Script - denilw</title>
<link>http://snipplr.com/view/7955/imap-backup-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Aug 2008 22:36:00 GMT</pubDate>
<guid>http://snipplr.com/view/7955/imap-backup-script/</guid>
</item>
<item>
<title>(CSS) My CSS Reset - antpaw</title>
<link>http://snipplr.com/view/7954/my-css-reset/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Aug 2008 16:17:16 GMT</pubDate>
<guid>http://snipplr.com/view/7954/my-css-reset/</guid>
</item>
<item>
<title>(PHP) MySQL connection with PHP - antpaw</title>
<link>http://snipplr.com/view/7953/mysql-connection-with-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Aug 2008 16:14:46 GMT</pubDate>
<guid>http://snipplr.com/view/7953/mysql-connection-with-php/</guid>
</item>
<item>
<title>(PHP) PHP Create Thumbnail Images - goo</title>
<link>http://snipplr.com/view/7952/php-create-thumbnail-images/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Aug 2008 15:23:50 GMT</pubDate>
<guid>http://snipplr.com/view/7952/php-create-thumbnail-images/</guid>
</item>
<item>
<title>(JavaScript) WYSIWYG Editor - LondonWeb</title>
<link>http://snipplr.com/view/7950/wysiwyg-editor/</link>
<description><![CDATA[ <p>insert a WYSIWYG after Textarea</p> ]]></description>
<pubDate>Wed, 20 Aug 2008 12:40:38 GMT</pubDate>
<guid>http://snipplr.com/view/7950/wysiwyg-editor/</guid>
</item>
</channel>
</rss>