Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 52 53 54 55 56 ... 147
0 1845 posted 14 years ago by Japan
Found This Code to make a stats page view for a client. Make Sure your header input format is PHP.
0 1231 posted 14 years ago by Onfire60
Simple, It gets the referer and if there wasn't a referer it displays just the home link, but when there is a referer it dispays both back and home, I personaly use this on my 404 page.
1 1540 posted 14 years ago by mentaljason
0 972 posted 14 years ago by dato
Date format guide: d = 01 to 12 ; m = 01 to 12 ; More formats: http://php.net/manual/en/function.date.php
1 1158 posted 14 years ago by sdxxx
takes a url and appends http to it if http is not present
0 1209 posted 14 years ago by vonlof
This function will transform any string to an seo url like string. It suports latin, french and german special characters. Example: applying the function to "Exemplo de aplicação da função" returns "exemplo-de-aplicacao-da-funcao"
2 1311 posted 14 years ago by KabuqueJoe
Force download function that worked well, Thanks.
5 1369 posted 14 years ago by devilspride
0 1372 posted 14 years ago by mindshare
Clean up the crap in wp_head(). Put it in yo functions file.
1 1297 posted 14 years ago by vagrantradio
This lists all the pages that are "Published", excluding the current one. Useful for a sitemap template.
0 939 posted 14 years ago by ToddSmithSalter
shortcode : [rss size="10" feed="http://wordpress.org/news/feed/" date="true"]
0 1153 posted 14 years ago by nicomollet
This function can be used to validate an URL
0 1365 posted 14 years ago by peckham
0 1265 posted 14 years ago by realpeterz
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.
0 975 posted 14 years ago by mindshare
3 1423 posted 14 years ago by xhiena
0 1368 posted 14 years ago by lafayette
You can use JUri object to extract the path or query string from a any url
0 1471 posted 14 years ago by anagaiyahoocom
Cut PHP strings at full word breaks.
1 1046 posted 14 years ago by mindshare
I did not created this, a friend provided it to me, and it seems really usefull so i thought i should share. Usage: Paste that code in your functions .php and in your theme you put <?php> where 20 is the number of words you want
0 1001 posted 14 years ago by johnsardine
1 ... 52 53 54 55 56 ... 147