strawbs1989
Member
hi there i have ran out of ideas for our wonderful radio station
could anyone possible give us ideas please
urban8radio
could anyone possible give us ideas please
urban8radio
Last edited:
<audio controls id="stream" preload="none" style="width:100%;" >
<?php
// Edit the values below to suite your server and site.
$server = "ip.of.your.server"; // IP of the server
$port = "8000"; // Port of the server
$online = "On Air"; // Text to display if the server is online
$offline = "Off Air"; // Text to display if the server is offline
// Do not edit below here unless you know exactly what you're doing.
// Start Data Collection
$fp = fsockopen("$server", $port, $errno, $errstr, 30);
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)\r\n\r\n");
while (!feof($fp)) {
$content .= fgets($fp,128);
}
fclose($fp);
// start data processing
$debut = strpos($content, '<body>') + strlen('<body>');
$fin = strpos($content, '</body>', $debut);
$string = substr($content, $debut, $fin - $debut);
$stats = explode(',', $string);
$status[0], $status[1],$status[2]....
// after this line:
$stats = explode(',', $string);
// we insert
Printr($status);
if ($code != 200) {
throw new Exception($message);
}
} else { //If a request was already made, allow dedication to the request
$data = array();
$data['msg'] = strip_tags(Def('rmessage'));
$data['name'] = strip_tags(Def('rname'));
$db = Database::getInstance();
$db->update('requestlist', $data, array('ID = ?' => $requestID, 'songID = ?' => $songID));
hi there i have ran out of ideas for our wonderful radio station
could anyone possible give us ideas please
urban8radio
hi I’m Maxime i am having trouble with my website because every time i tried to add the for html5 it won’t work on my cellphone or my tablet tell me what do I need to, it is because I use pay as you go plan or what elsewell I think you should revise the audio tag on that player and tell it not to auto-play. Also revising the width attribute from a fixed width to a dynamic attribue will make it responsive and resize for different displays. also the autoplay="" and controls="" is not correct syntax for html5 for the controls its just controls declared in the tag and this goes for auto play. now if your page is an xml/xhtml page then you have to use controls="controls" and autoplay="autoplay" here is the audio tag code I recommend for your site:. If you want to look at the options and uses of the audio html tag, see Audio tag, w3 SchoolsCode:<audio controls id="stream" preload="none" style="width:100%;" >
The widget player supplied by your pay as you go account is a flash player.
hi I’m Maxime i am having trouble with my website because every time i tried to add the for html5 it won’t work on my cellphone or my tablet tell me what do I need to, it is because I use pay as you go plan or what else