downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

为什么不用魔术引号> <什么是魔术引号
[edit] Last updated: Fri, 25 May 2012

view this page in

为什么要用魔术引号

Warning

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

  • 对初学者很有用 魔术引号在 PHP 中用来实现避免初学者的代码更危险。尽管 SQL 注入在魔术引号打开的情况下仍然有可能实现,但起码系统的风险减少很多了。
  • 方便使用 当向数据库中插入数据时,魔术引号所做的就是自动对所有的 GET、POST、COOKIE 数据运用 addslashes() 函数。


add a note add a note User Contributed Notes 为什么要用魔术引号
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites