Tiny PHP Uploader
10
I'm trying to load an object into a session variable.
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).
8
Class method to read a binary file and copy it to a byte array.
4
Walks every subdirectory starting from [initial_dir] and deletes every file in it that contains in its filename a [string]
15
A small recursive php function to determine the size of a directory by adding all it's contents together and returning them as an integer.
-9
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.









