$site_name = "Instituto Nadson Rios"; $path_name = "nadsonrios"; ?> //Main URL. Do not use slashes at the end if ($_SERVER["SERVER_NAME"] == "localhost") { $site_url = "http://localhost/$path_name"; } else { $site_url = "http://" . $_SERVER["SERVER_NAME"]; } //Root DIR. Do not use slashes at the end if ($_SERVER["SERVER_NAME"] == "localhost") { $root_dir = $_SERVER["DOCUMENT_ROOT"] . "/$path_name"; } else { $root_dir = $_SERVER["DOCUMENT_ROOT"]; } //$site_url = "http://localhost/$path_name"; // Do not use slashes at the end //$root_dir = $_SERVER["DOCUMENT_ROOT"].$path_name; // Do not use slashes at the end ?> $dbdriv = "mysql"; $dbhost = "localhost"; $dbname = "u999644964_nadsonrios"; $dbuser = "u999644964_nadsonrios"; $dbpass = "#A1b2c3d4e5!"; //PDO connect $pdo = new PDO("$dbdriv:host=$dbhost;dbname=$dbname", $dbuser, $dbpass); ?>