zu üben Ich bin wirklich neu in PHP. Hier ist mein Code:Ich habe Fehler "Undefined Index: Host" in, als ich versuchte, diesen Code in meinem localhost
$domain = $_SERVER['HTTP_HOST'];
$uri = parse_url($_SERVER['HTTP_HOST']);
$r_domain = substr(['host'], strpos($uri['host'],"."), strlen($uri['host']));
if ($domain == $r_domain) {
/*Open the connection to our database use the info from the config file.*/
$link = f_sqlConnect('root', '', 'group_project');
1) 'substr ([ 'host'], ...' ist ein Tippfehler, 2), wenn Sie analysieren '$ _SERVER [ 'HTTP_HOST'] 'Sie erhalten nur' $ uri ['path'] ' – fusion3k