/*
* Script By Mynux Team 2008
*
* I use this script to update the song info as advertisement
* for a running shoutcast server and running with cron.
*
* http://www.mynux.net
*/
/************** EDIT HERE ONLY **********/
$host = "my.fm";
$port = "8000";
$scpass = "adminpass";
//the text in between cannot have blank space. put %20 between them
$msg = "Radio%20Manis%20-%20Powered%20by%20www.mynux.net";
/**************** END HERE **************/
$fp = fsockopen($host, $port, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "GET /admin.cgi?mode=updinfo&song=$msg HTTP/1.1\r\n";
$out .= "Host: $host:$port\r\n";
$out .= "Accept: */*\r\n";
$out .= "User-Agent: MynuxCast Song (Mozilla Compatible)\r\n";
$out .= "Authorization: Basic ".base64_encode("admin:$scpass")."\r\n\r\n";
fputs($fp,$out);
fclose($fp);
}
?>
Windows and linux information and one stop centre for myself. Having difficulties to remember all things at once. This blog will remain be my references on the internet. Other people can take benefit from it. Thank you for visiting
Wednesday, April 8, 2009
php script to update song info using command line
Subscribe to:
Post Comments (Atom)
Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...
-
Skrip ini aku guna kat server aku.. backup mysql setiap hari. Hanya perlu ubah pada bahagian setting sahaja. chmod dan set cron untuk daily ...
-
There are many “solutions” for blocking your company employees accessing Yahoo Messenger, hi5, Facebook or any other distracting services, b...
-
when trying to apt-get update i got this error message :- W: There is no public key available for the following key IDs xxxxxxxxxxxx t...
No comments:
Post a Comment