Re: PHP M3U Generator with Auto Timeout for Streaming Audio

  • From: "inthaneelf" <inthaneelf@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 13 Nov 2007 18:45:25 -0800

thank you, smile

inthane
. For Blind Programming assistance, Information, Useful Programs, and Links to Jamal Mazrui's Text tutorial packages and Applications, visit me at:
http://grabbag.alacorncomputer.com
. to be able to view a simple programming project in several programming languages, visit the Fruit basket demo site at:
http://fruitbasketdemo.alacorncomputer.com

----- Original Message ----- From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, November 13, 2007 5:18 PM
Subject: PHP M3U Generator with Auto Timeout for Streaming Audio


In case people are interested, I've pasted the config file below. This should give you an idea what it actually does.


To see it in action, plus the download link, simply visit http://gutterstar.net/cgi-bin/m3u_streamer.htm Eventually there will be a download page on the site, but I haven't got around to it yet.



Config file code

<?

/*

To begin streaming mp3 audio from your website:

1. Configure the variables below.

2. Upload all of these files to the folder where you want to access the script. All should reside within the same logical folder.

3. Create a link to the file named "stream_gen_m3u.php"

*/

// The URL path of the folder where your audio files reside. This path must not end with a "/"

$url_path = 'http://domain.com/audio/folder';

// The relative folder where the audio files are located. This path must start where this script originates. Must not end with a "/".

$folder_path = './audio/folder';

// The extention of your audio files. This must not begin with a "."

$extension = 'mp3';

// The URL path that points to "stream.php"

$stream_url = 'http://domain.com/stream.php';

// The relative path and file name of the authorization code file. Will automatically be created.

$auth_file = './stream_auth_code.php';

// The relative path and file name of the schedule script file.

$schedule_file = './stream_schedule.php';

// The relative path and file name of the M3U file. This will automatically be created.

$m3u_file = './stream_m3u.m3u';

// Set how often the audio stream will expire, so visitors will have to return to your site to continue listening.

// 1=Hour, 2= Day, 3=Week, 4=Month

$stream_expire = '1';

// After uploading this file, set the permission to deny all Read access. Usually 600 will work for this.

?>



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: