ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


[Shoutcast] ÇöÀç Ç÷¹À̵Ǵ °î¸í ½ºÅ©¸³Æ® PHP
8³â Àü
<?php



$sc_url_ip = "localhost";

$sc_url_port = "8000";



function getNowPlaying($sc_url_ip,$sc_url_port)

{

$open = fsockopen($sc_url_ip,$sc_url_port,$errno,$errstr,'.5');

  if ($open) {

  fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");

  stream_set_timeout($open,'1');

  $read = fread($open,200);

  $text = explode(",",$read);

  if($text[6] == '' || $text[6] == '</body></html>'){

   $msg = 'live stream ';

  } else {

   $msg = $text[6];

  }

  $text = '<strong>ÇöÀç°î: </strong> '.$msg;

  } else {

  return false;

}



fclose($open);




return $text;

}




//////////////////




//get the now playing

$current_song = getNowPlaying($sc_url_ip,$sc_url_port);

if(preg_match('/Live - Default User/',$current_song))

echo " ";

else

print $current_song;

?>
ÃßõÃßõ : 311 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
365
jQuery.get() HTTP GET ¹æ½Ä Ajax ¿äû
364
jQuery.post(), Ajax HTTP POST ¹æ½Ä ¿äû
363
jQuery.getJSON, JSON µ¥ÀÌÅ͸¦ ·Îµå
362
jQuery length¿Í slideToggle ¿¹Á¦
361
[CSS] before¿Í after ¼±ÅÃÀÚ¸¦ ÀÌ¿ëÇÏ¿© Float ¼Ó¼º ÇØÁ¦
360
jQuery toggleClass() Methods
359
jQuery stop(),Callback,Chaining
358
jQuery Effects - Animation
357
jQuery Effects - Sliding
356
jQuery fadeIn(), fadeOut(), fadeToggle(), fadeTo()
355
jQuery hide(), show(), toggle()
354
jquery trigger(), ÇÔ¼ö ½ÇÇà½ÃÅ°±â
353
Æú´õ¾ÈÀÇ ÆÄÀÏ °¡Áö°í ³î±â
352
ÆÄÀ̽㿡¼­ À¯´ÏÄÚµå ½ºÆ®¸² ´Ù·ç±â
351
Python 2.x ÇÑ±Û ÀÎÄÚµù °ü·Ã Á¤¸®
350
htmlspecialchars, entity decode
349
Php : Finding Chrome and Safari Browsers
348
[Shoutcast] jPlayer and Shoutcast Configuration
[Shoutcast] ÇöÀç Ç÷¹À̵Ǵ °î¸í ½ºÅ©¸³Æ® PHP
346
[Shoutcast] ½ºÆ®¸®¹Ö ³ë·¡Á¦¸ñÀ» º¯°æ ½ºÅ©¸³Æ®
345
Shoutcast PHP Scripts
344
FTP¿¡¼­ »èÁ¦ ¾ÈµÇ´Â ÆÄÀÏÀ̳ª Æú´õ »èÁ¦Çϱâ
343
DAUM ¿ìÆí¹øÈ£ ¼­ºñ½º È°¿ëÇϱâ
342
jquery checkbox Àüü ¼±ÅÃ, Àüü ÇØÁ¦, üũ °ª ÃßÃâ
341
Setting .htaccess to allow PHP to be accessed with .xml extension
340
jQuery API: Manipulation, Events, Effects, Internals, Utilities
339
[Android] Intent È°¿ë ¿¹½Ã
338
HTML5 °ü·Ã À¯¿ëÇÑ ·¹ÆÛ(ÂüÁ¶) »çÀÌÆ®
337
IE6~7 ¹®Á¦ÇØ°á
336
³ª´®°íµñ ±¸±Û À¥ÆùÆ®(Webfont) »ç¿ëÇϱâ
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.