PHP Classes

File: info.php

Recommend this page to a friend!
  Classes of Rahman Haghparast   PHP Live Radio Streaming   info.php   Download  
File: info.php
Role: Example script
Content type: text/plain
Description: generates an ajax output that shows the current playing file and the next one. It is used in index.html to show the playing item.
Class: PHP Live Radio Streaming
Serve MP3 audio files to play from a playlist
Author: By
Last change:
Date: 9 years ago
Size: 250 bytes
 

Contents

Class file image Download
<?php
require 'offlineradio.class.php';
$init = new stdClass();
$init->mp3Folder = dirname(__FILE__).DS.'files';
$init->playListName = 'list.txt';
$radio = new OfflineRadio($init);
$output = $radio->getPlayingItem();
echo
json_encode($output);