이거 3년전에 만들어서 phpschool 에 올렸던건데
오늘 디져보니 나와서 여기도 올릴께요..ㅋㅋ
<?
/*
제작 2008.05.15
제작자 서비
주요사이트들의 링크인기도 를 가져와서 보여주기
*/
// 구글 카운트 가져오기
function get_googlecount($url,$urlfull){
if($fp=@fopen($urlfull, "r")){
while($googlecount=@fgets($fp,300)){
$start=@strpos($googlecount,"<font size=-1><b>http://".$url."</b>에 링크된 약 <b>");
if($start>1){
$stop=@strpos($googlecount,"</b>개 결과 중 <b>");
$googlecount=@substr($googlecount,$start+44+strlen($url),$stop-$start-(44+strlen($url)));
return str_replace(",","",$googlecount);
}
}
}
}
/*
제작 2008.05.15
제작자 서비
주요사이트들의 링크인기도 를 가져와서 보여주기
*/
// 구글 카운트 가져오기
function get_googlecount($url,$urlfull){
if($fp=@fopen($urlfull, "r")){
while($googlecount=@fgets($fp,300)){
$start=@strpos($googlecount,"<font size=-1><b>http://".$url."</b>에 링크된 약 <b>");
if($start>1){
$stop=@strpos($googlecount,"</b>개 결과 중 <b>");
$googlecount=@substr($googlecount,$start+44+strlen($url),$stop-$start-(44+strlen($url)));
return str_replace(",","",$googlecount);
}
}
}
}
// 네이버 카운트 가져오기
function get_navercount($urlfull){
if($fp=@fopen($urlfull, "r")){
while($navercount=@fgets($fp,300)){
$start=@strpos($navercount,"<span class=\"title_num\">");
function get_navercount($urlfull){
if($fp=@fopen($urlfull, "r")){
while($navercount=@fgets($fp,300)){
$start=@strpos($navercount,"<span class=\"title_num\">");
if($start>=1){
$stop=@strpos($navercount,"</span>");
$navercount=@substr($navercount,$start+24,$stop-($start));
$start1=@strpos($navercount,"/");
$stop1=@strpos($navercount,"건</span>");
$navercount=@substr($navercount,$start1+2,$stop1-6);
return str_replace(",","",$navercount);
}
}
}
}
$stop=@strpos($navercount,"</span>");
$navercount=@substr($navercount,$start+24,$stop-($start));
$start1=@strpos($navercount,"/");
$stop1=@strpos($navercount,"건</span>");
$navercount=@substr($navercount,$start1+2,$stop1-6);
return str_replace(",","",$navercount);
}
}
}
}
while($yahoocount=@fgets($fp,300)){
$stop=@strpos($yahoocount," </span>");//
if($stop>=1){
$yahoocount=@substr($yahoocount,$stop-16,$stop-($stop-16));
$start1=@strpos($yahoocount,"[");
$stop1=@strpos($yahoocount,"]");
$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]);
}
}
}
}
$stop=@strpos($yahoocount," </span>");//
if($stop>=1){
$yahoocount=@substr($yahoocount,$stop-16,$stop-($stop-16));
$start1=@strpos($yahoocount,"[");
$stop1=@strpos($yahoocount,"]");
$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($fp=@fopen($urlfull, "r")){
while($daumcount=@fgets($fp,300)){
$stop=@strpos($daumcount,")</span>");
if($stop>=1){
$daumcount=@substr($daumcount,$stop-16,$stop-($stop-16));
function get_daumcount($urlfull){
if($fp=@fopen($urlfull, "r")){
while($daumcount=@fgets($fp,300)){
$stop=@strpos($daumcount,")</span>");
if($stop>=1){
$daumcount=@substr($daumcount,$stop-16,$stop-($stop-16));
$start1=@strpos($daumcount,"총");
$stop1=@strpos($daumcount,"개");
$daumcount=@substr($daumcount,$start1+2,$stop1-($start1+2));
return str_replace(",","",$daumcount);
}
}
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="9CB8D5">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="8" cellspacing="0" bgcolor="F4F7FB">
<form name=f1 action="<?=$PHP_SELF?>">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" class="t11_6">도메인 입력 <INPUT class=input_blue
style="PADDING-LEFT: 4px; WIDTH: 200px; HEIGHT: 18px; font-family:돋움" name=url value=<?=$url?> ><input type="image" src="../img/b_search1.gif" width="46" height="18" hspace="3" align="absmiddle" border=0><span class="t11_2">예) www.daum.net 또는 daum.net</span></td>
</tr>
<tr>
<td height="1" bgcolor="B1C7DF"></td>
</tr>
<tr>
<td height="70" valign="bottom" class="t11_6">- 링크인기도는 조회 도메인에 연결된 링크수를 검색합니다.<br>
- 실시간 검색하므로 검색엔진의 상태에 따라서 다소 시간이 걸릴 수 있습니다.<br>
- 링크인기도는 검색엔진의 검색결과에 영향을 미치는 중요 변수 중 하나입니다.<br>
- 링크인기도지수(%) = 조회사이트 링크인기도 / 네이버(www.naver.com) 링크인기도 * 100</td>
</tr>
</table></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
<?if($url){?>
<?
//링크인기도지수(%) = 조회사이트 링크인기도 / 네이버(www.naver.com) 링크인기도 * 100
$urlfull1 = "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);
$stop1=@strpos($daumcount,"개");
$daumcount=@substr($daumcount,$start1+2,$stop1-($start1+2));
return str_replace(",","",$daumcount);
}
}
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="9CB8D5">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="8" cellspacing="0" bgcolor="F4F7FB">
<form name=f1 action="<?=$PHP_SELF?>">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" class="t11_6">도메인 입력 <INPUT class=input_blue
style="PADDING-LEFT: 4px; WIDTH: 200px; HEIGHT: 18px; font-family:돋움" name=url value=<?=$url?> ><input type="image" src="../img/b_search1.gif" width="46" height="18" hspace="3" align="absmiddle" border=0><span class="t11_2">예) www.daum.net 또는 daum.net</span></td>
</tr>
<tr>
<td height="1" bgcolor="B1C7DF"></td>
</tr>
<tr>
<td height="70" valign="bottom" class="t11_6">- 링크인기도는 조회 도메인에 연결된 링크수를 검색합니다.<br>
- 실시간 검색하므로 검색엔진의 상태에 따라서 다소 시간이 걸릴 수 있습니다.<br>
- 링크인기도는 검색엔진의 검색결과에 영향을 미치는 중요 변수 중 하나입니다.<br>
- 링크인기도지수(%) = 조회사이트 링크인기도 / 네이버(www.naver.com) 링크인기도 * 100</td>
</tr>
</table></td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
<?if($url){?>
<?
//링크인기도지수(%) = 조회사이트 링크인기도 / 네이버(www.naver.com) 링크인기도 * 100
$urlfull1 = "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);
$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);
$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>
$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>
댓글 2개
피디인사이드
14년 전
안되네요.... 모두 조회수 0으로만 나오네요....
넓은마인드
14년 전
3년전꺼라 그런가봐요 ㅡㅡ
조만간 업그레이드 해볼께요
api 쓰기 싫으신 분들은 유용하게 쓸수있을꺼같기도 하고 ㅡㅡ
조만간 업그레이드 해볼께요
api 쓰기 싫으신 분들은 유용하게 쓸수있을꺼같기도 하고 ㅡㅡ
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7330 | 11년 전 | 1669 | ||
| 7329 | 11년 전 | 930 | ||
| 7328 | 11년 전 | 2215 | ||
| 7327 | 11년 전 | 1715 | ||
| 7326 | 11년 전 | 3796 | ||
| 7325 | 11년 전 | 2261 | ||
| 7324 | 11년 전 | 4505 | ||
| 7323 |
호식이와미돌
|
11년 전 | 1276 | |
| 7322 |
호식이와미돌
|
11년 전 | 1137 | |
| 7321 | 11년 전 | 1778 | ||
| 7320 | 11년 전 | 1753 | ||
| 7319 | 11년 전 | 1314 | ||
| 7318 |
|
11년 전 | 964 | |
| 7317 |
멋진남자임
|
11년 전 | 1612 | |
| 7316 |
잘살아보자
|
11년 전 | 982 | |
| 7315 | 11년 전 | 1085 | ||
| 7314 | 11년 전 | 1303 | ||
| 7313 |
잘살아보자
|
11년 전 | 1115 | |
| 7312 | 11년 전 | 875 | ||
| 7311 |
사랑한데이
|
11년 전 | 2055 | |
| 7310 |
잘살아보자
|
11년 전 | 1870 | |
| 7309 |
잘살아보자
|
11년 전 | 3039 | |
| 7308 |
잘살아보자
|
11년 전 | 1015 | |
| 7307 |
잘살아보자
|
11년 전 | 778 | |
| 7306 | 11년 전 | 863 | ||
| 7305 |
잘살아보자
|
11년 전 | 2753 | |
| 7304 | 11년 전 | 1012 | ||
| 7303 | 11년 전 | 1211 | ||
| 7302 | 11년 전 | 715 | ||
| 7301 | 11년 전 | 1498 | ||
| 7300 |
mijaya
|
11년 전 | 1490 | |
| 7299 | 11년 전 | 901 | ||
| 7298 | 11년 전 | 1082 | ||
| 7297 | 11년 전 | 762 | ||
| 7296 | 11년 전 | 721 | ||
| 7295 | 11년 전 | 1551 | ||
| 7294 | 11년 전 | 894 | ||
| 7293 | 11년 전 | 798 | ||
| 7292 | 11년 전 | 903 | ||
| 7291 |
잘살아보자
|
11년 전 | 1089 | |
| 7290 |
잘살아보자
|
11년 전 | 736 | |
| 7289 | 11년 전 | 780 | ||
| 7288 |
잘살아보자
|
11년 전 | 1297 | |
| 7287 | 11년 전 | 819 | ||
| 7286 |
잘살아보자
|
11년 전 | 1316 | |
| 7285 | 11년 전 | 810 | ||
| 7284 | 11년 전 | 978 | ||
| 7283 | 11년 전 | 1006 | ||
| 7282 | 11년 전 | 757 | ||
| 7281 | 11년 전 | 787 | ||
| 7280 | 11년 전 | 1024 | ||
| 7279 | 11년 전 | 1955 | ||
| 7278 | 11년 전 | 787 | ||
| 7277 | 11년 전 | 803 | ||
| 7276 | 11년 전 | 742 | ||
| 7275 | 11년 전 | 1156 | ||
| 7274 | 11년 전 | 806 | ||
| 7273 | 11년 전 | 710 | ||
| 7272 | 11년 전 | 1040 | ||
| 7271 | 11년 전 | 1370 | ||
| 7270 | 11년 전 | 997 | ||
| 7269 | 11년 전 | 925 | ||
| 7268 | 11년 전 | 966 | ||
| 7267 | 11년 전 | 1799 | ||
| 7266 | 11년 전 | 870 | ||
| 7265 | 11년 전 | 928 | ||
| 7264 |
잘살아보자
|
11년 전 | 2704 | |
| 7263 |
잘살아보자
|
11년 전 | 2253 | |
| 7262 |
잘살아보자
|
11년 전 | 1138 | |
| 7261 |
잘살아보자
|
11년 전 | 1627 | |
| 7260 |
잘살아보자
|
11년 전 | 1242 | |
| 7259 | 11년 전 | 1155 | ||
| 7258 |
잘살아보자
|
11년 전 | 1288 | |
| 7257 |
잘살아보자
|
11년 전 | 1889 | |
| 7256 | 11년 전 | 928 | ||
| 7255 |
그누5입문
|
11년 전 | 1937 | |
| 7254 | 11년 전 | 2161 | ||
| 7253 |
|
11년 전 | 856 | |
| 7252 | 11년 전 | 1001 | ||
| 7251 | 11년 전 | 712 | ||
| 7250 | 11년 전 | 1673 | ||
| 7249 | 11년 전 | 1543 | ||
| 7248 |
sogo87
|
11년 전 | 1030 | |
| 7247 | 11년 전 | 912 | ||
| 7246 | 11년 전 | 686 | ||
| 7245 |
잘살아보자
|
11년 전 | 1067 | |
| 7244 | 11년 전 | 1519 | ||
| 7243 |
presee
|
11년 전 | 587 | |
| 7242 |
sogo87
|
11년 전 | 777 | |
| 7241 | 11년 전 | 857 | ||
| 7240 |
브라이언2
|
11년 전 | 880 | |
| 7239 |
|
11년 전 | 1085 | |
| 7238 | 11년 전 | 2616 | ||
| 7237 |
잘살아보자
|
11년 전 | 2274 | |
| 7236 |
dethos79
|
11년 전 | 1836 | |
| 7235 |
멋진남자임
|
11년 전 | 1396 | |
| 7234 | 11년 전 | 1338 | ||
| 7233 | 11년 전 | 2311 | ||
| 7232 | 11년 전 | 1580 | ||
| 7231 | 11년 전 | 2780 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기