<?
///
/// 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 4004 | ||
| 129 | 20년 전 | 2942 | ||
| 128 | 20년 전 | 3675 | ||
| 127 | 20년 전 | 3513 | ||
| 126 | 20년 전 | 3765 | ||
| 125 | 20년 전 | 8594 | ||
| 124 | 20년 전 | 2602 | ||
| 123 | 20년 전 | 3750 | ||
| 122 | 20년 전 | 3209 | ||
| 121 | 20년 전 | 2611 | ||
| 120 | 20년 전 | 2673 | ||
| 119 | 20년 전 | 2587 | ||
| 118 | 20년 전 | 2861 | ||
| 117 |
|
20년 전 | 3062 | |
| 116 | 20년 전 | 5315 | ||
| 115 | 20년 전 | 3924 | ||
| 114 | 20년 전 | 4973 | ||
| 113 | 20년 전 | 6212 | ||
| 112 | 20년 전 | 7325 | ||
| 111 | 20년 전 | 18431 | ||
| 110 | 20년 전 | 6875 | ||
| 109 | 20년 전 | 2885 | ||
| 108 | 20년 전 | 4141 | ||
| 107 |
prosper
|
20년 전 | 2501 | |
| 106 |
prosper
|
20년 전 | 4319 | |
| 105 |
아우겐나이스
|
20년 전 | 2913 | |
| 104 | 20년 전 | 2260 | ||
| 103 | 20년 전 | 2478 | ||
| 102 | 20년 전 | 2261 | ||
| 101 | 20년 전 | 2576 | ||
| 100 | 20년 전 | 1750 | ||
| 99 | 20년 전 | 1572 | ||
| 98 | 20년 전 | 1618 | ||
| 97 | 20년 전 | 2131 | ||
| 96 | 20년 전 | 1880 | ||
| 95 | 20년 전 | 2378 | ||
| 94 | 20년 전 | 3567 | ||
| 93 | 20년 전 | 1567 | ||
| 92 | 20년 전 | 1757 | ||
| 91 | 20년 전 | 3183 | ||
| 90 | 20년 전 | 2343 | ||
| 89 | 20년 전 | 3172 | ||
| 88 | 20년 전 | 2872 | ||
| 87 | 20년 전 | 3299 | ||
| 86 | 20년 전 | 5136 | ||
| 85 | 20년 전 | 2523 | ||
| 84 | 20년 전 | 4825 | ||
| 83 | 20년 전 | 2507 | ||
| 82 | 20년 전 | 3124 | ||
| 81 | 20년 전 | 7631 | ||
| 80 | 20년 전 | 3825 | ||
| 79 | 20년 전 | 3211 | ||
| 78 | 20년 전 | 4697 | ||
| 77 | 20년 전 | 2903 | ||
| 76 | 20년 전 | 6222 | ||
| 75 | 20년 전 | 4471 | ||
| 74 | 20년 전 | 5783 | ||
| 73 | 20년 전 | 3627 | ||
| 72 | 20년 전 | 5971 | ||
| 71 | 21년 전 | 3119 | ||
| 70 | 21년 전 | 2845 | ||
| 69 | 21년 전 | 2642 | ||
| 68 | 21년 전 | 2448 | ||
| 67 | 21년 전 | 2658 | ||
| 66 | 21년 전 | 2673 | ||
| 65 | 21년 전 | 3791 | ||
| 64 | 21년 전 | 2828 | ||
| 63 | 21년 전 | 2457 | ||
| 62 | 21년 전 | 2266 | ||
| 61 | 21년 전 | 3079 | ||
| 60 | 21년 전 | 3134 | ||
| 59 | 21년 전 | 2520 | ||
| 58 | 21년 전 | 2593 | ||
| 57 | 21년 전 | 2968 | ||
| 56 | 21년 전 | 2326 | ||
| 55 | 21년 전 | 2763 | ||
| 54 | 21년 전 | 2129 | ||
| 53 | 21년 전 | 2355 | ||
| 52 | 21년 전 | 2701 | ||
| 51 |
prosper
|
21년 전 | 2351 | |
| 50 |
prosper
|
21년 전 | 2172 | |
| 49 | 21년 전 | 2180 | ||
| 48 | 21년 전 | 2344 | ||
| 47 | 21년 전 | 1935 | ||
| 46 | 21년 전 | 1931 | ||
| 45 | 21년 전 | 2136 | ||
| 44 | 21년 전 | 2362 | ||
| 43 | 21년 전 | 4583 | ||
| 42 |
prosper
|
21년 전 | 2716 | |
| 41 |
prosper
|
21년 전 | 2115 | |
| 40 | 21년 전 | 2181 | ||
| 39 | 21년 전 | 2151 | ||
| 38 | 21년 전 | 2421 | ||
| 37 | 21년 전 | 2570 | ||
| 36 | 21년 전 | 1777 | ||
| 35 | 21년 전 | 4073 | ||
| 34 | 21년 전 | 3851 | ||
| 33 | 21년 전 | 2990 | ||
| 32 |
prosper
|
21년 전 | 2906 | |
| 31 | 21년 전 | 5286 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기