Is this not a reference file?

Source: Internet
Author: User
The three if sentence is not a reference file? My understanding is to judge there is no, but not a quote!
If it is not a reference, then the methods or settings in these three files are not cited, such as its function or variable constant what is not cited, or can not be used! Don't know that, right?
if (! @include (DirName (dirname (__file__)). ' /global.php ') exit (' global.php isn\ ' t exists! '); if (! @include (Base_path. ') /control/control.php ') exit (' control.php isn\ ' t exists! '); if (! @include (Base_core_path. ') /33hao.php ') exit (' 33hao.php isn\ ' t exists! ');


Reply to discussion (solution)

is quoted, judging whether there is, some words on the reference in.

If the reference file fails, exit

is quoted, judging whether there is, some words on the reference in.


I am stuck here, why is it also quoted, this reason?

If the reference file fails, exit


If conditions can not be introduced into the document AH, because I understand it here is to judge the real false, and that's all.

Why is it?
if (!@ include (DirName (DirName (__file__)). ' /global.php ') exit (' global.php isn\ ' t exists! ');
Include (DirName (DirName (__file__)). /global.php ') is used to introduce the global.php file, is there any objection?
If the failure returns false, it is accompanied by an error message. After blocking the error message
Var_dump (@include (' global.php ')); BOOL (FALSE)

Is that not understandable?

Why is it?
if (!@ include (DirName (DirName (__file__)). ' /global.php ') exit (' global.php isn\ ' t exists! ');
Include (DirName (DirName (__file__)). /global.php ') is used to introduce the global.php file, is there any objection?
If the failure returns false, it is accompanied by an error message. After blocking the error message
Var_dump (@include (' global.php ')); BOOL (FALSE)

Is that not understandable?



Why is it?
if (!@ include (DirName (DirName (__file__)). ' /global.php ') exit (' global.php isn\ ' t exists! ');
Include (DirName (DirName (__file__)). /global.php ') is used to introduce the global.php file, is there any objection?
If the failure returns false, it is accompanied by an error message. After blocking the error message
Var_dump (@include (' global.php ')); BOOL (FALSE)

Is that not understandable?


No, my understanding is that this can only be judged if there is no reference to the file.

Then ask you to do the following to clear the wrong idea

If judgment needs to execute the operation in parentheses, the Include execution is complete (success) will return 1,so

If judgment needs to execute the operation in parentheses, the Include execution is complete (success) will return 1,so


Oh, yes, the implementation is complete, this explanation has reason, understand.

Include refers to the inclusion of the meaning Ah, you can go to the manual, reference failure to exit. If only the file_exists () can be determined by the memory.

  • Related Article

    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.