SQL double quotes and single quotes
Delimiters are used only for identifiers. Delimiters cannot be used for keywords, regardless of whether they are marked as reserved words in SQL Server.Quoted identifiers are separated by double quotation marks ("
Recently found to do a PHP program form data submission to the content of the database, as long as the content with single or double quotes, a backslash will be added later. And every time you save a backslash, it's depressing.
So from the Internet
When you use Word to create a document, you find that you enter straight quotes, but they are replaced with curly quotes.
Entering straight quotes in half-width states is replaced with curly quotes, which turns on a replacement feature in Word. If
Before writing a php application that is not affected by Magic Quotes: you must read chapter 10th magic quotes from Section IV security in the php Manual ". If you haven't read it, it's okay. now it takes 10 minutes to take a look at this in the php
PHP magic quotes. The security of PHP lies in its default configuration of php. the ini-dist contains magic_quotes_gpcOn, which is called "MagicQuote". it is useful for PHP beginners. "Although the security of SQL injection in PHP lies in its
This article describes the way to turn off magic quotes in PHP MAGIC_QUOTES_GPC, with the need for a friend reference.In PHP, the MAGIC_QUOTES_GPC instruction is only closed at the system level and cannot be closed at run time. You cannot use
When you use PHP for Web development, the entry needs to pay attention to some security configuration items, turn off some features, to prevent users inadvertently appear a variety of problems.
1. turn off the PHP prompt error feature
Change the
& Nbsp; the security of PHP lies in its default configuration of php. the ini-dist contains magic_quotes_gpcOn, which is called "MagicQuote". it is very useful for PHP beginners, "although SQL injection is still possible when magic quotes are opened,
The content from the PHP manual (http://php.net/manual/zh/security.magicquotes.what.php) is recorded.
When Magic quotes open, all '(single quotes),"(double quotes),\(backslashes), and NULL characters are automatically escaped with a backslash. This
The server space provided by the general space provider default PHP instruction MAGIC_QUOTES_GPC is on, which is open. You can then use the stripslashes () function to remove the automatically added backslash. Usage is: For example, the variable
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.