Splitting a Log into a 3D array
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.
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).
15
This litle snippet shows how to store passwords and then check inputed passwords if they are correct.
(In this snippet we use som pseduo code for the database connection).
(In this snippet we use som pseduo code for the database connection).
16
A small function to help you debug your PHP scripts (with the debug modell, output as much as possible to see where the script fails).
11
This will give you CheckDNSRR functionality in windows.
This function is only natively available in php while running on Linux.
This function is only natively available in php while running on Linux.
13
This little function will split an e-mail address passed to it at the @ sign, and make sure that there is a valid e-mail server at the other end =)
5
Returns an array of folder/file names in the specified path.
9
This routine checks a client's IP address against a few open lists of blacklisted IP addresses, returns TRUE if the ip is a known proxy.
0
auto create and check token with different xoops versio
8
A very simple yet very useful function to have around. Especially generating session codes, filenames or new passwords









