警告:simplexml_load_file():解析器错误:xmlParseEntityRef:没有名称

时间:2017-05-08 05:18:37

标签: php xml

嗨,这是我的网站,我收到这些错误。同样的脚本在我的本地主机上正常工作。

http://app.kontestic.com/kick/install.php您可以在此页面上看到错误。

objModel

$ filepath的代码

$dbhostname = "";
$dbusername = "";
$dbpassword = "";
$dbname = "";
$applicationfolder = "";
if ($found) {
    $xml = simplexml_load_file ( $filepath ); // line 27
    $dbhostname = (string)$xml->dbhostname; // line 28
    $dbusername = (string)$xml->dbusername;
    $dbpassword = (string)$xml->dbpassword;
    $dbname = (string)$xml->dbname;
    $applicationfolder = (string)$xml->applicationfolder;
} else {
    // Get header Location

    $REQUEST_SCHEME = (isset($_SERVER ['REQUEST_SCHEME']))?$_SERVER ['REQUEST_SCHEME']:"http";
    $SERVER_NAME = $_SERVER ['SERVER_NAME'];
    $REQUEST_URI = $_SERVER ['REQUEST_URI'];
    $URI_COLL = explode ( '/', $REQUEST_URI );
    $REQUEST_URI = $URI_COLL [1];
    $headerloc = $REQUEST_SCHEME . '://' . $SERVER_NAME . '/' . $REQUEST_URI . '/setup.php';
    header ( "Location: $headerloc" );
}

0 个答案:

没有答案