A piece of PHP code simple implementation of space changeable music

A piece of PHP code simple implementation of space changeable music

 September
2016-12-22 / 0 comments / 5536 reading / Checking for inclusion

This code can be used to do QQ space background music and so on, when your friends visit your space each time, the music played is not the same
Demo: wap.9ywk.com/music

code

 <? php $url[1] = " http://m2.music.126.net/D7GY-8m9japXRmzBPlfovA==/3445869444824734.mp3 ";// Lucky little $url[2] = " http://m2.music.126.net/a7-uKueLfjL2ge3rhraHRA==/7959364675015343.mp3 ";// a very ugly person $url[3] = " http://m2.music.126.net/u9nJupi9yzpKzJB_sgSa1A==/3268848069435294.mp3 ";// Don't talk //You can add a lot of music here srand ((double)microtime()*1000000); $randomnum = rand(0, count($url)-1); header ("Location: $url[$randomnum]"); ?>

usage

Save the code as an index. PHP file and upload it to your host
Add where needed: http://domain/index.php?a=a.mp3
For example: WAP. 9ywk. COM / music / index. PHP? A = A.mp3
QQ space specific settings location - Open Space - background music - add network background music

zero

Comments (0)

cancel