Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 14 15 16 17 18 ... 58
Just a short little script that takes a mysql query and turns it into a csv file that downloads automatically. If your interested in the details you can hit up the link.
0 2300 posted 15 years ago by FatFolderDesigner
Função para formatar datas em formato UNIX
0 1747 posted 15 years ago by Jotape
Verifica se o e-mail e o dominio são válidos.
1 1618 posted 15 years ago by Jotape
0 1504 posted 15 years ago by Jotape
0 1833 posted 15 years ago by Jotape
0 1710 posted 15 years ago by dato
0 1321 posted 15 years ago by isodinner
0 2142 posted 15 years ago by iloveitaly
Comes in handy for php magic functions such as __get and __set. This behaviour is fixed in php 5.3. Returns true also for private and protected properties using a reflectionclass
0 2080 posted 15 years ago by Roen
Useful snippet for getting a specific number of posts from a specific category, useful for news listing in sidebar
0 1813 posted 15 years ago by i-am-andy
Thanks to followgram.me you can read a public feed with your photos. Use this code to retrieve your Instagr.am photos and use them on your web.
0 2502 posted 15 years ago by ginoplusio
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 1661 posted 15 years ago by claudiowebdesign
I was working on a site that pulled in and republished a bunch of RSS feeds. Some contained duff images such as blank gifs that I needed to block so I wrote this function to compare the url of an image against a blacklist
0 2268 posted 15 years ago by paulo72
Instead of requiring the loop.php file in your custom themes you can use there two functions, placed in your functions.php file to not only automatically include it, but make a dead simple to filter sections out on a page by page basis negating the n...
0 1920 posted 15 years ago by FatFolderDesigner
WP Functions
0 2191 posted 15 years ago by silentpro
1 1754 posted 15 years ago by rahijain
0 1714 posted 15 years ago by rahijain
0 1565 posted 15 years ago by lucaborace
0 2262 posted 15 years ago by stur
0 1625 posted 15 years ago by stur
0 1758 posted 15 years ago by mafhh14
0 1925 posted 15 years ago by karmacode
0 1661 posted 15 years ago by jretamal
Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.
0 1995 posted 15 years ago by macodev
Verify if a user is a fan of a page
0 1717 posted 15 years ago by jretamal
0 2114 posted 15 years ago by antti
1 ... 14 15 16 17 18 ... 58