![](/bink.gif) |
|
| ![](/bink.gif) |
Çì´õ·Î asx ÆÄÀÏ À½¾Ç ÁÖ¼Ò¸¦ ¼û°ÜºÁ¿ä. |
|
|
![](icon/private_name/1.gif) ȨÆäÀÌÁö |
19³â Àü |
´ëÃæ Àд٠º¸½Ã¸é ¾î¶² ³»¿ëÀÎÁö ½±°Ô °¨ÀÌ ¿À½Ã¸®¶ó »ý°¢µË´Ï´Ù.
ÀÏ´Ü ¾Ë°í¸®ÁòÀº ÀÌ·¸½À´Ï´Ù.
1. ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇØ get ¹æ½ÄÀ¸·Î play.php ·Î ÇÊ¿äÇÑ Á¤º¸µéÀ» º¸³À´Ï´Ù.
2. ±×·³ ±× Á¤º¸µéÀ» ¹Þ¾Æ asx Àç»ý ÆÄÀÏÀ» ¸¸µçÈÄ »Ñ·ÁÁÜ°ú µ¿½Ã¿¡ ¿¬ÁÖ°¡ µÇ´Â °ÍÀÌÁÒ.
°£´ÜÇÏÁö¿ä.
±Ùµ¥ ÁÖ¼Ò¸¦ ¼û±ä´Ù´Â °ÍÀÌ ¹«½¼ ¸»À̳İí¿ä.?
Àç»ýµÈ À©µµ¿ì ¹Ìµð¾î¿¡¼ ÆÄÀÏ > µî·ÏÁ¤º¸ > À§Ä¡ ¸¦ º¸½Ã¸é º¸Åë À½¾ÇÀÇ asx³ª asf ÆÄÀÏ ÁÖ¼Ò Ç¥½Ã µË´Ï´Ù.
ÇÏÁö¸¸ À§Ã³·³ Àç»ýÀ» ÇϰԵǸé
http://morami.net/test_play/play.php?title=Snowfall&musician=Brian*Crain&fn=snowfall
ÀÌ·¸°Ô Ç¥½Ã°¡ µÇÁö¿ä..^^
¹¹ º°°Å ¾Æ´Ñ°Å °°Áö¸¸..-.- ÇÊ¿ä·Î ÇÏ´Â ºÐÀÌ °è½Ç°Å °°¾Æ¼¿ä.
ÀÌÁ¦ ¼Ò½º¿Í ´ë·«ÀûÀÎ ¼³¸íÀ» µå¸®°Ú½À´Ï´Ù.
µÎ°³ÀÇ ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.
play_list,php (Ç÷¹ÀÌ ¸®½ºÆ® ÆÄÀÏ ÀÔ´Ï´Ù.)
play.php (Àç»ý¿¡ ÇÊ¿äÇÑ ÆÄÀÏÀÔ´Ï´Ù.)
play_list.php
-------------------------------------------------------------------------------------------------------
<script language=JavaScript>
function play(title,musician,fn)
{
location.replace("play.php?title=" + title + "&musician=" + musician + "&fn=" + fn);
}
</script>
1. <a href=.javascriptplay('A*new*Day','Brian*Crain','a_new_day')>A New Day</a><br>
2. <a href=.javascriptplay('Ave*Maria','Brian*Crain','ave_maria')>Ave Maria</a><br>
3. <a href=.javascriptplay('Tenderness','Brian*Crain','tenderness')>Tenderness</a><br>
4. <a href=.javascriptplay('Snowfall','Brian*Crain','snowfall')>Snowfall</a>
-------------------------------------------------------------------------------------------------------
¼Ò½º¼³¸í :
.javascriptplay('A*new*Day','Brian*Crain','a_new_day')
'A*new*Day' -> À½¾ÇÀÇ Á¦¸ñÀ» Àû¾î ÁÝ´Ï´Ù. °ø¹éÀÌ ÀÖÀ»½Ã ÀÚ½º°æ°í°¡ ³²À¸·Î °ø¹éÀÌ ÀÖÀ»½Ã * ·Î ä¿ö ÁÝ´Ï´Ù.
'Brian*Crain' -> ¹ÂÁö¼ÇÀ» Àû¾î ÁÝ´Ï´Ù. ¿ª½Ã °ø¹éÀÌ ÀÖÀ»½Ã * ·Î ä¿ö ÁÝ´Ï´Ù.
'a_new_day' -> È®ÀåÀÚ¸¦ »« ÆÄÀÏ À̸§À» Àû¾î ÁÝ´Ï´Ù. a_new_day.asx ¶ó¸é a_new_day ¸¸ Àû¾îÁÖ¸é µÇÁö¿ä.
À§¿Í °°Àº ½ÄÀ¸·Î ¹Ýº¹Çؼ Àû¾î ÁÖ½Ã¸é µË´Ï´Ù.
ÀÌ·¸°Ô Çؼ Á¦¸ñÀ» Ŭ¸¯Çϸé ÀÚ½º¿¡ play ÇÔ¼ö¸¦ È£ÃâÇؼ play.php·Î º¯¼ö¸¦ ³Ñ°Ü ÁÝ´Ï´Ù.
Á¦¸ñÀº $title ¶ó´Â º¯¼ö¿¡ ¹ÂÁö¼ÇÀº $musician À̶ó´Â º¯¼ö ÆÄÀÏÀ̸§Àº $fn À̶ó´Â º¯¼ö·Î ÀúÀåµÇ¾î ³Ñ°Ü ÁÝ´Ï´Ù.
play.php
-------------------------------------------------------------------------------------------------------
<?
header("Content-type:audio/x-ms-wax");
$title = str_replace( '*', ' ',$title);
$musician = str_replace( '*', ' ',$musician);
$url="http://home.bcline.com/oxxin/".$fn.".asf";
echo "<asx version=3>";
echo "<BANNER FIXED HREF=\"http://morami.net/briancrain/orderplay/banner.gif\">";
echo "<abstract>Brian Crain In nature [NewAge] </abstract>";
echo "<MoreInfo href = \"http://morami.net/briancrain\"/></BANNER>";
echo "<Title>morami's aroma</title>";
echo "<entry>";
echo "<title>$title</title>";
echo "<author>$musician</author>";
echo "<copyright>ÇØ´ç°îÀÇ ÀúÀÛ±ÇÀÚ</copyright>";
echo "<moreinfo href=\"http://morami.net/briancrain\" target=\"_blank\"></moreinfo>";
echo "<ref Href=\"$url\"/>";
echo "</entry>";
echo "</asx> ";
?>
-------------------------------------------------------------------------------------------------------
¼Ò½º¼³¸í :
$title = str_replace( '*', ' ',$title);
À§¿¡¼ ³Ñ°Ü ¹ÞÀº º¯¼ö¿¡¼ Á¦¸ñ°ú ¹ÂÁö¼ÇÀÇ À̸§¿¡ * ÇØÁÖ¾ú´ø°ÍÀ» str_replace ÇÔ¼ö·Î °ø¹éÀ¸·Î ¹Ù²ãÁÝ´Ï´Ù.
$url="http://home.bcline.com/oxxin/".$fn.".asf";
³Ñ°Ü ¹ÞÀº $fn ÆÄÀÏ À̸§¿¡ À½¾ÇÀÇ Àý´ë °æ·Î¿Í ÇÕü? Çؼ ¿Ï¼ºµÈ url À» ¸¸µì´Ï´Ù.
ÀÌÁ¦ °ÅÀÇ ³¡³µ½À´Ï´Ù.
asx ÆÄÀÏÀ» ¸¸µé°í »Ñ·ÁÁØÈÄ
header("Content-type:audio/x-ms-wax"); ·Î À©µµ¿ì ¹Ìµð¾î ÆÄÀÏ Å¸ÀÔÀ̶ó´Â °ÍÀ» ¾Ë¸³´Ï´Ù.
±×·¯¸é ¹Ù·Î À©µµ¿ì ¹Ìµð¾î Ç÷¹À̾ ÀÛµ¿Çϸç Àç»ýÀÌ µË´Ï´Ù.
µÇµµ·Ï ½±°Ô ¼³¸íÇÏ·Á°í ³ë·ÂÇߴµ¥ ¾î¶»°Ô ÀÌÇØ°¡ µÇ¼Ì´ÂÁö ¸ð¸£°Ú½À´Ï´Ù.
¸¶Áö¸·À¸·Î asx ÆÄÀÏ Æ÷¸Ë¿¡ ´ëÇؼ ¼³¸í µå¸®¸é¼ ¸¶¹«¸® Áú²²¿ä.
-------------------------------------------------------------------------------------------------------
echo "<asx version=3>";
echo "<BANNER FIXED HREF=\"http://morami.net/briancrain/orderplay/banner.gif\">";
// À©µµ¿ì ¹Ìµð¾î Àç»ý½Ã ÇÏ´Ü¿¡ º¸ÀÏ ¹è³ÊÀÇ °æ·Î¸¦ Àû¾î ÁÝ´Ï´Ù.[¼öÁ¤Çϼ¼¿ä]
echo "<abstract>Brian Crain In nature [NewAge] </abstract>";
// ¹è³Ê À§¿¡ ¸¶¿ì½º¸¦ ¿Ã·ÈÀ»¶§ dz¼±µµ¿ò¸»¿¡ µé¾î°¥ ³»¿ëÀÔ´Ï´Ù. alt="" ¿Í °°Àº ±â´ÉÀÌÁö¿ä.[¼öÁ¤Çϼ¼¿ä]
echo "<MoreInfo href = \"http://morami.net/briancrain\"/></BANNER>";
// ¹è³Ê¸¦ Ŭ¸¯ÇßÀ»¶§ À̵¿ÇÒ °æ·Î¸¦ Àû¾îÁÖ¼¼¿ä ÀÚ±â ȨÆäÀÌÁö ÁÖ¼Ò Àû¾îÁÖ¸é µÇ°ÚÁö¿ä. ^^ [¼öÁ¤Çϼ¼¿ä]
echo "<Title>morami's aroma</title>";
//º¸Åë ȨÆäÀÌÁö ŸÀÌƲÀ» Àû¾î ÁÝ´Ï´Ù. [¼öÁ¤Çϼ¼¿ä]
echo "<entry>";
echo "<title>$title</title>";
//Á¦¸ñ [¼öÁ¤ÇÏÁö ¸¶¼¼¿ä..^^;]
echo "<author>$musician</author>";
//¹ÂÁö¼Ç [¼öÁ¤ÇÏÁö ¸¶¼¼¿ä..^^;]
echo "<copyright>ÇØ´ç°îÀÇ ÀúÀÛ±ÇÀÚ</copyright>";
//Ä«ÇǶóÀÌÆ® ¼öÁ¤Çϼŵµ µÇÁö¸¸ º¸Åë ÀÌ·¸°Ôµé ÇÏÁö¿ä. ÈÄÈÄ ^^;
echo "<moreinfo href=\"http://morami.net/briancrain\" target=\"_blank\"></moreinfo>";
//Àç»ýµÇ´Â °îÀÇ Á¦¸ñÀ» Ŭ¸¯Çϸé À̵¿ÇÒ url ÀÔ´Ï´Ù. ȨÆäÀÌÁö ÁÖ¼Ò¸¦ Àû¾îÁÖ½Ã¸é µË´Ï´Ù. [¼öÁ¤Çϼ¼¿ä]
echo "<ref Href=\"$url\"/>";
// À½¾ÇÀÇ °æ·Î [¼öÁ¤ÇÏÁö ¸¶¼¼¿ä..^^;]
echo "</entry>";
echo "</asx> ";
-------------------------------------------------------------------------------------------------------
ÀÌ·Î½á ³Ê¹«³ªµµ Ç㹫ÇÑ ¼³¸íÀ» ¸¶Ä¡°Ú½À´Ï´Ù.
ÀÌ°Å ´Ù¾Æ´Â°Å ¾Æ´Ï³Ä°í µ¹´øÁö½Ã ¸¶¼¼¿ä.
Ãʺ¸ºÐµéÀ» À§Çؼ Á¶±ÝÀ̳ª¸¶ °øºÎµµ µÉ°âÇؼ ¿Ã¸°°Å´Ï±ñ¿ä.. -.-¤Ó
¹¹ º¹ÀâÇϽźÐÀº ±×³É À§¿¡²¨ µÎ ÆÄÀÏ º¹»çÇϽÅÈÄ °æ·Î¸¸ ´ëÃæ ¼öÁ¤ÇÏ½Ã¸é µÉ°Ì´Ï´Ù.
È®ÀåÀ» ÇÏÀÚ¸é db¿Í ¿¬µ¿Çؼ ÇÒ¼öµµ ÀÖ°Ú±¸¿ä. Æú´õ³ª Ä«Å×°í¸®µµ ÀûÀýÈ÷ ¸¸µé ¼ö ÀÖÀ¸¸®¶ó »ç·ÁµË´Ï´Ù.
´õ ±Ã±ÝÇϽŠÁ¡ ÀÖÀ¸½Ã¸é ÄÚ¸àÆ® ´Þ¾Æ Áֽðųª Á¦ ȨÆäÀÌÁö¿¡ ±Û³²±â¼Åµµ ±¥¾È½À´Ï´Ù.
Á¦·Îº¸µå¿Í ¾ÈÁö ¾ð 3³âÀ̱º¿ä... Áö±Ý Á¦·Îº¸µå¸¦ ¾²°í ÀÖÁö¸¸ ¾ÊÁö¸¸ ³ ¾ðÁ¦ ÀÌ·± °Ô½ÃÆÇ Çѹø ¸¸µé¾îº¸³ª
ÀÌ·± ¸¾À¸·Î »ð´Ï´Ù.^^;
±×·³ Á¶±ÝÀ̳ª¸¶ ¸¹Àº µµ¿ò µÇ½Ã±æ ¸ð¶ó¹Ì°¡ ¹Ù¶ø´Ï´Ù.
¹Ì¸®º¸±â : http://morami.net/test_play/play_list.php |
|
̵̧ : 309 |
̵̧
¸ñ·Ï
|
|
| ![](/bink.gif) |
|