<?
///
/// phpschool tip & tech 게시판에서 글 목록 뽑아오기
/// 추가^^ 답글수와 조회수도 가져오기
///
$url = "http://phpschool.com/v2/html/tip_tech.html"; // 게시판 주소
$data = join("", file($url)); // 페이지를 읽어 옴
$data = strtolower($data); // 대문자를 소문자로 변환
$temp = split("href",$data); // 주어진 문자로 문자열 구분하여 배열에 저장
$size = sizeof($temp); // 배열 크기
$mark = chr(34); // 큰따옴표
for($i=1; $i < $size; $i++){ // 각 배열 검색
$seek = strstr($temp[$i],"/inc_view.html?id"); // (/inc_view.html?id) 로 시작하는 문자열 검색
$seek_reply = strstr($seek,">["); // 답글수 가져오기 시작
$seek_reply = substr("$seek_reply",0,strpos($seek_reply,"]</font>"));
if ( strlen("$seek_reply") > 10 ) {
$seek_reply = substr("$seek_reply",5);
$seek_reply = strstr($seek_reply,"[");
}
$seek_reply = ereg_replace(">","",$seek_reply);
$seek_read = strchr($seek,"<p>"); // 조회수 가져오기 시작
$seek_read = substr("$seek_read",0,strpos($seek_read,"</td>"));
$seek_read = ereg_replace("<p>","",$seek_read);
$seek_read = ereg_replace("</td>","",$seek_read);
$seek = substr("$seek",0,strpos($seek,"<")); // (<)이 있는곳 전까지 뽑아낸다
$seek = ereg_replace("$mark >"," ",$seek); // 필요 없는 (" >) 를 없애고
$seek_link = substr("$seek",0,strpos($seek," ")); // 링크 추출
$seek_sub = strstr($seek," "); // 제목 추출
if ( strlen("$seek_link") != 0 ) {
echo "<pre><a href='http://phpschool.com/bbs2$seek_link'>$seek_sub</a> 답글수 $seek_reply] / 조회수 $seek_read</pre>"; // 화면에 표시
}
}
?>
///
/// phpschool tip & tech 게시판에서 글 목록 뽑아오기
/// 추가^^ 답글수와 조회수도 가져오기
///
$url = "http://phpschool.com/v2/html/tip_tech.html"; // 게시판 주소
$data = join("", file($url)); // 페이지를 읽어 옴
$data = strtolower($data); // 대문자를 소문자로 변환
$temp = split("href",$data); // 주어진 문자로 문자열 구분하여 배열에 저장
$size = sizeof($temp); // 배열 크기
$mark = chr(34); // 큰따옴표
for($i=1; $i < $size; $i++){ // 각 배열 검색
$seek = strstr($temp[$i],"/inc_view.html?id"); // (/inc_view.html?id) 로 시작하는 문자열 검색
$seek_reply = strstr($seek,">["); // 답글수 가져오기 시작
$seek_reply = substr("$seek_reply",0,strpos($seek_reply,"]</font>"));
if ( strlen("$seek_reply") > 10 ) {
$seek_reply = substr("$seek_reply",5);
$seek_reply = strstr($seek_reply,"[");
}
$seek_reply = ereg_replace(">","",$seek_reply);
$seek_read = strchr($seek,"<p>"); // 조회수 가져오기 시작
$seek_read = substr("$seek_read",0,strpos($seek_read,"</td>"));
$seek_read = ereg_replace("<p>","",$seek_read);
$seek_read = ereg_replace("</td>","",$seek_read);
$seek = substr("$seek",0,strpos($seek,"<")); // (<)이 있는곳 전까지 뽑아낸다
$seek = ereg_replace("$mark >"," ",$seek); // 필요 없는 (" >) 를 없애고
$seek_link = substr("$seek",0,strpos($seek," ")); // 링크 추출
$seek_sub = strstr($seek," "); // 제목 추출
if ( strlen("$seek_link") != 0 ) {
echo "<pre><a href='http://phpschool.com/bbs2$seek_link'>$seek_sub</a> 답글수 $seek_reply] / 조회수 $seek_read</pre>"; // 화면에 표시
}
}
?>
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 81 | ||
| 8229 | 9년 전 | 77 | ||
| 8228 |
커네드커네드
|
9년 전 | 116 | |
| 8227 | 9년 전 | 133 | ||
| 8226 | 9년 전 | 168 | ||
| 8225 | 9년 전 | 156 | ||
| 8224 | 9년 전 | 150 | ||
| 8223 | 9년 전 | 118 | ||
| 8222 |
|
9년 전 | 196 | |
| 8221 | 9년 전 | 98 | ||
| 8220 | 9년 전 | 107 | ||
| 8219 | 9년 전 | 104 | ||
| 8218 | 9년 전 | 150 | ||
| 8217 |
star3840
|
9년 전 | 117 | |
| 8216 | 9년 전 | 166 | ||
| 8215 | 9년 전 | 124 | ||
| 8214 | 9년 전 | 231 | ||
| 8213 | 9년 전 | 165 | ||
| 8212 | 9년 전 | 87 | ||
| 8211 | 9년 전 | 251 | ||
| 8210 | 9년 전 | 254 | ||
| 8209 | 9년 전 | 344 | ||
| 8208 | 9년 전 | 227 | ||
| 8207 | 9년 전 | 234 | ||
| 8206 |
|
9년 전 | 196 | |
| 8205 | 9년 전 | 176 | ||
| 8204 | 9년 전 | 139 | ||
| 8203 | 9년 전 | 237 | ||
| 8202 | 9년 전 | 150 | ||
| 8201 | 9년 전 | 186 | ||
| 8200 | 9년 전 | 171 | ||
| 8199 | 9년 전 | 221 | ||
| 8198 | 9년 전 | 181 | ||
| 8197 | 9년 전 | 168 | ||
| 8196 | 9년 전 | 558 | ||
| 8195 | 9년 전 | 166 | ||
| 8194 | 9년 전 | 288 | ||
| 8193 | 9년 전 | 162 | ||
| 8192 | 9년 전 | 202 | ||
| 8191 | 9년 전 | 147 | ||
| 8190 | 9년 전 | 136 | ||
| 8189 | 9년 전 | 198 | ||
| 8188 | 9년 전 | 133 | ||
| 8187 | 9년 전 | 151 | ||
| 8186 | 9년 전 | 150 | ||
| 8185 | 9년 전 | 318 | ||
| 8184 | 9년 전 | 112 | ||
| 8183 | 9년 전 | 332 | ||
| 8182 | 9년 전 | 174 | ||
| 8181 | 9년 전 | 138 | ||
| 8180 | 9년 전 | 701 | ||
| 8179 | 9년 전 | 492 | ||
| 8178 | 9년 전 | 317 | ||
| 8177 |
kiplayer
|
9년 전 | 332 | |
| 8176 | 9년 전 | 357 | ||
| 8175 | 9년 전 | 230 | ||
| 8174 | 9년 전 | 255 | ||
| 8173 | 9년 전 | 348 | ||
| 8172 | 9년 전 | 205 | ||
| 8171 | 9년 전 | 187 | ||
| 8170 | 9년 전 | 299 | ||
| 8169 |
커네드커네드
|
9년 전 | 263 | |
| 8168 | 9년 전 | 325 | ||
| 8167 | 9년 전 | 325 | ||
| 8166 | 9년 전 | 244 | ||
| 8165 | 9년 전 | 175 | ||
| 8164 | 9년 전 | 308 | ||
| 8163 | 9년 전 | 293 | ||
| 8162 | 9년 전 | 308 | ||
| 8161 | 9년 전 | 301 | ||
| 8160 |
|
9년 전 | 499 | |
| 8159 | 9년 전 | 434 | ||
| 8158 | 9년 전 | 259 | ||
| 8157 | 9년 전 | 385 | ||
| 8156 | 9년 전 | 280 | ||
| 8155 | 9년 전 | 259 | ||
| 8154 |
00년생용띠
|
9년 전 | 605 | |
| 8153 | 9년 전 | 236 | ||
| 8152 |
|
9년 전 | 417 | |
| 8151 | 9년 전 | 410 | ||
| 8150 | 9년 전 | 507 | ||
| 8149 |
Jangfolk
|
9년 전 | 353 | |
| 8148 | 9년 전 | 178 | ||
| 8147 | 9년 전 | 380 | ||
| 8146 | 9년 전 | 446 | ||
| 8145 | 9년 전 | 387 | ||
| 8144 | 9년 전 | 356 | ||
| 8143 | 9년 전 | 201 | ||
| 8142 | 9년 전 | 431 | ||
| 8141 | 9년 전 | 385 | ||
| 8140 | 9년 전 | 933 | ||
| 8139 | 9년 전 | 267 | ||
| 8138 |
전갈자리남자
|
9년 전 | 392 | |
| 8137 | 9년 전 | 402 | ||
| 8136 | 9년 전 | 754 | ||
| 8135 |
|
9년 전 | 802 | |
| 8134 |
PlayPixel
|
9년 전 | 522 | |
| 8133 |
|
9년 전 | 444 | |
| 8132 | 9년 전 | 457 | ||
| 8131 | 9년 전 | 818 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기