0
こんにちは、誰もがこの問題を解決するために私を助けることができますしてください、このエラーは、アップグレードのApache、PHPは解決済み:PHP 6欄の16行のXMLエラー:xmlParsePI:なしターゲット名の後にApache、PHPをアップグレード
PHPのXMLエラーの後に発生しますxmlParsePI:ターゲット名なし、
Fyi、私はsitemap.phpページを使用して、RewriteRule^sitemap.xml?$ sitemap.phpを設定します。以下 が
header("Content-Type: text/xml;charset=iso-8859-1");
echo '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.google.com/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">';
include "config.php";
include "dbclass.php";
include "classes.php";
include "fgeneral.php";
$mydb = new myDBC();
//HOME
$result = $mydb->runQuery("SELECT * FROM `homepage`");
$row = $mydb->runFetchArray($result);
$date = $row["date"]; //the date stored
$year = substr($date,0,4); //work out the year
$mon = substr($date,5,2); //work out the month
$day = substr($date,8,2); //work out the day
$displaydate = ''.$year.'-'.$mon.'-'.$day.'';
?>
<url>
<loc><?=ROOT_URL?></loc>
<lastmod><?=$displaydate?></lastmod>
<changefreq>weekly</changefreq>
<priority>1.00</priority>
</url>