PHP 로 XML/RSS 파일 생성하기
Server Side/PHP2016. 8. 7. 13:44
header("Content-type: text/xml;charset=utf-8");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$query = $mysqli_connect->query("select * from `".$mysqli_connect->real_escape_string($get_table_file_read)."_board_".$mysqli_connect->real_escape_string($man_no)."` where man_no = '".$mysqli_connect->real_escape_string($man_no)."'");
echo "\n";
echo "\n";
echo "\n";
echo "title \n";
echo "http:/ㅇㅇㅇㅇ\n";
echo "dec \n";
while($print = $query->fetch_object()){
echo "- \n";
echo "
" . $print->title . " \n";
echo "http://naver.com\n";
echo "" . htmlspecialchars($print->content) . " \n";
echo " \n";
}
echo " \n";
echo " \n";
'Server Side > PHP' 카테고리의 다른 글
| classs static 활용법 (0) | 2016.08.09 |
|---|---|
| foreach 로 다차원 배열 만들기 (0) | 2016.08.08 |
| AJAX 이용해서 PHP 첨부파일 삭제 (0) | 2016.08.07 |
| 특정 파일(PHP)의 특정 폴더 실행 막기 (PHP Ver) (0) | 2016.08.07 |
| 파일 내 문자열 읽는 방법 (0) | 2016.08.07 |