Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



This will always show the correct date... so it'll say "Copyright 2008 Comapany Name" now, and at exactly midnight on 1st January 2009, it'll say "Copyright 2009 Company Name". Simple!
2 1837 posted 18 years ago by tigercore
A small function I made to chmod directories and files recursively, with different permissions.
2 2353 posted 18 years ago by Tenzer
Stolen from the mentioned URL - this is used to make SPRY Framework work together with MYSQL.
2 2071 posted 18 years ago by Nils
1 3070 posted 18 years ago by dbug13
0 1479 posted 18 years ago by Wiederkehr
The PHP Code appears in Post Comments
4 2811 posted 18 years ago by localhorst
0 1089 posted 18 years ago by chucktrukk
0 1151 posted 18 years ago by chucktrukk
2 1561 posted 18 years ago by dbug13
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
1 2103 posted 18 years ago by berkes
CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant 'weight loss'.
16 8534 posted 18 years ago by johnself
2 1978 posted 18 years ago by evanwalsh
Fallback Function for versions earlier then php5
0 1424 posted 18 years ago by razel
Fallback Function for versions earlier then php5
0 1310 posted 18 years ago by razel
Fallback Function for versions earlier then php5
0 1658 posted 18 years ago by razel
In light of last nights tornado warnings here in TN, I thought it appropriate to post this little bit of code that I use to alert myself and others of dangerous weather conditions via SMS/Email alerts. I run this through cron at Dreamhost without...
9 2106 posted 18 years ago by johnself
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0 1448 posted 18 years ago by fabian
need the magpie code
1 1332 posted 18 years ago by fritz
2 1443 posted 18 years ago by halbtuerke
You have banners on your page for advertising? Then you have to randomize the order to be fair.
2 1358 posted 18 years ago by HenLen
Remove excess whitespaces from string Remove espaços em branco em excesso de uma string
1 1672 posted 18 years ago by rafaelmt
This snippet references the data access class I linked to.
4 1845 posted 18 years ago by ecavazos
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1 2015 posted 18 years ago by ecavazos
Когда нет под рукой дебаггера, а всё-таки хочется посмотреть дамп массива или объекта, приходит на помощь print_r() в коде… да вот вид не оче...
0 1348 posted 18 years ago by DeadLy
1 1431 posted 18 years ago by Cory
2 2372 posted 18 years ago by Cory
Arbol usado para mostrar categorias dentro de una lista Cat1 ==subcat11 Cat2 ==subcat21 ====subcat211
0 1304 posted 18 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 1175 posted 18 years ago by bioascii