Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 20 21 22 23 24 ... 58
Useful function for taking the title of an Article or keyword phrase and converting it into an SEO friendly version that can be used in a URL. For example, the title "German Cars are amazing" would be transformed into "german-cars-are-amazing".
1 1314 posted 15 years ago by abelperez
Just a simple php insert script.
0 1512 posted 15 years ago by JonnySnip3r
Very basic dont judge!
0 1703 posted 15 years ago by JonnySnip3r
0 1559 posted 15 years ago by pootify
Use this to page cache your pages. Will save page output to a file. Will check file modified date to get from file or retrieve again
1 1332 posted 15 years ago by anagaiyahoocom
Some times you need to generate a code for a field in a db and that code can't be repeated either... Yes, I know that if two people submit their data at almost the exact same time that it could be possible that they have the same code. OMG OMG OMG...
0 1436 posted 15 years ago by brownrl
0 1229 posted 15 years ago by ryanstewart
0 1504 posted 15 years ago by rahijain
11 3477 posted 15 years ago by frederichoule
If a string exceeds x characters (defaults to 100), trims the string to the first x characters and appends a tail to the end of the truncated string (defaults to an ellipsis).
0 1576 posted 15 years ago by bluecap
0 1080 posted 15 years ago by dbugger
0 1524 posted 15 years ago by jHulbert
0 1737 posted 15 years ago by supermauerbros
This generates a simple insert statement for mysql based on all the variables in $_GET or $_POST using a simple page. It does not do the inserts although that is a simple addition - just builds and displays your insert statement.
1 2243 posted 15 years ago by kidmizere
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 1718 posted 15 years ago by KabuqueJoe
Force download function that worked well, Thanks.
5 1730 posted 15 years ago by devilspride
0 1748 posted 15 years ago by mindshare
This function can be used to validate an URL
0 1771 posted 15 years ago by peckham
0 1654 posted 15 years ago by realpeterz
0 1768 posted 15 years ago by lafayette
Cut PHP strings at full word breaks.
1 1410 posted 15 years ago by mindshare
0 1637 posted 15 years ago by rahijain
0 1300 posted 15 years ago by ericmuyser
This will extract page handle between last slash and .html
0 1460 posted 15 years ago by anagaiyahoocom
1 1488 posted 15 years ago by Risse
probably confusing. it's my first class. not pretty but it works
0 2083 posted 15 years ago by cdog
1 ... 20 21 22 23 24 ... 58