I got a new laptop and installed a new version of XAMPP. I moved over a system I'm working on and it isn't functioning properly on this computer.
First issue I recognized was it doesn't include files from the location relative to the file that is including it. I have a config.php
file in the includes/
directory as well as my include.php
file. In the include.php
file I have to type require 'includes/config.php';
even though the config.php
is in the same folder as the include.php
. On my other computer I just needed to do require 'config.php';
.
Also since the included files didn't load with my main file which I am viewing, the variables and constants aren't defined, so it seems to be auto-defining them?
Notice: Use of undefined constant DB_HOST - assumed 'DB_HOST' in C:\xampp\htdocs\Xion\includes\include.php on line 6
Is this an issue with the config on a newer version of PHP?