2002/03/28 17:29:03     11720     0   
   [Á¦´©½ºÆÁ]MP3ÆÄÀϸ¦ °Ë»öÇÏ¿© À©¾ÚÇÁ·Î ½Ç½Ã°£ °¨»óÇϱâ
[¿ø¸®ÀÌÇØ]
µÎ°¡Áö °Ë»ö ±â´ÉÀÌ Á¸ÀçÇϴµ¥..
°Ë»ö1.ÀÔ·ÂÇÑ URL°Ë»öÇÏ¿© »ç¿îµå ÆÄÀϸ¸ »Ì¾Æ ¿É´Ï´Ù.
°Ë»ö2.¿¥ÆĽº»ç¿îµåÆÄÀÏ °Ë»ö ÆûÀ» ³»ºÎ¿¡ Ãß°¡ÇØ URL°Ë»öÀÌ ¾Æ´Ñ Å°¿öµå °Ë»öÀ» ÇÏ¿© »ç¿îµå ÆÄÀÏÀ» »Ì¾Æ ¿É´Ï´Ù.
°Ë»öµÈ ¸®½ºÆ®¸¦ Á÷Á¢ Ŭ¸¯ÇÏ¸é ´Ù¿î·Îµå µÇ°í "WinAmp½Ç½Ã°£µè±â"¸¦ Ŭ¸¯ÇÏ¸é °Ë»öµÈ ¸®½ºÆ®°¡ list.m3uÆÄÀÏ¿¡ ÀúÀåµÈ ÈÄ À©¾ÚÇÁ°¡ ½ÇÇàµË´Ï´Ù.

[ŽºÆ® ¹æ¹ý]
»ç¿îµåÆÄÀÏÀÌ ¸µÅ©µÈ À¥ÆäÀÌÁö¸¦ URLÆû¿¡ ³Ö¾î °Ë»öÇÏ´Â ¹æ¹ý°ú ¿¥ÆĽº»ç¿îµå°Ë»öÆû¿¡ Å°¿öµå(¿¹:ses)¸¦ ³Ö°í °Ë»öÇÏ´Â ¾ÆÁÖ ½¬¿î °Ë»ö ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.

ÆÄÀÏÀ̸§:findmp3.php
<?  //À½¾ÇÆÄÀÏ °Ë»öÇÏ¿© À©¾ÚÇÁ·Î ½Ç½Ã°£ µè±â

echo "
<body>
<center>
<form method=post action=$PHP_SELF>
<input type=hidden name=ext value=ok>
À½¾ÇÆÄÀϸ¦ °Ë»öÇÏ°í ½ÍÀº À¥ÆäÀÌÁö¸¦ ÀÔ·ÂÇϼ¼¿ä.<br>
[mp3,mp2,mid,wav ÆÄÀÏ°Ë»ö Áö¿ø]<br>
URL°Ë»ö <input type=text name=url size=40> <input type=submit value=»ç¿îµå°Ë»ö> <br>
<font color=blue>¿¥ÆĽº»ç¿îµå°Ë»ö</font> <input type=text name=amurl size=30 value=''><input type=submit value=Å°¿öµå+ÆÄÀÏ°Ë»ö>
</form>
<form method=post action=./findmp3_m3u.php>
<input type=submit value=WinAmp·Î½Ç½Ã°£µè±â>
</form>
</center>
</body>
";
if( $ext == "ok" )
{
if($url){$url=$url;}
else if($amurl){$url="http://search.empas.com/search/avi.html?q=".$amurl;}
        
$fcontents=implode(" ",file($url));    
                           //\nÀ¸·Î ÀúÀåµÈ ¹è¿­À» ¿¬°á¹®ÀÚ¸¦ ÀÌ¿ëÇÏ¿© ÇÑ°³ÀÇ ½ºÆ®¸µº¯¼ö¿¡ ÀúÀå
//$fcontents=htmlspecialchars($fcontents);
$fcontents=explode("http://",$fcontents);
$count=1;
echo"$url ¿¡¼­ °Ë»öµÈ À½¾ÇÆÄÀÏ ¸ñ·Ï";
for($i=1; $i< sizeof($fcontents); $i++)
{
if(eregi("(\.mp3)|(\.wav)|(\.mid)|(\.mp2)",$fcontents[$i]))
{
eregi("(([a-zA-Z0-9\_\-\.\/\~\@\?\=\%\&])(.+)(\.mp3|\.wav|\.mid|\.mp2))",$fcontents[$i],$memo);                        
if(!eregi($memo[0],$musiclist))
{
$musiclist.=$memo[0];         //Áߺ¹ ÆÄÀÏ °Ë»ç..
echo" $count <a href='http://$memo[0]'>http://$memo[0]</a> ";  
        //¹Ýº¹¹®¿¡ ÀÇÇØ ¹è¿­$memo°¡ Çѹø¸¸ ÀúÀåµÇ°í °»½ÅµÈ´Ù.
$count++;
$mp3list.="#EXTM3U\n#EXTINF:0,http://$memo[0]\nhttp://$memo[0]\n";   //m3uÆÄÀÏ¿¡¼­ »ç¿ëµÇ´Â Çü½ÄÀ¸·Î ¹Ù²Þ
}
}
}
$fp=fopen("list.m3u","w");  //list.m3u´Â findmp3.phpÆÄÀÏÀÌ À§Ä¡ÇÑ µð·ºÅ丮¿¡ »ý¼ºµÈ´Ù.
fwrite($fp,$mp3list);
fclose($fp);
echo"°Ë»öµÈ ÃÑ ÆÄÀÏ °³¼ö:".($count-1)."°³";
}
?>

µÎ¹ø° ÆÄÀÏÀ̸§:findmp3_m3u.php
<?
$myurl="http://".$SERVER_NAME."/php";   //ÀÚ½ÅÀÇ °èÁ¤ÁÖ¼Ò¸¦ ÀÔ·ÂÇÑ´Ù. list.m3u´Â findmp3.phpÆÄÀÏÀÌ À§Ä¡ÇÑ µð·ºÅ丮¿¡ »ý¼ºµÈ´Ù.
header("location:$myurl/list.m3u");
?>
   
ÄÚ¸àÆ®¸¦ ÀÛ¼ºÇϽøé 2 Æ÷ÀÎÆ®°¡ Áö±ÞµË´Ï´Ù.

       

264 ¶óÀ̼¾½º ¸¸·áµÈ Æ÷Åä¼¥ ¾¾¸®¾ó ÃʱâÈ­Çϱâ 10/12 19342
263 ÄÄÇ»ÅÍ ´ÜÃàÅ° ¾Ë¸é »¡¶óÁø´Ù [Æß] [1] ¹Ù¶÷µ¹ÀÌ 10/04 12530 01/13(12:24)
262 »ç¾çµþ¸®´Â ºÐÀÌ MSN¾²°í ½ÍÀ»¶©.. [4] RedEye¢â 09/20 13814 01/20(01:07)
261 ¹Ø¿¡ ºÐ²¨ º¸´Ù°¡ Á¦°¡ ¾Ë°í ÀÖ´Â °Å Çϳª ¿Ã·Á ... õȣ¼º 09/17 13376
260 ´À·ÁÅÍÁø ÀÎÅͳݼӵµ Á¼½Ò¸¸Å­À̳ª¸¶ ´Ã·Áº¸±â MSN 09/06 12753
259 ¹®ÀÚµðÀÚÀÎ2 movengroove 08/18 11732
258 ¹®ÀÚµðÀÚÀÎ1 movengroove 08/18 11672
257 Æ÷Åä¼¥: °ÅÄ£ Å׵θ® ¸¸µé±â movengroove 08/18 12849
256 Áñ°Üã±â ¼ø¼­ º¹¿øÇϱâ sparkjsj 07/24 15297
255 »ç¿ëÇϱâ ÆíÇÑ ¿Ü±¹ À¥ Çϵåµé sparkjsj 07/24 14491
254 ´ë¿ë·® ÆÄÀÏ Àü¼Û¿¡ À¯¿ëÇÑ MetQ.com sparkjsj 07/24 13555
253 ±¸±Û AdSesne - ¼±¸ÅÀÔ ÈÄÃ᫐ Çϱâ [1] sparkjsj 07/24 12782 07/24(21:42)
252 VM¿þ¾î ºü¸£°Ô »ç¿ëÇϱâ [1] sparkjsj 07/24 16577 07/24(16:22)
251 Ç÷¡½¬ ¸Þ¸ð¸®ÀÇ ReadyBoost °¡´É ¿©ºÎ È®ÀÎÇϱâ sparkjsj 07/24 14107
250 »ï¼º LCD ¸ð´ÏÅÍ ÆгΠȸ»ç ¾Ë¾Æº¸±â sparkjsj 07/24 14682
FIRST123456714LAST