Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
claudiowebdesign's Recent SnippetsTagged php
- All /
« Prev 1 Next »
This is a little PHP class that permits to start quickly the creation of a webpage.
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, stylesh...
0
552
posted 12 years ago by claudiowebdesign
That's something quick. A basic php class to manage properly a database. Thanks to magic methods opening a database is almost automatic.
1
831
posted 12 years ago by claudiowebdesign
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...
0
531
posted 12 years ago by claudiowebdesign
A little function used to set cookies as arrays of values instead of single combinations key->value. Note that it saves values as a stack.
1
594
posted 13 years ago by claudiowebdesign