Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 52 53 54 55 56 ... 147
Found This Code to make a stats page view for a client. Make Sure your header input format is PHP.
0 795 posted 13 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 812 posted 13 years ago by mentaljason
0 595 posted 13 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 720 posted 13 years ago by sdxxx
takes a url and appends http to it if http is not present
0 736 posted 13 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 879 posted 13 years ago by KabuqueJoe
Force download function that worked well, Thanks.
5 854 posted 13 years ago by devilspride
0 802 posted 13 years ago by mindshare
Clean up the crap in wp_head(). Put it in yo functions file.
1 826 posted 13 years ago by vagrantradio
This lists all the pages that are "Published", excluding the current one. Useful for a sitemap template.
0 564 posted 13 years ago by ToddSmithSalter
shortcode : [rss size="10" feed="http://wordpress.org/news/feed/" date="true"]
0 693 posted 13 years ago by nicomollet
This function can be used to validate an URL
0 834 posted 13 years ago by peckham
0 810 posted 13 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 592 posted 13 years ago by mindshare
3 747 posted 13 years ago by xhiena
0 812 posted 13 years ago by lafayette
You can use JUri object to extract the path or query string from a any url
0 942 posted 13 years ago by anagaiyahoocom
Cut PHP strings at full word breaks.
1 625 posted 13 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 655 posted 13 years ago by johnsardine
Simple force download crossbrowser
0 946 posted 13 years ago by Mosaic
1 ... 52 53 54 55 56 ... 147