<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Hostify Networks Blog</title>
	<atom:link href="http://hostify.net/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://hostify.net/blog</link>
	<description>A Place to Write Stuff...</description>
	<lastBuildDate>Fri, 30 Mar 2012 18:37:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on DJ Management Script by djmike</title>
		<link>http://hostify.net/blog/?p=776#comment-2214</link>
		<dc:creator>djmike</dc:creator>
		<pubDate>Fri, 30 Mar 2012 18:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2214</guid>
		<description>This script is getting over my head. I did email your webmaster email. I would like to see this thing in action if possible. What do you use this for?

I will send you the full thing so see if u missed something here.</description>
		<content:encoded><![CDATA[<p>This script is getting over my head. I did email your webmaster email. I would like to see this thing in action if possible. What do you use this for?</p>
<p>I will send you the full thing so see if u missed something here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by admin</title>
		<link>http://hostify.net/blog/?p=776#comment-2213</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 30 Mar 2012 17:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2213</guid>
		<description>You&#039;re still missing half the script, or perhaps Wordpress is filtering it out.</description>
		<content:encoded><![CDATA[<p>You&#8217;re still missing half the script, or perhaps WordPress is filtering it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by admin</title>
		<link>http://hostify.net/blog/?p=776#comment-2212</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 30 Mar 2012 17:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2212</guid>
		<description>The script you should be using is in the original post. In my second comment I showed how you could modify it to setup a second dj (the first for Sunday 13:55 to 16:05 and the second for Monday 12:55 to 15:05). The text files need to be on the same machine as the PAL script.</description>
		<content:encoded><![CDATA[<p>The script you should be using is in the original post. In my second comment I showed how you could modify it to setup a second dj (the first for Sunday 13:55 to 16:05 and the second for Monday 12:55 to 15:05). The text files need to be on the same machine as the PAL script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by djmike</title>
		<link>http://hostify.net/blog/?p=776#comment-2211</link>
		<dc:creator>djmike</dc:creator>
		<pubDate>Fri, 30 Mar 2012 06:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2211</guid>
		<description>*If the output from schedule.php is “null null null null null null null null null” then a DJ is not currently scheduled *

How do I schedule a dj? Can you give me some examples. Where is your script?</description>
		<content:encoded><![CDATA[<p>*If the output from schedule.php is “null null null null null null null null null” then a DJ is not currently scheduled *</p>
<p>How do I schedule a dj? Can you give me some examples. Where is your script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by djmike</title>
		<link>http://hostify.net/blog/?p=776#comment-2210</link>
		<dc:creator>djmike</dc:creator>
		<pubDate>Fri, 30 Mar 2012 06:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2210</guid>
		<description>Ok I didnt show my password lol

Ok please tell me if this is right. If not right please tell me. I also am guessing the .pal goes on the auto server and the .php goes onto the FTP with the two txt files right or wrong?

=&quot;13:55&quot; &amp;&amp; $time $val) { 
                if($priority == &#039;tag&#039;) $attributes_data[$attr] = $val; 
                else $result[&#039;attr&#039;][$attr] = $val; //Set all the attributes in a array called &#039;attr&#039; 
            } 
        } 
 
        //See tag status and do the needed. 
        if($type == &quot;open&quot;) {//The starting of the tag &#039;&#039; 
            $parent[$level-1] = &amp;$current; 
            if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag 
 
 
                $current[$tag] = $result; 
                if($attributes_data) $current[$tag. &#039;_attr&#039;] = $attributes_data; 
                $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
 
                $current = &amp;$current[$tag]; 
 
            } else { //There was another element with the same tag name 
 
                if(isset($current[$tag][0])) {//If there is a 0th element it is already an array 
                    $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level]] = $result; 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; 
                } else {//This section will make the value an array if multiple tags with the same name appear together
                    $current[$tag] = array($current[$tag],$result);//This will combine the existing item and the new item together to make an array
                    $repeated_tag_index[$tag.&#039;_&#039;.$level] = 2; 
 
                    if(isset($current[$tag.&#039;_attr&#039;])) { //The attribute of the last(0th) tag must be moved as well 
                        $current[$tag][&#039;0_attr&#039;] = $current[$tag.&#039;_attr&#039;]; 
                        unset($current[$tag.&#039;_attr&#039;]); 
                    } 
 
                } 
                $last_item_index = $repeated_tag_index[$tag.&#039;_&#039;.$level]-1; 
                $current = &amp;$current[$tag][$last_item_index]; 
            } 
 
        } elseif($type == &quot;complete&quot;) { //Tags that ends in 1 line &#039;&#039; 
            //See if the key is already taken. 
            if(!isset($current[$tag])) { //New Key 
                $current[$tag] = $result; 
                $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
                if($priority == &#039;tag&#039; and $attributes_data) $current[$tag. &#039;_attr&#039;] = $attributes_data; 
 
            } else { //If taken, put all things inside a list(array) 
                if(isset($current[$tag][0]) and is_array($current[$tag])) {//If it is already an array... 
 
                    // ...push the new element into that array. 
                    $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level]] = $result; 
 
                    if($priority == &#039;tag&#039; and $get_attributes and $attributes_data) { 
                        $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level] . &#039;_attr&#039;] = $attributes_data; 
                    } 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; 
 
                } else { //If it is not an array... 
                    $current[$tag] = array($current[$tag],$result); //...Make it an array using using the existing value and the new value
                    $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
                    if($priority == &#039;tag&#039; and $get_attributes) { 
                        if(isset($current[$tag.&#039;_attr&#039;])) { //The attribute of the last(0th) tag must be moved as well
 
                            $current[$tag][&#039;0_attr&#039;] = $current[$tag.&#039;_attr&#039;]; 
                            unset($current[$tag.&#039;_attr&#039;]); 
                        } 
 
                        if($attributes_data) { 
                            $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level] . &#039;_attr&#039;] = $attributes_data; 
                        } 
                    } 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; //0 and 1 index is already taken 
                } 
            } 
 
        } elseif($type == &#039;close&#039;) { //End of tag &#039;&#039; 
            $current = &amp;$parent[$level-1]; 
        } 
    } 
 
    return($xml_array); 
}
?&gt;</description>
		<content:encoded><![CDATA[<p>Ok I didnt show my password lol</p>
<p>Ok please tell me if this is right. If not right please tell me. I also am guessing the .pal goes on the auto server and the .php goes onto the FTP with the two txt files right or wrong?</p>
<p>=&#8221;13:55&#8243; &amp;&amp; $time $val) {<br />
                if($priority == &#8216;tag&#8217;) $attributes_data[$attr] = $val;<br />
                else $result['attr'][$attr] = $val; //Set all the attributes in a array called &#8216;attr&#8217;<br />
            }<br />
        } </p>
<p>        //See tag status and do the needed.<br />
        if($type == &#8220;open&#8221;) {//The starting of the tag &#8221;<br />
            $parent[$level-1] = &amp;$current;<br />
            if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag </p>
<p>                $current[$tag] = $result;<br />
                if($attributes_data) $current[$tag. '_attr'] = $attributes_data;<br />
                $repeated_tag_index[$tag.'_'.$level] = 1; </p>
<p>                $current = &amp;$current[$tag]; </p>
<p>            } else { //There was another element with the same tag name </p>
<p>                if(isset($current[$tag][0])) {//If there is a 0th element it is already an array<br />
                    $current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result;<br />
                    $repeated_tag_index[$tag.'_'.$level]++;<br />
                } else {//This section will make the value an array if multiple tags with the same name appear together<br />
                    $current[$tag] = array($current[$tag],$result);//This will combine the existing item and the new item together to make an array<br />
                    $repeated_tag_index[$tag.'_'.$level] = 2; </p>
<p>                    if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well<br />
                        $current[$tag]['0_attr'] = $current[$tag.'_attr'];<br />
                        unset($current[$tag.'_attr']);<br />
                    } </p>
<p>                }<br />
                $last_item_index = $repeated_tag_index[$tag.'_'.$level]-1;<br />
                $current = &amp;$current[$tag][$last_item_index];<br />
            } </p>
<p>        } elseif($type == &#8220;complete&#8221;) { //Tags that ends in 1 line &#8221;<br />
            //See if the key is already taken.<br />
            if(!isset($current[$tag])) { //New Key<br />
                $current[$tag] = $result;<br />
                $repeated_tag_index[$tag.'_'.$level] = 1;<br />
                if($priority == &#8216;tag&#8217; and $attributes_data) $current[$tag. '_attr'] = $attributes_data; </p>
<p>            } else { //If taken, put all things inside a list(array)<br />
                if(isset($current[$tag][0]) and is_array($current[$tag])) {//If it is already an array&#8230; </p>
<p>                    // &#8230;push the new element into that array.<br />
                    $current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result; </p>
<p>                    if($priority == &#8216;tag&#8217; and $get_attributes and $attributes_data) {<br />
                        $current[$tag][$repeated_tag_index[$tag.'_'.$level] . &#8216;_attr&#8217;] = $attributes_data;<br />
                    }<br />
                    $repeated_tag_index[$tag.'_'.$level]++; </p>
<p>                } else { //If it is not an array&#8230;<br />
                    $current[$tag] = array($current[$tag],$result); //&#8230;Make it an array using using the existing value and the new value<br />
                    $repeated_tag_index[$tag.'_'.$level] = 1;<br />
                    if($priority == &#8216;tag&#8217; and $get_attributes) {<br />
                        if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well</p>
<p>                            $current[$tag]['0_attr'] = $current[$tag.'_attr'];<br />
                            unset($current[$tag.'_attr']);<br />
                        } </p>
<p>                        if($attributes_data) {<br />
                            $current[$tag][$repeated_tag_index[$tag.'_'.$level] . &#8216;_attr&#8217;] = $attributes_data;<br />
                        }<br />
                    }<br />
                    $repeated_tag_index[$tag.'_'.$level]++; //0 and 1 index is already taken<br />
                }<br />
            } </p>
<p>        } elseif($type == &#8216;close&#8217;) { //End of tag &#8221;<br />
            $current = &amp;$parent[$level-1];<br />
        }<br />
    } </p>
<p>    return($xml_array);<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by admin</title>
		<link>http://hostify.net/blog/?p=776#comment-2209</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 Mar 2012 23:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2209</guid>
		<description>Note that you may wish to change the password for your shoutcast server since you included it in your last comment. I have removed it, but there&#039;s no telling if anyone saw it.

You&#039;re missing some major chunks from the schedule.php file. You may want to get a fresh copy of it. Here is the section where you manage DJs:

[code]
if($day==0 &amp;&amp; ($time&gt;=&quot;13:55&quot; &amp;&amp; $time&lt;=&quot;16:05&quot;))
{
	$server=&#039;http://localhost&#039;;//the server the dj will be connecting to
	$port=8000;//the port of the server the dj will be connection to
	$password=&quot;pass&quot;;//the password to the admin interface of the server
	$dj=&#039;[Aural Pleasure]&#039;;//the name of the dj/show that will be appended to the title field
}
elseif($day==1 &amp;&amp; ($time&gt;=&quot;12:55&quot; &amp;&amp; $time&lt;=&quot;15:05&quot;))
{
	$server=&#039;http://localhost&#039;;//the server the dj will be connecting to
	$port=8002;//the port of the server the dj will be connection to
	$password=&quot;pass&quot;;//the password to the admin interface of the server
	$dj=&#039;[Some Other Show]&#039;;//the name of the dj/show that will be appended to the title field
}
else
{
	//no djs scheduled
	$server=&#039;null&#039;;
	$port=&#039;null&#039;;
	$password=&#039;null&#039;;
	$dj=&#039;null&#039;;
}
[/code]

You can add more DJs/shows by duplicating the second elseif.

I admit this isn&#039;t entirely user-friendly. It&#039;s something that I put together rather quickly, put into production, and haven&#039;t thought of since.</description>
		<content:encoded><![CDATA[<p>Note that you may wish to change the password for your shoutcast server since you included it in your last comment. I have removed it, but there&#8217;s no telling if anyone saw it.</p>
<p>You&#8217;re missing some major chunks from the schedule.php file. You may want to get a fresh copy of it. Here is the section where you manage DJs:</p>
<p>[code]<br />
if($day==0 &#038;&#038; ($time>="13:55" &#038;&#038; $time< ="16:05"))<br />
{<br />
	$server='http://localhost';//the server the dj will be connecting to<br />
	$port=8000;//the port of the server the dj will be connection to<br />
	$password="pass";//the password to the admin interface of the server<br />
	$dj='[Aural Pleasure]';//the name of the dj/show that will be appended to the title field<br />
}<br />
elseif($day==1 &#038;&#038; ($time>="12:55" &#038;&#038; $time<="15:05"))<br />
{<br />
	$server='http://localhost';//the server the dj will be connecting to<br />
	$port=8002;//the port of the server the dj will be connection to<br />
	$password="pass";//the password to the admin interface of the server<br />
	$dj='[Some Other Show]';//the name of the dj/show that will be appended to the title field<br />
}<br />
else<br />
{<br />
	//no djs scheduled<br />
	$server='null';<br />
	$port='null';<br />
	$password='null';<br />
	$dj='null';<br />
}<br />
[/code]</p>
<p>You can add more DJs/shows by duplicating the second elseif.</p>
<p>I admit this isn&#8217;t entirely user-friendly. It&#8217;s something that I put together rather quickly, put into production, and haven&#8217;t thought of since.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by djmike</title>
		<link>http://hostify.net/blog/?p=776#comment-2208</link>
		<dc:creator>djmike</dc:creator>
		<pubDate>Thu, 29 Mar 2012 22:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2208</guid>
		<description>I cant find where to change the DJs schedule
We have more then one live show and one auto DJ.

here is what I have for the php page:

name = &quot;Power Jammin&#039; Radio&quot;;     # short nickname of server.
$serv-&gt;host = &quot;panel1.shoutcast.pro&quot;;               # host address  # port IP address
$serv -&gt;port = &quot;8060&quot;;                     # port number
$serv -&gt;passwd = &quot;snip&quot;;                # admin password

/** 
$time is in 24-hour/military format with leading zeros
 
$days are as follows:
	sunday=0
	monday=1
	tuesday=2
	wednesday=3
	thursday=4
	friday=5
	saturday=6
*/
$time=date(&quot;H:i&quot;, time());
$day=date(&quot;w&quot;, time());
 
//an example show
//i&#039;ve given the DJ five minutes of padding on each end
//if you have back-to-back shows, you may not want to do this, however...it may work out okay since in theory there would be a seamless switch between the DJs
//if you wanted to get really creative, you&#039;d put all of this in a database...
//I&#039;m not feeling that creative at this point considering I only have one live show
 
if($day==0 &amp;&amp; ($time&gt;=&quot;13:55&quot; &amp;&amp; $time $val) { 
                if($priority == &#039;tag&#039;) $attributes_data[$attr] = $val; 
                else $result[&#039;attr&#039;][$attr] = $val; //Set all the attributes in a array called &#039;attr&#039; 
            } 
        } 
 
        //See tag status and do the needed. 
        if($type == &quot;open&quot;) {//The starting of the tag &#039;&#039; 
            $parent[$level-1] = &amp;$current; 
            if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag 
 
 
                $current[$tag] = $result; 
                if($attributes_data) $current[$tag. &#039;_attr&#039;] = $attributes_data; 
                $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
 
                $current = &amp;$current[$tag]; 
 
            } else { //There was another element with the same tag name 
 
                if(isset($current[$tag][0])) {//If there is a 0th element it is already an array 
                    $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level]] = $result; 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; 
                } else {//This section will make the value an array if multiple tags with the same name appear together
                    $current[$tag] = array($current[$tag],$result);//This will combine the existing item and the new item together to make an array
                    $repeated_tag_index[$tag.&#039;_&#039;.$level] = 2; 
 
                    if(isset($current[$tag.&#039;_attr&#039;])) { //The attribute of the last(0th) tag must be moved as well 
                        $current[$tag][&#039;0_attr&#039;] = $current[$tag.&#039;_attr&#039;]; 
                        unset($current[$tag.&#039;_attr&#039;]); 
                    } 
 
                } 
                $last_item_index = $repeated_tag_index[$tag.&#039;_&#039;.$level]-1; 
                $current = &amp;$current[$tag][$last_item_index]; 
            } 
 
        } elseif($type == &quot;complete&quot;) { //Tags that ends in 1 line &#039;&#039; 
            //See if the key is already taken. 
            if(!isset($current[$tag])) { //New Key 
                $current[$tag] = $result; 
                $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
                if($priority == &#039;tag&#039; and $attributes_data) $current[$tag. &#039;_attr&#039;] = $attributes_data; 
 
            } else { //If taken, put all things inside a list(array) 
                if(isset($current[$tag][0]) and is_array($current[$tag])) {//If it is already an array... 
 
                    // ...push the new element into that array. 
                    $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level]] = $result; 
 
                    if($priority == &#039;tag&#039; and $get_attributes and $attributes_data) { 
                        $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level] . &#039;_attr&#039;] = $attributes_data; 
                    } 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; 
 
                } else { //If it is not an array... 
                    $current[$tag] = array($current[$tag],$result); //...Make it an array using using the existing value and the new value
                    $repeated_tag_index[$tag.&#039;_&#039;.$level] = 1; 
                    if($priority == &#039;tag&#039; and $get_attributes) { 
                        if(isset($current[$tag.&#039;_attr&#039;])) { //The attribute of the last(0th) tag must be moved as well
 
                            $current[$tag][&#039;0_attr&#039;] = $current[$tag.&#039;_attr&#039;]; 
                            unset($current[$tag.&#039;_attr&#039;]); 
                        } 
 
                        if($attributes_data) { 
                            $current[$tag][$repeated_tag_index[$tag.&#039;_&#039;.$level] . &#039;_attr&#039;] = $attributes_data; 
                        } 
                    } 
                    $repeated_tag_index[$tag.&#039;_&#039;.$level]++; //0 and 1 index is already taken 
                } 
            } 
 
        } elseif($type == &#039;close&#039;) { //End of tag &#039;&#039; 
            $current = &amp;$parent[$level-1]; 
        } 
    } 
 
    return($xml_array); 
}
?&gt;

My email is djmike@powerjamminradio.com</description>
		<content:encoded><![CDATA[<p>I cant find where to change the DJs schedule<br />
We have more then one live show and one auto DJ.</p>
<p>here is what I have for the php page:</p>
<p>name = &#8220;Power Jammin&#8217; Radio&#8221;;     # short nickname of server.<br />
$serv-&gt;host = &#8220;panel1.shoutcast.pro&#8221;;               # host address  # port IP address<br />
$serv -&gt;port = &#8220;8060&#8243;;                     # port number<br />
$serv -&gt;passwd = &#8220;snip&#8221;;                # admin password</p>
<p>/**<br />
$time is in 24-hour/military format with leading zeros</p>
<p>$days are as follows:<br />
	sunday=0<br />
	monday=1<br />
	tuesday=2<br />
	wednesday=3<br />
	thursday=4<br />
	friday=5<br />
	saturday=6<br />
*/<br />
$time=date(&#8220;H:i&#8221;, time());<br />
$day=date(&#8220;w&#8221;, time());</p>
<p>//an example show<br />
//i&#8217;ve given the DJ five minutes of padding on each end<br />
//if you have back-to-back shows, you may not want to do this, however&#8230;it may work out okay since in theory there would be a seamless switch between the DJs<br />
//if you wanted to get really creative, you&#8217;d put all of this in a database&#8230;<br />
//I&#8217;m not feeling that creative at this point considering I only have one live show</p>
<p>if($day==0 &amp;&amp; ($time&gt;=&#8221;13:55&#8243; &amp;&amp; $time $val) {<br />
                if($priority == &#8216;tag&#8217;) $attributes_data[$attr] = $val;<br />
                else $result['attr'][$attr] = $val; //Set all the attributes in a array called &#8216;attr&#8217;<br />
            }<br />
        } </p>
<p>        //See tag status and do the needed.<br />
        if($type == &#8220;open&#8221;) {//The starting of the tag &#8221;<br />
            $parent[$level-1] = &amp;$current;<br />
            if(!is_array($current) or (!in_array($tag, array_keys($current)))) { //Insert New tag </p>
<p>                $current[$tag] = $result;<br />
                if($attributes_data) $current[$tag. '_attr'] = $attributes_data;<br />
                $repeated_tag_index[$tag.'_'.$level] = 1; </p>
<p>                $current = &amp;$current[$tag]; </p>
<p>            } else { //There was another element with the same tag name </p>
<p>                if(isset($current[$tag][0])) {//If there is a 0th element it is already an array<br />
                    $current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result;<br />
                    $repeated_tag_index[$tag.'_'.$level]++;<br />
                } else {//This section will make the value an array if multiple tags with the same name appear together<br />
                    $current[$tag] = array($current[$tag],$result);//This will combine the existing item and the new item together to make an array<br />
                    $repeated_tag_index[$tag.'_'.$level] = 2; </p>
<p>                    if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well<br />
                        $current[$tag]['0_attr'] = $current[$tag.'_attr'];<br />
                        unset($current[$tag.'_attr']);<br />
                    } </p>
<p>                }<br />
                $last_item_index = $repeated_tag_index[$tag.'_'.$level]-1;<br />
                $current = &amp;$current[$tag][$last_item_index];<br />
            } </p>
<p>        } elseif($type == &#8220;complete&#8221;) { //Tags that ends in 1 line &#8221;<br />
            //See if the key is already taken.<br />
            if(!isset($current[$tag])) { //New Key<br />
                $current[$tag] = $result;<br />
                $repeated_tag_index[$tag.'_'.$level] = 1;<br />
                if($priority == &#8216;tag&#8217; and $attributes_data) $current[$tag. '_attr'] = $attributes_data; </p>
<p>            } else { //If taken, put all things inside a list(array)<br />
                if(isset($current[$tag][0]) and is_array($current[$tag])) {//If it is already an array&#8230; </p>
<p>                    // &#8230;push the new element into that array.<br />
                    $current[$tag][$repeated_tag_index[$tag.'_'.$level]] = $result; </p>
<p>                    if($priority == &#8216;tag&#8217; and $get_attributes and $attributes_data) {<br />
                        $current[$tag][$repeated_tag_index[$tag.'_'.$level] . &#8216;_attr&#8217;] = $attributes_data;<br />
                    }<br />
                    $repeated_tag_index[$tag.'_'.$level]++; </p>
<p>                } else { //If it is not an array&#8230;<br />
                    $current[$tag] = array($current[$tag],$result); //&#8230;Make it an array using using the existing value and the new value<br />
                    $repeated_tag_index[$tag.'_'.$level] = 1;<br />
                    if($priority == &#8216;tag&#8217; and $get_attributes) {<br />
                        if(isset($current[$tag.'_attr'])) { //The attribute of the last(0th) tag must be moved as well</p>
<p>                            $current[$tag]['0_attr'] = $current[$tag.'_attr'];<br />
                            unset($current[$tag.'_attr']);<br />
                        } </p>
<p>                        if($attributes_data) {<br />
                            $current[$tag][$repeated_tag_index[$tag.'_'.$level] . &#8216;_attr&#8217;] = $attributes_data;<br />
                        }<br />
                    }<br />
                    $repeated_tag_index[$tag.'_'.$level]++; //0 and 1 index is already taken<br />
                }<br />
            } </p>
<p>        } elseif($type == &#8216;close&#8217;) { //End of tag &#8221;<br />
            $current = &amp;$parent[$level-1];<br />
        }<br />
    } </p>
<p>    return($xml_array);<br />
}<br />
?&gt;</p>
<p>My email is <a href="mailto:djmike@powerjamminradio.com">djmike@powerjamminradio.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by admin</title>
		<link>http://hostify.net/blog/?p=776#comment-2207</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 Mar 2012 07:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2207</guid>
		<description>If the output from schedule.php is &quot;null null null null null null null null null&quot; then a DJ is not currently scheduled. You can schedule a DJ by modifying the example in schedule.php.

dj.pal calls schedule.php roughly every two seconds to determine if a DJ is scheduled. If a DJ is not scheduled, the pal script does nothing. If a DJ is scheduled, it checks to see if the server is live and switches over. The pal script doesn&#039;t output anything unless schedule.php indicates that a DJ is currently scheduled.

Does this help at all?</description>
		<content:encoded><![CDATA[<p>If the output from schedule.php is &#8220;null null null null null null null null null&#8221; then a DJ is not currently scheduled. You can schedule a DJ by modifying the example in schedule.php.</p>
<p>dj.pal calls schedule.php roughly every two seconds to determine if a DJ is scheduled. If a DJ is not scheduled, the pal script does nothing. If a DJ is scheduled, it checks to see if the server is live and switches over. The pal script doesn&#8217;t output anything unless schedule.php indicates that a DJ is currently scheduled.</p>
<p>Does this help at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DJ Management Script by djmike</title>
		<link>http://hostify.net/blog/?p=776#comment-2206</link>
		<dc:creator>djmike</dc:creator>
		<pubDate>Thu, 29 Mar 2012 07:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=776#comment-2206</guid>
		<description>Do not work!

All the php page says is NALL NALL NALL NALL 
Did I miss something or put something in a wrong place?
I put the dj.pal in sam and it seems to work it keeps looking for a live DJ.
I guess I am not sure what to do with the dj.php</description>
		<content:encoded><![CDATA[<p>Do not work!</p>
<p>All the php page says is NALL NALL NALL NALL<br />
Did I miss something or put something in a wrong place?<br />
I put the dj.pal in sam and it seems to work it keeps looking for a live DJ.<br />
I guess I am not sure what to do with the dj.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying Shoutcast Now Playing Information on Your Web Site by admin</title>
		<link>http://hostify.net/blog/?p=735#comment-2205</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 05 Mar 2012 16:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://hostify.net/blog/?p=735#comment-2205</guid>
		<description>You may also need to add &amp;page=1 to the URL. The documentation for the xml interface is available here: http://wiki.winamp.com/wiki/SHOUTcast_DNAS_Server_2_XML_Reponses</description>
		<content:encoded><![CDATA[<p>You may also need to add &#038;page=1 to the URL. The documentation for the xml interface is available here: <a href="http://wiki.winamp.com/wiki/SHOUTcast_DNAS_Server_2_XML_Reponses" rel="nofollow">http://wiki.winamp.com/wiki/SHOUTcast_DNAS_Server_2_XML_Reponses</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

