Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 94 95 96 97 98 ... 147
0 1284 posted 15 years ago by landonmiller
Because htmlentities just doesn't cut it. Recently needed this to work with 3rd part software, ended up having to make it pretty robust so thought I'd share!
0 1045 posted 15 years ago by dom111
0 1256 posted 15 years ago by maryann
1 1172 posted 15 years ago by maryann
use this code between loops
0 1144 posted 15 years ago by BoNzO
1 1002 posted 15 years ago by jzumbrun
This snippet is useful if you want to include partials of another admin generated module into the current one (at runtime). This is necessary to *always* make sure that the partial is available, even after clearing the cache. And this is not always t...
0 1170 posted 15 years ago by dreadwarrior
Verified working for WP v2.9.1
1 1553 posted 15 years ago by johnandrewsroot
Use this code in a WordPress template with the Geo Mashup plugin (see URL) to include a global map within a post or page, centered on that post or page's location, with marker highlighted.
0 1231 posted 15 years ago by cyberhobo
I include this in anything I'm developing, so I can easily inspect the contents of arrays and objects.
0 1465 posted 15 years ago by joshuamilford
Function to fix char set and collation on mysql tables, see [this link](http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/ "Fix encoding on db") for examples and more infos.
1 1919 posted 15 years ago by ginoplusio
0 1047 posted 15 years ago by sismevu
0 1108 posted 15 years ago by karmacode
Here is a function you can use to automatically set up a complex folder structure with a specified file mode. All you have to do is create the "root" directory and pass an array describing the folder structure you would like to create in it. If the d...
0 1172 posted 15 years ago by chlab
1 1093 posted 15 years ago by jodm
To use it, simply create a new folder called “art-direction” in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, Wo...
0 1262 posted 15 years ago by gd6d
0 1147 posted 15 years ago by browncardigan
0 1101 posted 15 years ago by hstothard
0 1077 posted 15 years ago by hstothard
1 1050 posted 15 years ago by hstothard
0 1005 posted 15 years ago by hstothard
This is useful for escaping multiple values in a POST array.
0 1479 posted 15 years ago by bradless
1 ... 94 95 96 97 98 ... 147