another thing:
$ip = 'serverip';
$port = 'serverport'; // server port
$password = 'password'; // server password
$type = 'SHOUTcast v2'; // choose SHOUTcast v2 or SHOUTcast v1 or Icecast
$file = "/home/USERNAME/public_html/tunein/song.txt"; // make sure you have a song.txt text file and the path is correct, and that you set permissions to that file to 777
do we have delete the lines (including the //) or can they be kept?
- // server port
- // choose SHOUTcast v2 or SHOUTcast v1 or Icecast
- // make sure you have a song.txt text file and the path is correct, and that you set permissions to that file
to 777
and the same applies to these lines, in the beginning of the script:
// Script by
http://myautodj.com , if you like my script I ask you at least click on one of our Google ads on our site!
// This script will check when a new song plays and notify TuneIn radio. Requires API key from TuneIn
http://tunein.com/broadcasters/api/// TuneIn radio requires you do not send un nessary requests to them, this script will run on a cron job and only notify TuneIn radio when the song has changed.
// you must set up a cron job you can have it run as often as you like, 1 min does fine
// you should check and change the path to the text file -- you will need to change the path, depending on where you uploaded this file to -- if your using cPanel or other web hosting panel you should just be able to paste the entire line into your cron jobs (remember to change the path)
// /usr/local/bin/php -q /home/USERNAME/public_html/tunein/cron.php &> /dev/null
thanks.