Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
588
posted 13 years ago by abelperez
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
651
posted 13 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
735
posted 13 years ago by brownrl
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
721
posted 13 years ago by bluecap
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
1237
posted 13 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
911
posted 13 years ago by KabuqueJoe
This will extract page handle between last slash and .html
0
720
posted 13 years ago by anagaiyahoocom