Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple HTML template containing a header, a content area, a moduleposition/sidebar and a footer
1
3521
posted 16 years ago by morvan
In case you find yourself parsing a string with unrecognizable ASCII character codes, use the regex below to replace them. The pattern matches only the valid keyboard symbols.
1
1193
posted 16 years ago by arangil
I rewrote [this snippet](http://snipplr.com/view/15402/php-password-generator/).
Usage:
$password1 = new Password;
$password2 = new Password;
echo '<p>' . $password1->generate() . '</p>';
echo '<p>' . $password2->generate(array('leng...
1
1524
posted 16 years ago by AzizLight
Delete All Foreign Keys in a database;
(make sure you USE keyword)
2
1052
posted 16 years ago by marcocs
Useful when logged in the server via ssh.
In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd
0
1478
posted 16 years ago by alvarezrilla
r : recursive
v: verbose
--progress : shows progress with percentage
0
1223
posted 16 years ago by godstroke
This script will allow you to choose which site you want to login to (Choose from WHMCS, TCAdmin, Cpanel) You need to edit the action= in each form to the correct address of your website.
1
1087
posted 16 years ago by jcroom
Tested with [ipotpal.bgurl.org](http://ipotpal.bgurl.org/ "ипотпал")
0
1059
posted 16 years ago by jommy
Video For Everybody is a great way to use the `<video>` tag with fallbacks for QuickTime or Flash for users with old browsers, but it requires that every video be encoded twice (once for the MP4 and once for the OGG).
This code (which requires Moo...
0
1230
posted 16 years ago by Kit
Befindet sich die aktuell angezeigte Seite dabei unter den aufgelisteten Seiten, dann erhält dieser Listenpunkt die Klasse class="current_page_item":
0
1358
posted 16 years ago by gabbo