I’ve built a PHP project in Windows, and as you know in Windows fun.php and Fun.php is same but not in Linux.
Q1-> As my project will run in Linux How to solve this issue [error for file name] ?
Q2-> I need to show an error if exact file name does not exist ! How to do so ?
Example
I have this 2 PHP file in template.php and render.php
Code of render.php
include 'Template.php';
I want to get an warning so i can fix this issue [which does not create problem in Windows, but in Linux]
Solution #1: Use all lowercase.
Solution #2: Use the exact same case every time. Instead of trying to include “Template” when the file name is “template”, just include the lowercase “template” in the first place. Most programming languages are case sensitive anyway, so it’s best to get into the practice. While filename may be unique in this matter, for example, a variable in PHP must use the same case, so just apply the same principals to file names.