Archive for November, 2009
filter_list()
Get a list of names of all supported filters. PHP 5.2.0 or greater.
FILTER_CALLBACK
PHP’s filter that can’t be put into either category of validate or sanitize. Used for a user defined callback function to filters data.
Sanitize Filters
PHP’s filter functions can take these filters for sanitizing. Different filters are used for different data types. Some have flags as well.
Validation Filters
PHP’s filter functions can take these filters for validation. Different filters are used for different data types. Some have flags as well.
Validate vs. Sanitize
Validating data tells you if the data meets the requirements. Sanitizing removes or changes offending elements of the data and gives you something that meets the requirements.
session_destroy()
Destroys all data registered to a session so that it won’t be available next time you start the session.
session_regenerate_id()
Replace the session id and keep the session data.
session_id()
Get or set the session id.
session_name()
Get or set the session name.
session.auto_start
Ini setting to have sessions created/resumed on each request without the need to call session_start().
