<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brett Jenkins &#187; PHP</title>
	<atom:link href="http://www.brettjenkins.co.uk/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brettjenkins.co.uk</link>
	<description>brett@brettjenkins.co.uk</description>
	<lastBuildDate>Mon, 31 May 2010 02:25:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Icecast Total Hours Script</title>
		<link>http://www.brettjenkins.co.uk/2009/10/08/icecast-total-hours-script/</link>
		<comments>http://www.brettjenkins.co.uk/2009/10/08/icecast-total-hours-script/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 14:35:22 +0000</pubDate>
		<dc:creator>Brett Jenkins</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SRA]]></category>

		<guid isPermaLink="false">http://www.brettjenkins.co.uk/?p=206</guid>
		<description><![CDATA[Hey,
I&#8217;ve had some interest in my icecast script over at the SRA forums, so I thought i&#8217;d post it here so that anyone who cares can read and do what they want with it!
This is my listener_join.php:
http://brettjenkins.co.uk/code/icecast/listener_join.txt
This is listener_leave.php:
http://brettjenkins.co.uk/code/icecast/listener_leave.txt
This is the SQL database structure:
CREATE TABLE IF NOT EXISTS `icecast` (
`id` int(11) NOT NULL auto_increment,
`icecast_id` int(11) [...]]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>I&#8217;ve had some interest in my icecast script over at the <a href="http://www.studentradio.org.uk/site/forum.php?mode=thread&amp;cat=4&amp;thread=151" class="broken_link">SRA forums</a>, so I thought i&#8217;d post it here so that anyone who cares can read and do what they want with it!</p>
<p>This is my listener_join.php:</p>
<p><a href="http://brettjenkins.co.uk/code/icecast/listener_join.txt">http://brettjenkins.co.uk/code/icecast/listener_join.txt</a></p>
<p>This is listener_leave.php:</p>
<p><a href="http://brettjenkins.co.uk/code/icecast/listener_leave.txt">http://brettjenkins.co.uk/code/icecast/listener_leave.txt</a></p>
<p>This is the SQL database structure:<br />
<code>CREATE TABLE IF NOT EXISTS `icecast` (<br />
`id` int(11) NOT NULL auto_increment,<br />
`icecast_id` int(11) NOT NULL,<br />
`datetime_start` datetime NOT NULL,<br />
`datetime_end` datetime default NULL,<br />
`ip` varchar(20) NOT NULL,<br />
`mount` varchar(20) NOT NULL,<br />
`duration` int(11) default NULL,<br />
`agent` varchar(200) default NULL,<br />
`server` varchar(50) default NULL,<br />
`port` int(11) default NULL,<br />
`user` varchar(20) default NULL,<br />
`pass` varchar(20) default NULL,<br />
PRIMARY KEY  (`id`)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3087 ;</code></p>
<p>Some of the code probably isn&#8217;t as efficient as it could be, and if you want to tidy it up yourself thats cool, but I just programmed this fast.</p>
<p>This is a template for the icecast.xml file in the icecast server directory:</p>
<p><a href="http://brettjenkins.co.uk/code/icecast.xml">http://brettjenkins.co.uk/code/icecast.xml</a></p>
<p>Thats the backend sorted, there needs to be a front end to display the data, this is our main frontend stuff:<br />
<a href="http://brettjenkins.co.uk/code/icecast-admin/">http://brettjenkins.co.uk/code/icecast-admin/</a></p>
<p>I&#8217;ll just repeat that most of this was programmed quickly and wasn&#8217;t necessarily programmed with best practise in mind &#8211; the front end is very basic and there is a lot of scope for improvement if someone wanted to improve it.</p>
<p>Hope this helps!</p>
<p>P.S. Big thanks to the SRA for nominating me/xtreme for Best Technical Achievement Award <img src='http://www.brettjenkins.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brettjenkins.co.uk/2009/10/08/icecast-total-hours-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
