Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 20 21 22 23 24 ... 64
linkify twitter text status
0 1004 posted 14 years ago by global_1981
A php program to check whether two simple connected graphs are isomorphic.
0 1224 posted 14 years ago by trusktr
0 1144 posted 14 years ago by soup
Pull banner ad or image code from a given text file into an array and randomize the order. Banner/image codes in the file should be separated by tildes (~).
0 1353 posted 14 years ago by bluecap
the link explains how the XML is generated.
1 1313 posted 14 years ago by iroybot
Turns a Zend_Form object into XML data. Click the associated link to see an Example XML result and a XSL Stylesheet used to display regular HMTL.
1 1683 posted 14 years ago by iroybot
A recursive function to permute the items of an array. The function returns an array that contains many arrays, where each array is a permutation of the original array. This process can get intensive depending on how many items are in the initial arr...
0 1221 posted 14 years ago by trusktr
A print_r replacement function that can handle nested arrays and strings. Usage: printr($array);
0 1175 posted 14 years ago by tasmanweb
Parses a url correctly even with a url as query parameter, also retuns dirname, basename and extension besides the other parse_url bits. See comments for more info.
0 1514 posted 14 years ago by tasmanweb
Returns the number of days in the month taking leap-years into account.
0 1397 posted 14 years ago by tasmanweb
A better and more accurate function to see if a value is an integer.
0 1312 posted 14 years ago by tasmanweb
Add code in first line your page.
0 1169 posted 14 years ago by tcelestino
Place this at the top of your php files. This will remove white space and formatting from HTML, making it smaller and faster for download by your users.
0 1313 posted 14 years ago by trusktr
Do not forget to name images you want to use for background like 1.jpg, 2.jpg, 3.jpg etc.
0 1033 posted 14 years ago by ariunbolor
1 1456 posted 14 years ago by abelb
0 2315 posted 14 years ago by serialk89
Returns the video id for any type of youtube url that holds one.
2 2141 posted 14 years ago by KabuqueJoe
Returns all of the custom fields (meta data) from a page / post and assigns them all to a single session array for compactness
1 1447 posted 14 years ago by prwhitehead
Make sure your URL $_GET variables don't get repeated / duplicated when you are creating links / URLs dynamically.
0 2117 posted 14 years ago by prwhitehead
If your page has already sent headers to the browser you cant redirect with headers('Location:' . $url); But you can use the following:
0 1075 posted 14 years ago by prwhitehead
Add a login form to your wordpress themes frontend.
0 1602 posted 14 years ago by prwhitehead
Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
0 1162 posted 14 years ago by prwhitehead
Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
0 1680 posted 14 years ago by prwhitehead
Remove menu items from the wordpress admin
0 1313 posted 14 years ago by prwhitehead
To remove some of the lesser used edit post / page meta boxes:
0 1372 posted 14 years ago by prwhitehead
Create a sitemap in wordpress, including posts, categories and pages just use the [sitemap] shortcode within the post content and wordpress / the function does the rest.
0 1438 posted 14 years ago by prwhitehead
Create excerpts from text block from your wordpress content and add links page / post from the guid.
0 1470 posted 14 years ago by prwhitehead
0 1262 posted 14 years ago by blueocto
1 ... 20 21 22 23 24 ... 64