这是什么意思,“XAMPP 安装有问题:-(”?

问题描述 投票:0回答:1

我在我的 xampp/htdocs/index.php 中找到了它。怎么解决?

<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
    $uri = 'https://';
} else {
    $uri = 'http://';
}
    $uri .= $_SERVER['HTTP_HOST'];
    header('Location: '.$uri.'/dashboard/');
    exit;
?>
Something is wrong with the XAMPP installation :-(

注意:我的 XAMMP 安装可以运行我的本地 WordPress 安装。

php wordpress apache xampp
1个回答
0
投票

尝试运行 localhost/filename.php 而不是使用给定地址运行文件,例如 c:/xampp/htdocs/filename.php 希望能解决问题。

© www.soinside.com 2019 - 2024. All rights reserved.