Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1915
posted 17 years ago by johnself
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0
1313
posted 17 years ago by fabian
You have banners on your page for advertising? Then you have to randomize the order to be fair.
2
1234
posted 17 years ago by HenLen
Remove excess whitespaces from string
Remove espaços em branco em excesso de uma string
1
1529
posted 17 years ago by rafaelmt
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1
1853
posted 17 years ago by ecavazos
Когда нет под рукой дебаггера, а вÑÑ‘-таки хочетÑÑ Ð¿Ð¾Ñмотреть дамп маÑÑива или объекта,
приходит на помощь print_r() в коде… да вот вид не оче...
0
1217
posted 18 years ago by DeadLy
Arbol usado para mostrar categorias dentro de una lista
Cat1
==subcat11
Cat2
==subcat21
====subcat211
0
1173
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
1060
posted 18 years ago by bioascii
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1
1813
posted 18 years ago by berkes
Created for my own purposes, thought I'd share though ;)
copy paste at the top of your file and it does the magic :)
31
7881
posted 18 years ago by peteypablonz
SEE http://json.org/ for PHP JSON Libraries.
grunt knuckle drag brute force ugly escapes for quotes make a php array a json string
Produces trailing commas which some Javascript Librarys can't deal with.*
_*NOOB NOTE [a comma is added at the...
2
1873
posted 18 years ago by inkdeep