Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
977
posted 15 years ago by AzizLight
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
738
posted 15 years ago by jcroom
This code will loop through any posted variables and print the name of the field as well as the value of the field.
0
765
posted 15 years ago by BFTrick
Not particularly novel, but quite clean. Allows you to put images in any location on the server and saves having to generate thumbnails at upload time.
The URL to this file should be:
`<filename.php>/<request>/<path>`
Valid request types:...
1
712
posted 15 years ago by Kit
Takes a number in bytes and returns the number in (KB,MB,GB) for human-readable format.
1
701
posted 15 years ago by stancox
This line can be used to refresh the current page. Submitted by philsturgeon on #codeigniter in the Freenode IRC server.
3
897
posted 15 years ago by AzizLight
Very easy to use and helps keep browsers from jumbling your email up.
0
770
posted 15 years ago by dmautz1
Generate random plain and md5 password. Depend on Password Class
1
597
posted 15 years ago by FazzyX
magento meta keywords in list view output
template/catalog/category/view.phtml:
0
750
posted 15 years ago by nico65