PHP set_include_path include wondering how to handle

Source: Internet
Author: User
PHP Set_include_path include doubts
1. Assume that there are config.php files in the include/directory
2. If using Set_include_path ('.. /include ')
3. If you want to index.php with config, just include (' config.php ').

Question: Then I just need to include (' config.php ') on other pages, or Set_include_path ('. /include ') in include (' config.php ')?
Can't he cross-page, or cross-catalog?


------Solution--------------------
Plus: Set_include_path ('. /include '); The premise is that other files must be in the same sibling directory as your index.php file.
------Solution--------------------
Don't ever use zendframework, you can try not to know. Maybe it can.
------Solution--------------------
Explore

Oh, well, thank you, is that the same thing in the zendframework? ZF seems to be index.php in the other after the other does not need to like this writing load::class loaded
  • 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.