"Do not directly access the hyper-Global $_get array"

Source: Internet
Author: User
Tags netbeans
I downloaded a php program called NetBeans, and I got a warning when I entered the usual ones $name = $_GET['name']; : 请不要直接访问超全局$_GET数组 请改用某些过滤函数(例如filter_input() ,带有is_*()函数的条件等) . I just understand that my usual practice is not standard. In fact, the following form will eliminate the warning:

$name = "";if(is_string($_GET['name'])){$name = strval($_GET['name']);}

Because I use the programming language is miscellaneous, so sometimes do not specifically download special Ide,windows general will be used to show pills, editplus This general-purpose editor, and Mac is more lazy directly with Xcode. But now I feel that NetBeans is really good, helping me to recognize the irregular wording. It seems that we should follow the "工欲善其事, its prerequisite".

The above describes the "do not directly access the super-Global $_get array", including the content of the contents, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.