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 579 posted 17 years ago by sorehead
ADD 0 to 1!
0 562 posted 17 years ago by sorehead
0 1870 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 659 posted 17 years ago by ekobudisetiyo
1 367 posted 17 years ago by lucidcrew
0 517 posted 17 years ago by gdonald
0 530 posted 17 years ago by gdonald
0 714 posted 17 years ago by gdonald
2 900 posted 17 years ago by gdonald
3 656 posted 17 years ago by gdonald
0 609 posted 17 years ago by gdonald
0 425 posted 17 years ago by collin
7 781 posted 17 years ago by gdonald
1 550 posted 17 years ago by gdonald
1 640 posted 17 years ago by gdonald
1 503 posted 17 years ago by gdonald
2 661 posted 17 years ago by gdonald
1 865 posted 17 years ago by gdonald
1 522 posted 17 years ago by gdonald
1 617 posted 17 years ago by gdonald
3 644 posted 17 years ago by gdonald
1 630 posted 17 years ago by gdonald
2 608 posted 17 years ago by gdonald
Use this to format a phone number for display on a page.
1 781 posted 17 years ago by fbnewtz
1 676 posted 17 years ago by mikeejay
0 481 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 5462 posted 17 years ago by TC
7 608 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 1065 posted 17 years ago by dandyna
Generates a random string of variable length.
11 919 posted 17 years ago by javierarce