![]() ![]() $pswd = “changeme” //The password set in rdj optionsĪfter these changes, you can include this file to your web page by simply using the code (the php file must be in the same folder as your website pages and your page must have. $lines2display = 3 //How many entries to display? $datafile = “data.txt” //How is named the txt file? The first lines are the customizable settings:ĭate_default_timezone_set( ‘Europe/Bucharest’ ) //Change this to your time/zone Make sure that you customize the “song_update.php” file, by opening it in text editor. Now, if you change the track the “data.txt” file will contain the playing track information and if you access you should be able to see the played tracks, including the playing one. Also you will need to change the password and make sure that in both places (RadioDJ > Now Playing plugin > Web Export tab and the “song_update.php”) the password is the same.Īfter uploading the files to your server and the php file is accesible from the web (try ) you will need to enter this address to the URL field of the plugin and check the enable box. ![]() NOTE: For security reasons, it is recommended to rename both files, just make sure that you make the changes also in “song_update.php”. For using this script, use the POST method in the Web Export settings. You will need to set “data.txt” as writeable (777). The “song_update.php” and “data.txt” must be uploaded to a web server (which supports php). It will work only with the auto title (no custom data). The difference between the GET and GET (CUSTOM) is that for GET (CUSTOM) the track information is appended right after the URL without using the “?” character.Ī sample php script can be found in the “Docs\Now Playing Plugin Help\PHP Script”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |