Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You have banners on your page for advertising? Then you have to randomize the order to be fair.
2
485
posted 16 years ago by HenLen
Remove excess whitespaces from string
Remove espaços em branco em excesso de uma string
1
754
posted 16 years ago by rafaelmt
used as "http://www.somesite.com/index.php?xcr=page.php"
page.php is plugged into the template index.php which hold the shell of a site.
0
1291
posted 16 years ago by withremote
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1
793
posted 16 years ago by ecavazos
This function will return the height and width of an image that will change if the height/width is greater than the maximum supplied width and height.
2
608
posted 16 years ago by dmlanger
En la pagina hay mas info sobre otras funciones de validacion para php5
0
610
posted 16 years ago by lisandro
A simple but usefull smarty plugin to convert a unix timestamp to any date format.
Usage: {$var|convertunix:"d-m-Y"}
2
929
posted 16 years ago by FrankBr
Когда нет под рукой дебаггера, а вÑÑ‘-таки хочетÑÑ Ð¿Ð¾Ñмотреть дамп маÑÑива или объекта,
приходит на помощь print_r() в коде… да вот вид не оче...
0
576
posted 16 years ago by DeadLy
Arbol usado para mostrar categorias dentro de una lista
Cat1
==subcat11
Cat2
==subcat21
====subcat211
0
592
posted 16 years ago by lisandro
This function allows you to limit the amount of a string, like a sample from a post.
Create a file like function_lmt_txt.php and include it to use it.
Any comments to improve this are welcomed.
1
538
posted 16 years ago by bioascii
If you had seen some errors in the code, please send me notice about it on the: [email protected]
Thanks, K.Karpenko
1
659
posted 16 years ago by LoRd1990
Taken from : http://www.phpfreechat.net/forum/viewtopic.php?pid=7587
See also this class : http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2205
1
480
posted 16 years ago by clapfouine
Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme.
From here on, you can add theme functions like...
2
789
posted 16 years ago by berkes