<?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 18:09:25 +0000</lastBuildDate>
    <item>
      <title>(PHP) Document.class.php - claudiowebdesign</title>
      <link>https://snipplr.com/view/60011/documentclassphp</link>
      <description>&lt;p&gt;This is a little PHP class that permits to start quickly the creation of a webpage.&#13;
&#13;
When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesheets, scripts, etc.) until the .&#13;
&#13;
Everything you write after that gets actually placed inside the body, and when the page ends the and tags gets automatically added at the bottom.&#13;
&#13;
In addition to this, the class gets your IP so to display all the possible error/warning messages to you and none to the random users.&#13;
&#13;
EXAMPLES/USAGE: http://claudiobonifazi.com/snippets/Document&lt;/p&gt;</description>
      <pubDate>Fri, 21 Oct 2011 02:15:20 UTC</pubDate>
      <guid>https://snipplr.com/view/60011/documentclassphp</guid>
    </item>
    <item>
      <title>(PHP) Database php class - claudiowebdesign</title>
      <link>https://snipplr.com/view/59434/database-php-class</link>
      <description>&lt;p&gt;That's something quick. A basic php class to manage properly a database. Thanks to magic methods opening a database is almost automatic.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Oct 2011 09:31:06 UTC</pubDate>
      <guid>https://snipplr.com/view/59434/database-php-class</guid>
    </item>
    <item>
      <title>(PHP) Mostrare differenze di tempo come stringhe - claudiowebdesign</title>
      <link>https://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe</link>
      <description>&lt;p&gt;Questa piccola funzione riceve come argomento uno unix timestamp e ritorna una stringa contenente la "descrizione verbosa" della differenza di tempo. Ad esempio, usando il timestamp relativo a 5 minuti e mezzo fa, ritornerÃ  la stringa "5 minuti e 30 secondi fa".&#13;
nota: Funziona anche con timestamp nel futuro, e dando il timestamp attuale ritorna "Adesso".&lt;/p&gt;</description>
      <pubDate>Mon, 22 Aug 2011 02:42:39 UTC</pubDate>
      <guid>https://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe</guid>
    </item>
    <item>
      <title>(PHP) Return the name of a day as a string - claudiowebdesign</title>
      <link>https://snipplr.com/view/57985/return-the-name-of-a-day-as-a-string</link>
      <description>&lt;p&gt;That snippet return the name of the day (in Italian, but you can easily change that). Giving a value to $offset permits to refer to a day that isn't today, and setting $short to True permits to return a three character shorthand.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:07:25 UTC</pubDate>
      <guid>https://snipplr.com/view/57985/return-the-name-of-a-day-as-a-string</guid>
    </item>
    <item>
      <title>(PHP) Setting cookies like stack arrays - claudiowebdesign</title>
      <link>https://snipplr.com/view/46383/setting-cookies-like-stack-arrays</link>
      <description>&lt;p&gt;A little function used to set cookies as arrays of values instead of single combinations key-&gt;value. Note that it saves values as a stack.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Jan 2011 06:39:07 UTC</pubDate>
      <guid>https://snipplr.com/view/46383/setting-cookies-like-stack-arrays</guid>
    </item>
  </channel>
</rss>
