<?
///
/// 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2430 | 15년 전 | 2505 | ||
| 2429 | 15년 전 | 5497 | ||
| 2428 | 15년 전 | 1461 | ||
| 2427 |
Sizkein
|
15년 전 | 4228 | |
| 2426 | 15년 전 | 1355 | ||
| 2425 | 15년 전 | 1652 | ||
| 2424 | 15년 전 | 1626 | ||
| 2423 |
haejuksun
|
15년 전 | 1618 | |
| 2422 |
haejuksun
|
15년 전 | 1122 | |
| 2421 |
haejuksun
|
15년 전 | 1370 | |
| 2420 |
haejuksun
|
15년 전 | 1517 | |
| 2419 |
|
15년 전 | 1414 | |
| 2418 |
|
15년 전 | 2139 | |
| 2417 |
원더풀라입
|
15년 전 | 1290 | |
| 2416 |
원더풀라입
|
15년 전 | 1343 | |
| 2415 |
원더풀라입
|
15년 전 | 876 | |
| 2414 |
원더풀라입
|
15년 전 | 997 | |
| 2413 |
원더풀라입
|
15년 전 | 958 | |
| 2412 |
원더풀라입
|
15년 전 | 922 | |
| 2411 |
원더풀라입
|
15년 전 | 871 | |
| 2410 |
원더풀라입
|
15년 전 | 925 | |
| 2409 |
원더풀라입
|
15년 전 | 1075 | |
| 2408 |
원더풀라입
|
15년 전 | 1084 | |
| 2407 |
원더풀라입
|
15년 전 | 2605 | |
| 2406 |
원더풀라입
|
15년 전 | 943 | |
| 2405 |
원더풀라입
|
15년 전 | 1596 | |
| 2404 |
원더풀라입
|
15년 전 | 1463 | |
| 2403 | 15년 전 | 1588 | ||
| 2402 | 15년 전 | 1291 | ||
| 2401 |
나도빌더만들까
|
15년 전 | 1775 | |
| 2400 | 15년 전 | 596 | ||
| 2399 | 15년 전 | 1086 | ||
| 2398 | 15년 전 | 1051 | ||
| 2397 | 15년 전 | 2837 | ||
| 2396 | 15년 전 | 3151 | ||
| 2395 | 15년 전 | 1830 | ||
| 2394 | 15년 전 | 1336 | ||
| 2393 |
gamebomb
|
15년 전 | 1956 | |
| 2392 |
gamebomb
|
15년 전 | 1468 | |
| 2391 |
gamebomb
|
15년 전 | 1071 | |
| 2390 | 15년 전 | 3764 | ||
| 2389 |
leadK
|
15년 전 | 1408 | |
| 2388 |
kim7031
|
15년 전 | 1519 | |
| 2387 | 15년 전 | 2734 | ||
| 2386 | 15년 전 | 1443 | ||
| 2385 | 15년 전 | 4167 | ||
| 2384 |
확실한방법
|
15년 전 | 2371 | |
| 2383 |
intel
|
15년 전 | 3150 | |
| 2382 |
확실한방법
|
15년 전 | 1766 | |
| 2381 |
|
15년 전 | 1989 | |
| 2380 |
|
15년 전 | 1301 | |
| 2379 | 15년 전 | 4373 | ||
| 2378 | 15년 전 | 3948 | ||
| 2377 |
메가팩토리
|
15년 전 | 3774 | |
| 2376 | 15년 전 | 5185 | ||
| 2375 | 15년 전 | 3407 | ||
| 2374 | 15년 전 | 1786 | ||
| 2373 | 15년 전 | 1748 | ||
| 2372 | 15년 전 | 1888 | ||
| 2371 | 15년 전 | 1591 | ||
| 2370 | 15년 전 | 3988 | ||
| 2369 | 15년 전 | 2900 | ||
| 2368 | 15년 전 | 2095 | ||
| 2367 | 15년 전 | 1663 | ||
| 2366 | 15년 전 | 1904 | ||
| 2365 | 15년 전 | 2391 | ||
| 2364 | 15년 전 | 1477 | ||
| 2363 | 15년 전 | 2412 | ||
| 2362 | 15년 전 | 1733 | ||
| 2361 | 15년 전 | 1830 | ||
| 2360 | 15년 전 | 1475 | ||
| 2359 | 15년 전 | 2171 | ||
| 2358 | 15년 전 | 1503 | ||
| 2357 |
|
15년 전 | 1920 | |
| 2356 |
헐크매니아
|
15년 전 | 2117 | |
| 2355 |
WebRIA
|
15년 전 | 1194 | |
| 2354 |
WebRIA
|
15년 전 | 1243 | |
| 2353 |
WebRIA
|
15년 전 | 1890 | |
| 2352 |
WebRIA
|
15년 전 | 5332 | |
| 2351 | 15년 전 | 1633 | ||
| 2350 |
WebRIA
|
15년 전 | 2141 | |
| 2349 | 15년 전 | 2340 | ||
| 2348 |
WebRIA
|
15년 전 | 1491 | |
| 2347 |
WebRIA
|
15년 전 | 1301 | |
| 2346 |
WebRIA
|
15년 전 | 2218 | |
| 2345 |
WebRIA
|
15년 전 | 4935 | |
| 2344 | 15년 전 | 2204 | ||
| 2343 | 15년 전 | 2863 | ||
| 2342 | 15년 전 | 1750 | ||
| 2341 | 15년 전 | 3595 | ||
| 2340 | 15년 전 | 4432 | ||
| 2339 | 16년 전 | 3113 | ||
| 2338 | 16년 전 | 2353 | ||
| 2337 | 16년 전 | 2434 | ||
| 2336 | 16년 전 | 2685 | ||
| 2335 | 16년 전 | 2173 | ||
| 2334 |
Sizkein
|
16년 전 | 5513 | |
| 2333 | 16년 전 | 3372 | ||
| 2332 | 16년 전 | 1360 | ||
| 2331 | 16년 전 | 1700 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기