Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
973
posted 12 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
502
posted 12 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
665
posted 12 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
539
posted 12 years ago by FatFolderDesigner
Simple call imageExists('http://example.com/image.jpg');
true if it exists else false.
0
762
posted 12 years ago by MichaelM
En algunos escenarios es posible que ante ciertas acciones o resultados, debamos modificar algún valor que se encuentra en la configuración general de Magento.
Para modificar un valor de la configuración general de forma programática (si, suen...
0
496
posted 12 years ago by necode
used as so
<style>
.logo {
background: url("<?php>") no-repeat right 5px;
}
</style>
or
<img src="<?php>"/>
0
678
posted 12 years ago by alyssonweb
WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necess...
0
633
posted 12 years ago by paulgrenwood