php生成rss订阅
程序员文章站
2022-04-30 16:26:28
...
php生成rss订阅
//$news为重数据库里取出的数组$host = $_SERVER['HTTP_HOST'];
$xmls = '
foreach ($news as $keys => $values) {
//foreach ($values as $key1 => $value1) {
$xmls .= "
$xmls .= "http://$host/news.php?id=".$values['id']."";
//$xmls .= "
//$xmls .= "
$xmls .= "
//$xmls .= "
$xmls .= "
//$xmls .= "";
//}
}
$xmls .= "";
echo $xmls;
上一篇: 这是啥意思?解决思路