<?
///
/// 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 452 | ||
| 7929 | 9년 전 | 385 | ||
| 7928 | 9년 전 | 464 | ||
| 7927 | 9년 전 | 379 | ||
| 7926 | 9년 전 | 688 | ||
| 7925 | 9년 전 | 402 | ||
| 7924 | 9년 전 | 385 | ||
| 7923 | 9년 전 | 379 | ||
| 7922 | 9년 전 | 414 | ||
| 7921 | 9년 전 | 432 | ||
| 7920 | 9년 전 | 343 | ||
| 7919 | 9년 전 | 352 | ||
| 7918 | 9년 전 | 507 | ||
| 7917 | 9년 전 | 357 | ||
| 7916 | 9년 전 | 446 | ||
| 7915 | 9년 전 | 453 | ||
| 7914 | 9년 전 | 467 | ||
| 7913 | 9년 전 | 633 | ||
| 7912 | 9년 전 | 465 | ||
| 7911 | 9년 전 | 398 | ||
| 7910 | 9년 전 | 444 | ||
| 7909 | 9년 전 | 550 | ||
| 7908 | 9년 전 | 488 | ||
| 7907 | 9년 전 | 428 | ||
| 7906 | 9년 전 | 443 | ||
| 7905 | 9년 전 | 409 | ||
| 7904 | 9년 전 | 399 | ||
| 7903 | 9년 전 | 399 | ||
| 7902 | 9년 전 | 589 | ||
| 7901 |
|
9년 전 | 766 | |
| 7900 | 9년 전 | 648 | ||
| 7899 | 9년 전 | 430 | ||
| 7898 | 9년 전 | 428 | ||
| 7897 | 9년 전 | 387 | ||
| 7896 | 9년 전 | 399 | ||
| 7895 | 9년 전 | 515 | ||
| 7894 | 9년 전 | 431 | ||
| 7893 | 9년 전 | 404 | ||
| 7892 | 9년 전 | 443 | ||
| 7891 | 9년 전 | 804 | ||
| 7890 | 9년 전 | 1231 | ||
| 7889 | 9년 전 | 766 | ||
| 7888 |
limsy1987
|
9년 전 | 578 | |
| 7887 | 9년 전 | 607 | ||
| 7886 | 9년 전 | 495 | ||
| 7885 | 9년 전 | 465 | ||
| 7884 | 9년 전 | 456 | ||
| 7883 | 9년 전 | 461 | ||
| 7882 | 9년 전 | 520 | ||
| 7881 | 9년 전 | 494 | ||
| 7880 | 9년 전 | 617 | ||
| 7879 | 9년 전 | 501 | ||
| 7878 | 9년 전 | 1276 | ||
| 7877 | 9년 전 | 807 | ||
| 7876 | 9년 전 | 542 | ||
| 7875 | 9년 전 | 614 | ||
| 7874 |
|
9년 전 | 829 | |
| 7873 | 9년 전 | 550 | ||
| 7872 | 9년 전 | 713 | ||
| 7871 | 9년 전 | 530 | ||
| 7870 | 9년 전 | 648 | ||
| 7869 | 9년 전 | 465 | ||
| 7868 | 9년 전 | 504 | ||
| 7867 | 9년 전 | 501 | ||
| 7866 | 9년 전 | 557 | ||
| 7865 | 9년 전 | 495 | ||
| 7864 | 9년 전 | 559 | ||
| 7863 | 9년 전 | 553 | ||
| 7862 | 9년 전 | 517 | ||
| 7861 | 9년 전 | 688 | ||
| 7860 | 9년 전 | 666 | ||
| 7859 | 9년 전 | 443 | ||
| 7858 | 9년 전 | 746 | ||
| 7857 | 9년 전 | 1136 | ||
| 7856 | 9년 전 | 566 | ||
| 7855 | 9년 전 | 799 | ||
| 7854 | 9년 전 | 753 | ||
| 7853 | 9년 전 | 644 | ||
| 7852 | 9년 전 | 564 | ||
| 7851 | 9년 전 | 555 | ||
| 7850 | 9년 전 | 634 | ||
| 7849 | 9년 전 | 400 | ||
| 7848 | 9년 전 | 465 | ||
| 7847 | 9년 전 | 710 | ||
| 7846 | 9년 전 | 494 | ||
| 7845 | 9년 전 | 467 | ||
| 7844 | 9년 전 | 438 | ||
| 7843 | 9년 전 | 475 | ||
| 7842 | 9년 전 | 454 | ||
| 7841 | 9년 전 | 428 | ||
| 7840 | 9년 전 | 442 | ||
| 7839 | 9년 전 | 485 | ||
| 7838 | 10년 전 | 551 | ||
| 7837 | 10년 전 | 383 | ||
| 7836 | 10년 전 | 441 | ||
| 7835 | 10년 전 | 517 | ||
| 7834 |
|
10년 전 | 1227 | |
| 7833 | 10년 전 | 487 | ||
| 7832 | 10년 전 | 462 | ||
| 7831 | 10년 전 | 623 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기