Welcome To Snipplr


Everyone's Recent Snippets



1 ... 356 357 358 359 360 ... 554
0 872 posted 15 years ago by joe-bbb
1 809 posted 15 years ago by fabianschoefisch
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 876 posted 15 years ago by benjaminpearson
Simple script that returns to us a list with possible TimeZones
0 1061 posted 15 years ago by AzizLight
0 827 posted 15 years ago by wearetherock
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 784 posted 15 years ago by bachya
0 967 posted 15 years ago by rareyman
0 855 posted 15 years ago by gd6d
0 830 posted 15 years ago by tclancy
Creates the table using the VB
0 1385 posted 15 years ago by staley412
The code to find all objects from a model and use them as select options.
1 1143 posted 15 years ago by smoothdzion
need to be reviewed
2 947 posted 15 years ago by bionickid
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 1049 posted 15 years ago by chrisaiv
0 911 posted 15 years ago by petethered
0 723 posted 15 years ago by svenkaemper
0 1015 posted 15 years ago by chrisaiv
For separating a list of categories with a comma that are linked. There may be a better way. Leave a comment if you have a better way. This was the first way I found that worked. This code increments the count 1 at a time. It applies the incre...
1 895 posted 15 years ago by smoothdzion
0 1064 posted 15 years ago by chrisaiv
Used to create checkboxes to select multiple categories for a post or any other type of applicable situation.
1 841 posted 15 years ago by smoothdzion
0 909 posted 15 years ago by Ateneatech
0 967 posted 15 years ago by iTony
Gets the outerHTML of a DOMElement. For a more optimal version check the URL.
0 1186 posted 15 years ago by Znupi
This is a snippet that will animate in a circle in a clockwise fashion based on the parameters the function is passed. It can be used to create a circular or clock wipe when used as a mask.
2 1255 posted 15 years ago by sottenad
Just updated for WP 3 (added wp_postmeta table for menus)! Test out the new installation thoroughly but everything should be fine, and your CMS should be running live on the new server!
0 972 posted 15 years ago by beneberle
1 ... 356 357 358 359 360 ... 554