PHP -Konfiguration
phpinfo();
Annoyed Albatross
phpinfo();
<?php
$servername = "localhost";
$username = "root";
$password = "";
try {
$conn = new PDO("mysql:host=$servername;dbname=crud", $username, $password);
} catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
exit();
}
$errors = ['result' =>'', 'email'=>'', 'password'=>'', 'login'=>'', 'signup'=>''];
session_start();
require('controllers/contacts-controller.php');
require('controllers/auth-controller.php');
?>