Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 128 129 130 131 132 ... 147
The right way to send a mail with POST params
2 2304 posted 18 years ago by gfazioli
This is saved from Gerhard Slettens weblog www.gersh.no. I just want yo keep it on snipplr so it easily can be fetched through textmate.
15 9889 posted 18 years ago by stavelin
Pre-selects an html form with a requested value... ie; editing a form from a database
0 2037 posted 18 years ago by davidsword
it needs the GD2 library
5 2369 posted 18 years ago by iTony
an array of US states
0 2039 posted 18 years ago by benrasmusen
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 1670 posted 18 years ago by Jaymoon
Allows you preserve and update a query string and it's existing values easily, instead of constantly appending the new value to the end of the query string
1 2179 posted 18 years ago by simplistik
simple :)
7 2432 posted 18 years ago by antpaw
0 2181 posted 18 years ago by septimoc
I always forget how to do this...
2 2211 posted 18 years ago by davidsword
I'm working on a web app that requires me to track nearly 300 form fields. To make this easier, and to allow me to handle special cases, I needed to assign them to an internal array. The switch/case statement makes this a breeze.
1 1921 posted 18 years ago by mdrisser
1 1851 posted 18 years ago by stancell
0 2029 posted 18 years ago by iTony
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
1 3598 posted 18 years ago by gfazioli
Word Cut Function
2 1762 posted 18 years ago by gfazioli
0 2140 posted 18 years ago by ezerick
0 2106 posted 18 years ago by stavelin
Repeatable Fisher Yates Array Shuffle based on given random string. If no seed is provided the current second will be used (not to use as a pure random shuffle... based on microseconds)
0 2374 posted 18 years ago by digdan
This function will allow you to use '#ABCDEF' or '0xEEFF33' instead of the RGB values required for imagecolorallocate() by stripping away any non hex characters. It will also check and make sure that it's a valid 6 digit hex value after the stripping...
0 1767 posted 18 years ago by Jacolyte
The plugin's "shave_all" function was not properly cropping and resizing the thumbnails for me. The following needs to be changed in sfImageMagickAdapter.class.php
1 1773 posted 18 years ago by catchamonkey
0 2019 posted 18 years ago by xuanyan
1 ... 128 129 130 131 132 ... 147