Welcome To Snipplr


Everyone's Recent PHP Snippets



This function first checks to see if PHP is set to automagically quote stuff. If it is, we first strip pre-quoted stuff, then (assuming our text isn't numeric), we properly quote everything. A good bit of room for improvement here, but at the very l...
1 585 posted 17 years ago by sorehead
ADD 0 to 1!
0 566 posted 17 years ago by sorehead
0 1886 posted 17 years ago by sorehead
Include Path PHP 5 class. Usage: $path = new fuselogic_include_path(); $path->add('/home/ekobudi/www/fuselogic'); $path->add('/home/ekobudi/www/pear'); $path->remove('/home/ekobudi/www/old_fuselgic');
0 669 posted 17 years ago by ekobudisetiyo
1 372 posted 17 years ago by lucidcrew
0 527 posted 17 years ago by gdonald
0 536 posted 17 years ago by gdonald
0 724 posted 17 years ago by gdonald
2 907 posted 17 years ago by gdonald
3 666 posted 17 years ago by gdonald
0 625 posted 17 years ago by gdonald
0 427 posted 17 years ago by collin
7 788 posted 17 years ago by gdonald
1 555 posted 17 years ago by gdonald
1 648 posted 17 years ago by gdonald
1 509 posted 17 years ago by gdonald
2 667 posted 17 years ago by gdonald
1 879 posted 17 years ago by gdonald
1 525 posted 17 years ago by gdonald
1 622 posted 17 years ago by gdonald
3 653 posted 17 years ago by gdonald
1 639 posted 17 years ago by gdonald
2 615 posted 17 years ago by gdonald
Use this to format a phone number for display on a page.
1 787 posted 17 years ago by fbnewtz
1 684 posted 17 years ago by mikeejay
0 487 posted 17 years ago by Corhol
A simple function to check if the request comes from an AJAX XMLHttpRequest. Use it if your page should behave differently when called from AJAX. Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/
29 5596 posted 17 years ago by TC
7 613 posted 17 years ago by smilylion
admin panel for php scripts with a login form elaborated by a function.php page, then an upload form with canc option
2 1075 posted 17 years ago by dandyna
Generates a random string of variable length.
11 933 posted 17 years ago by javierarce