Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 42 43 44 45 46 ... 147
0 1377 posted 14 years ago by alp
0 1472 posted 14 years ago by alp
0 1099 posted 14 years ago by grgcnnr
0 1379 posted 14 years ago by ronal
0 1271 posted 14 years ago by grgcnnr
0 1381 posted 14 years ago by olemedia
Use this to add alternating rows in PHP.
0 1369 posted 14 years ago by mindshare
0 2502 posted 14 years ago by ronal
use the magento developer IP
0 1612 posted 14 years ago by nico65
Nothing revolutionary, just a simple implementation. A reworking from Brian Cray's source code: http://briancray.com/2009/08/21/tweeted-links-twitter-api-php-cache/ Note: requires creating a cache file, '/caches/twitter', relative to source.
0 1632 posted 14 years ago by richardmaisano
A simple function that will split a given string into sentences, and then return the number of sentences specified. Quick and dirty.
0 1287 posted 14 years ago by adamturtle
Twitter have changed their api, and using the old twitter.com?status=… doesn't work anymore. This uses the new 'Web Intents' method.
0 1318 posted 14 years ago by adamturtle
To enablefeatured image on a post, just open your theme’s functions.php file, paste in the code below, and voila!
0 1505 posted 14 years ago by xavsio4
By putting the following code in your theme’s functions.php file, you create two extra sizes:
0 1256 posted 14 years ago by xavsio4
Function to print breadcrumb links
1 1341 posted 14 years ago by stewartduffy
If you want to be able to use shortcodes in WordPress widgets, place the snippet below into your functions.php, or custom_functions.php file
0 1278 posted 14 years ago by codepunk
Tiny script to write a daily logfile with the serverload. Can be run every X minutes using a cron for example. Result in logfile: 13.40 | 2.45 2.45 2.43 13.45 | 1.62 2.02 2.25
0 1499 posted 14 years ago by remko
Universal WordPress function for thumbnails
0 1177 posted 14 years ago by gn_themes
1 ... 42 43 44 45 46 ... 147