Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 189 190 191 192 193 ... 553
If a MySQL DB for WordPress is encoded as latin1, these steps will prevent utf8 encoding issues.
0 1710 posted 15 years ago by theriddlebrothers
If you run a query to delete old posts manually from MySQL in a WordPress database, the old tags will remain and appear in your tag cloud/listing. This allows you to identify those unused tags, and then delete them with an additional query.
0 1340 posted 15 years ago by theriddlebrothers
0 1510 posted 15 years ago by theriddlebrothers
Add an Apache virtual host via command line. Run as ./create mysite.domain.com
0 1357 posted 15 years ago by theriddlebrothers
Snippet from http://www.luscarpa.com/
0 1694 posted 15 years ago by theriddlebrothers
0 1104 posted 15 years ago by PubliOne
Cache control when pulling in scripts, redefined "getScript" function
0 1668 posted 15 years ago by lamebollock
5 1889 posted 15 years ago by vestimir
2 1420 posted 15 years ago by janvdm
2 1238 posted 15 years ago by janvdm
0 1345 posted 15 years ago by Sullan
this took me forever to figure out!
0 1237 posted 15 years ago by discipolo
JS to be perfomed on the users first visit to a page
0 1396 posted 15 years ago by primitiveshaun
0 1394 posted 15 years ago by r2cgroup
Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated. Features * Protect all emails and mailto links * Check posts, widgets, comments and RSS feeds * Encode...
0 2874 posted 15 years ago by freelancephp
View class that contains features like: - get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( 'var1', 'defaultValue' ) - factory method for direct chaining: Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0 1460 posted 15 years ago by freelancephp
Simple ajax object for creating ajax calls. Why use SimpleAjax? - Very small, only 2kb minified - Make a asynchrone or synchrone ajax call ( AJAX / SJAX ) - Use quick methods get() and post() for GET and POST calls - Use load() method for...
0 1297 posted 15 years ago by freelancephp
0 1486 posted 15 years ago by coder_
This function empties the folder recursively. Two parameters are passed in the function, First one is the directory to be emptied and second one is the flag to determine whether to delete the given folder. If set 'true', given folder is also removed...
0 1844 posted 15 years ago by nilambar
1 2728 posted 15 years ago by alp
1 1617 posted 15 years ago by alp
this centers an image of unknown size vertically and horizontally within a box
1 1958 posted 15 years ago by alp
1 ... 189 190 191 192 193 ... 553