Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 40 41 42 43 44 ... 63
used to find content that uses the PHP input filter....useful for upgrading core!
0 2010 posted 16 years ago by ReeceMarsland
Funcion para eliminar los acentos, caracteres que no sean numeros o letras y los espacios blancos. Muy util para renombrar los archivos antes de subirlos al server
0 1773 posted 16 years ago by jacinmontava
Here are a few examples that show how the relationship between objects and references
0 1779 posted 16 years ago by chrisaiv
1 1944 posted 16 years ago by gfazioli
Put in the project's .project file.
0 1832 posted 16 years ago by codegoat
0 2069 posted 16 years ago by AzizLight
Proper enumerations in PHP are hard to come by. This uses a class as a pseudo enumeration. Sometimes you'll want to lookup the string name side of the enum when you have the value (ie, you have "1" and you want the string "Flood").
0 1759 posted 16 years ago by benjaminpearson
Simple script that returns to us a list with possible TimeZones
0 2097 posted 16 years ago by AzizLight
This function takes a start time, an end time, and an interval ("step size"). It returns an array of times separated by that interval between the start time and end time (similar to what Google Calendar does). The keys of the array are the number o...
2 1619 posted 16 years ago by bachya
Dates and Time are always important to understand in any language. PHP has some rockin' functions but here are a few that I use the most.
0 1905 posted 16 years ago by chrisaiv
0 1811 posted 16 years ago by chrisaiv
0 1928 posted 16 years ago by chrisaiv
0 1851 posted 16 years ago by iTony
The following are instructions to "re-post" files that have been already been POSTed to your php script. This can help if you want to have a form (with file upload) that POSTs its data to your own script where the text elements can be handled and the...
2 2524 posted 16 years ago by benjaminpearson
This is a simple search function for the [User Groups](http://www.dabbledoo.com/design/docs/User-Groups-Module/) module for ExpressionEngine. It searches groups (names and descriptions) as well as topics and topic replies. It respects group types as...
0 2231 posted 16 years ago by lukemcr
In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
2 2648 posted 16 years ago by joelhaus
A function i made for running trim on all elements in an array
1 2224 posted 16 years ago by Knarf
Inserts a block with the id of 26
1 1762 posted 16 years ago by nate63179
A very simple class that quickly gets you interacting with a database, as long as you know sql :P.
1 2682 posted 16 years ago by r3morse
0 1619 posted 16 years ago by Actuarybrad
0 2372 posted 16 years ago by petrafull
1 1832 posted 16 years ago by ReeceMarsland
1 1772 posted 16 years ago by ReeceMarsland
1 1741 posted 16 years ago by ReeceMarsland
0 1702 posted 16 years ago by garretjames
provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
2 5210 posted 16 years ago by acosonic
- fields on db with utf8_general_ci collation - make this query after any connection - put meta charset utf8 - read and write strings without problems
0 1831 posted 17 years ago by ginoplusio
1 ... 40 41 42 43 44 ... 63