Random Password - PHP
18
This snippet will undo all the nasty stuff which happens when you set register_globals to on in your php.ini file.
(Originally found in the code of Wordpress).
(Originally found in the code of Wordpress).
17
The recursive function stripslashesDeep($value) will (upon called) strip slashes (\) from strings and arrays (even arrays with arrays within themself). The controlstatement (if) checks if magic quotes gpc is on, if it is we strip the slashes it have added.
Very good snippet if you want to have the "same" input even if you switch to an enviroment where magic quotes gpc is set to something else than on your originall server.
Very good snippet if you want to have the "same" input even if you switch to an enviroment where magic quotes gpc is set to something else than on your originall server.
10
I'm trying to load an object into a session variable.
6
Method for get n random number's
5
A very simple script to generate random hexa colors.
just modify line 36 to generate more/less colors.
just modify line 36 to generate more/less colors.
13
Generate a random number or string in PHP.
11
Convert an irregular name=value pair string into a formatted array.
13
I needed to send an email through an authenticated SMTP server. I found the snippet on the PHP website to do the trick.
16
Format a phone number with php.
4
A simple search array example.









