Dropped a system made in 2007 for maintenance and I'm having some difficulties to make it run in my development environment (XAMPP on Windows).
It is working (partially) in the production environment (CentOS), I made a copy of the fonts exactly the way they are, but one thing caught my attention.
In the index.php at the root of the project, there is a require like this:
require("inc.Constants.php");
I found it strange, since this file does not exist at the root of the project. Within the project home directory, there is another index.php file that also makes the same reference exactly in this way (without passing a ../ before the file name).
I looked for this file throughout the project and found nothing. And as was to be expected, testing in my DEV environment, it error just at the time of that require.
So, I went to the production server and there, I searched the system for the file and found the damn thing. That was inside the php directory (/ etc / php).
So, here is my doubt. Apparently when I do not indicate a path to the file, php, in addition to looking for it in the same directory, is looking for the file inside the directory / etc / php (as if it were an executable in windows within a directory ono system path ). Has anyone seen anything like this? If so, how do I configure this?