3년전에 만들었던 링크 인기도 자료.. > 기획자팁

기획자팁

기획과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

3년전에 만들었던 링크 인기도 자료.. 정보

3년전에 만들었던 링크 인기도 자료..

본문

이거 3년전에 만들어서 phpschool 에 올렸던건데
 
오늘 디져보니 나와서 여기도 올릴께요..ㅋㅋ
 
<?
 /*
   제작 2008.05.15
   제작자 서비
   주요사이트들의 링크인기도 를 가져와서 보여주기
 */
 // 구글 카운트 가져오기
 function get_googlecount($url,$urlfull){
   if($googlecount=@substr($googlecount,$start+44+strlen($url),$stop-$start-(44+strlen($url)));
         return str_replace(",","",$googlecount);
     }
    }
   }
 }
 // 네이버 카운트 가져오기
 function get_navercount($urlfull){
   if($start=@strpos($navercount,"<span class=\"title_num\">");
     if($start>=1){
        $navercount=@substr($navercount,$start1+2,$stop1-6);
        return str_replace(",","",$navercount);
     }
    }
   }
 }
 // 야후 카운트 가져오기
 function get_yahoocount($urlfull){
  if($fp=@fopen($urlfull, "r")){
   while($yahoocount=@substr($yahoocount,$start1+2,$stop1-6);
     $yahoocount = explode("-",$yahoocount);
     $yahoocount = ltrim($yahoocount[0]);
     $yahoocount = rtrim($yahoocount);
     $yahoocount = explode(" ",$yahoocount);
     return str_replace(",","",$yahoocount[0]);
    }
   }
  }
 }
 // 다음 카운트 가져오기
 function get_daumcount($urlfull){
  if($daumcount=@substr($daumcount,$stop-16,$stop-($stop-16));
     http://web.search.naver.com/search.naver?where=webkr&sm=tab_jum&query=link%3Ahttp%3A//".$url."";
 $navercount = get_navercount($urlfull1);   // 네이버 갯수
 if($navercount == "") $navercount = 1;
 $navercount = ceil($navercount);
 $urlfull2 = "http://www.google.co.kr/search?complete=1&hl=ko&q=link%3Ahttp%3A%2F%2F".$url."&btnG=Google+%EA%B2%80%EC%83%89&lr=";
 $googlecount = get_googlecount($url,$urlfull2); // 구글 갯수
 $googltop =   ceil($googlecount)/($navercount * 100);
 $googltop = round($googltop,3);
 $urlfull3 = "http://kr.search.yahoo.com/search/web?p=link%3Ahttp%3A%2F%2F".$url."";
 $yahoocount = get_yahoocount($urlfull3);
 $yahootop =   ceil($yahoocount)/($navercount * 100);
 $yahootop = round($yahootop,3);
 $urlfull4 = "http://search.daum.net/search?t__nil_searchbox=btn&w=dir&q=link:http://".$url."";
 $daumcount = get_daumcount($urlfull4);
 $daumtop =   ceil($daumcount)/($navercount * 100);
 $daumtop = round($daumtop,3);
?>
                <tr>
                  <td height="8"></td>
                </tr>
                <tr>
                  <td height="30" class="t11_11"> <span class="t11_9"><strong><?=$url?></strong></span> 사이트의 링크수는<span class="t11_9"><strong> <?=number_format($yahoocount)?> </strong></span>개입니다.</td>
                </tr>
                <tr>
                  <td height="2" bgcolor="749DC7"></td>
                </tr>
                <tr>
                  <td> </td>
                </tr>
    <tr>
     <td>
      <table border=0 width=100% cellpadding=4 cellspacing=1 bgcolor="F7F7F7" style="BORDER-BOTTOM: #EAEAEA 1px solid">
       <tr>
        <td height="2" bgcolor="2882E1" colspan=6></td>
       </tr>
       <tr>
        <td class=tblm_th align=center>검색엔진</td>
        <td class=tblm_th align=center>링크인기도</td>
        <td class=tblm_th align=center>링크인기도 지수</td>
        <td class=tblm_th align=center>조회</td>
       </tr>
       <tr>
        <td height="1" bgcolor="2882E1" colspan=6></td>
       </tr>
       <tr bgcolor="#FFFFFF">
        <td align=center>구글</td>
        <td align=center><?=number_format($googlecount);?></td>
        <td align=center><?=$googltop?></td>
        <td align=center><a href="<?=$urlfull2?>" target=new>조회</a></td>
       </tr>
       <tr bgcolor="#F6F6F6">
        <td align=center>야후</td>
        <td align=center><?=number_format($yahoocount);?></td>
        <td align=center><?=$yahootop?></td>
        <td align=center><a href="<?=$urlfull3?>" target=new>조회</a></td>
       </tr>
       <tr bgcolor="#FFFFFF">
        <td align=center>다음</td>
        <td align=center><?=number_format($daumcount);?></td>
        <td align=center><?=$daumtop?></td>
        <td align=center><a href="<?=$urlfull4?>" target=new>조회</a></td>
       </tr>
      </table>     
     </td>
    </tr>
    <?}?>
              </table></td>
            </tr>
          </table>
추천
0

댓글 2개

3년전꺼라 그런가봐요 ㅡㅡ
조만간 업그레이드 해볼께요
api 쓰기 싫으신 분들은 유용하게 쓸수있을꺼같기도 하고 ㅡㅡ
전체 1,053
기획자팁 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT