I'm working on a cloud system with login/register system and mysql, but the problem is that php does not imports the variables i'm including.
Here is my config file:
// Connection details
$servername = "localhost";
$username = "root";
$password = "password";
$dbname = "database";
And my code to include the config file:
When i'm trying do echo the variables that are defined in the config it gives this error:
Notice: Undefined variable: servername in C:\xampp\htdocs\index.php on line 2
I'm using xampp on my local computer it has php Version 5.5.30.
EDIT: First lines of php, from comment
// Include classes require("/classes/user.class.php");
// Include configuration require("/classes/config.class.php");
echo $servername; echo $username; echo $password; echo $dbname;