Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 49 50 51 52 53 ... 58
it needs the GD2 library
5 1919 posted 17 years ago by iTony
an array of US states
0 1594 posted 17 years ago by benrasmusen
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 1286 posted 17 years ago by Jaymoon
simple :)
7 1936 posted 17 years ago by antpaw
0 1676 posted 17 years ago by septimoc
0 1570 posted 17 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 1469 posted 17 years ago by mdrisser
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
1 3016 posted 17 years ago by gfazioli
Word Cut Function
2 1324 posted 17 years ago by gfazioli
0 1730 posted 17 years ago by ezerick
0 1643 posted 17 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 1382 posted 17 years ago by Jacolyte
This will print every number from 0000-9999. Each number is comma separated. The goal was not pretty / readable code, but to get all code on a single line.
0 1108 posted 17 years ago by tgpo
1 1998 posted 17 years ago by plasticated
1 1271 posted 17 years ago by iTony
write this in your .htaccess links are going to look like this yourpage.de/yourVariableValue1/yourVariableValue2/ [NC] will remove the case sensitivity of your static words like "admin" its going to work, even if you type yourpage.de/a...
2 1582 posted 17 years ago by antpaw
0 1433 posted 17 years ago by goo
1 1452 posted 17 years ago by goo
This is a simple function that will take a folder path and remove all of its contents including files and directories.
0 1627 posted 17 years ago by aristoworks
3 1576 posted 17 years ago by antpaw
1 1189 posted 17 years ago by LondonWeb
14 3034 posted 17 years ago by iTony
If you have a title, for something like a blog or product, and want to make an seo-friendly name to call it, here is a function. SAMPLE INPUT: $title = "This foo's bar is rockin' cool!"; echo make_seo_name($title); //RETURNS: //this-foos-bar-i...
10 3770 posted 17 years ago by jdstraughan
3 2083 posted 17 years ago by benphelps
1 1702 posted 17 years ago by cristiana
1 ... 49 50 51 52 53 ... 58