In windows, how does one make php case sensitive? As the question. For example, the root directory contains Abc. php (note A capital), test. two php files: test. php has the following code: include_once (& quot; abc. php & quot;); // file name a lower case ..... in windows, how does one make php case sensitive?
As the question.
Example:
There are two files in the root directory: Abc. php (note A capital) and test. php.
The following code is available in test. php:
Include_once ("abc. php"); // file name a lower case
......
In Linux, run test. php and report an error. the error message is that the file abc. php does not exist.
It works normally in Windows.
This leads to the following problem: the php code developed in the windows system environment may cause some errors similar to this when it is transplanted to the linux system.
How can I adjust the development environment in windows to make php in windows case sensitive?
------ Solution --------------------
The solution to this problem is
No matter under what circumstances, all programming languages are case sensitive.
------ Solution --------------------
Honestly modify the file name and code.
------ Solution --------------------
So write the code in WIN to be rigorous.
------ Solution --------------------
Batch modify
------ Solution --------------------
Pay attention to the code written in Windows to linux.
------ Solution --------------------
Check whether the file exists every time. if the file does not exist, retest it in uppercase.
The most important thing is to standardize the file name.
------ Solution --------------------
Never met. Only linux is case sensitive. However, wandow is not differentiated. I just don't know what the landlord wants to do?
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