Discover types of validation in php, include the articles, news, trends, analysis and practical advice about types of validation in php on alibabacloud.com
This article mainly introduced the YII2 framework data validation operation, combined with the case form detailed analysis the YII framework common data validation operation principle, the realization method and the related operation skill, the need
Dependency ManagementDependency and Package Management Library
Composer/packagist: A package and dependency manager
Composer Installers: A multi-frame Composer Library Installer
Pickle: a php extension installer
Other
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
Other frameworksOther web development frameworks
Symfony cmf-Create a custom CMS Content management framework
KNP rad bundle-symfony 2 Fast Application (RAD) Pack
Framework ComponentsStandalone components from the Web development
Use PHP's own filter function for data validation
Use PHP's own filter function for data validation
PHP filters contain two types of
Validation:Used to verify that a validation entry is valid
sanitization:Used to format the validated
PHP VERSION = 5.3.10First, about $_requestPHP documentation Instructions for $_request:describes an array that contains $_get,$_post and $_cookie by default. Update log version description 5.3. 0 introduce Request_order. This directive
Use PHP's own filter function for data validation
PHP filters contain two types ofValidation:Used to verify that a validation entry is validsanitization:Used to format the validated item, so it may modify the value of the validation entry,
I've written a validation class here that uses the file header to determine the file format. (also not completely secure, if the user forged the file header, can also be verified)
Copy the Code code as follows:
/*** Type of document to be checked*
Ziadoz a list of PHP resources that are maintained on Github, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more.Bole Online has
Use PHP's own filter function for data validationPHP filters contain two types ofValidation: used to verify that a validation entry is validsanitization: used to format the validated item, so it may modify the value of the validation entry, remove
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.