Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 53 54 55 56 57 ... 64
0 464 posted 14 years ago by Wiederkehr
1 531 posted 14 years ago by stavelin
Function replaces all non-alpha-numeric chars and cleans up a text string. Should output a usable URL for almost all text.
1 615 posted 14 years ago by DaveChild
To use the resize function you must pass in the forced width, forced height, source image, and destination image. The function then uses the GD2 library functions to read the source image's size. It will then calculate the new image's size based off...
3 552 posted 14 years ago by Jenhale
0 471 posted 14 years ago by sebus
0 588 posted 14 years ago by conspirator
0 628 posted 14 years ago by conspirator
1 596 posted 14 years ago by ghwilson4456
The right way to send a mail with POST params
2 504 posted 14 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 937 posted 14 years ago by stavelin
0 1066 posted 14 years ago by Paco
Pre-selects an html form with a requested value... ie; editing a form from a database
0 481 posted 14 years ago by davidsword
it needs the GD2 library
5 554 posted 14 years ago by iTony
an array of US states
0 575 posted 14 years ago by benrasmusen
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 398 posted 14 years ago by Jaymoon
simple :)
7 560 posted 14 years ago by antpaw
0 605 posted 14 years ago by septimoc
0 490 posted 14 years ago by conspirator
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 471 posted 14 years ago by mdrisser
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
1 666 posted 14 years ago by gfazioli
Word Cut Function
2 411 posted 14 years ago by gfazioli
0 610 posted 14 years ago by ezerick
2 613 posted 14 years ago by tclancy
Description print_r - Prints human-readable information about a variable mixed print_r( mixed expression [, bool return] ) print_r() displays information about a variable in a way that's readable by humans. Parameters * expression...
0 462 posted 14 years ago by ianmonge
0 481 posted 14 years ago by stavelin
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 430 posted 14 years ago by Jacolyte
1 ... 53 54 55 56 57 ... 64