What does this sentence of thinkphp document mean?

Source: Internet
Author: User
Keywords thinkphp php
Tags php development environment
http://www.kancloud.cn/manual/thinkphp/1717

If the case is inconsistent under the Linux environment, the module class cannot be found in the URL using the lowercase module name. For example, under the Linux environment, we access the Http://serverName/index.php/home/index/index in fact the requested controller file is

application/home/controller/indexcontroller.class.php

What do you mean if you're under a Linux environment ?
What "under the Linux environment"?
What is "under the Linux environment"?

Reply content:

http://www.kancloud.cn/manual/thinkphp/1717

If the case is inconsistent under the Linux environment, the module class cannot be found in the URL using the lowercase module name. For example, under the Linux environment, we access the Http://serverName/index.php/home/index/index in fact the requested controller file is

application/home/controller/indexcontroller.class.php

What do you mean if you're under a Linux environment ?
What "under the Linux environment"?
What is "under the Linux environment"?

LinuxEnvironment files are case-sensitive, both indexController.class.php and IndexController.class.php not the same file, and if used http://serverName/index.php/home/index/index for access, and the controller is named IndexController.class.php , there will be a situation where the controller is not found, because in this case the controller file name is parsed indexController.class.php .

By setting URL_CASE_INSENSITIVE to true , you can ThinkPHP automatically convert index to Index , to achieve the effect of normal file recognition.

Linux operating system, to be case-sensitive,
No case sensitivity under Windows operating system

Developed System format Linux operating system, your PHP development environment should follow the Linux operating system

  • 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.