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 598 posted 17 years ago by sorehead
ADD 0 to 1!
0 578 posted 17 years ago by sorehead
0 1912 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 689 posted 17 years ago by ekobudisetiyo
1 386 posted 17 years ago by lucidcrew
0 549 posted 17 years ago by gdonald
0 557 posted 17 years ago by gdonald
0 747 posted 17 years ago by gdonald
2 936 posted 17 years ago by gdonald
3 689 posted 17 years ago by gdonald
0 648 posted 17 years ago by gdonald
0 440 posted 17 years ago by collin
7 814 posted 17 years ago by gdonald
1 582 posted 17 years ago by gdonald
1 672 posted 17 years ago by gdonald
1 525 posted 17 years ago by gdonald
2 691 posted 17 years ago by gdonald
1 908 posted 17 years ago by gdonald
1 548 posted 17 years ago by gdonald
1 645 posted 17 years ago by gdonald
3 677 posted 17 years ago by gdonald
1 663 posted 17 years ago by gdonald
2 642 posted 17 years ago by gdonald
Use this to format a phone number for display on a page.
1 810 posted 17 years ago by fbnewtz
1 710 posted 17 years ago by mikeejay
0 505 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 5852 posted 17 years ago by TC
7 633 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 1098 posted 17 years ago by dandyna
Generates a random string of variable length.
11 967 posted 17 years ago by javierarce