Track Length Info Sent to Live365

Yes.

Instead of using HTTP GET request to http://www.live365.com/cgi-bin/add_song.cgi directly, you make a request to your own script, eg. http://yoursite.com/live365upd.php.

The script gets all parameters, creates a new request with some parameters modified/removed and makes a request to http://www.live365.com/cgi-bin/add_song.cgi

Here's an example which copies all parameters and removes the coverURL if it's empty (caution: totally untested, it's just to show the idea):
Code:
<?php
//cycle thru parameters
foreach($_GET as $key => $val)
{
  //  ... create a new string with parameters and save it to $params variable
  if (!(($key == 'coverURL') && ($val == '')))
    $params .= '&' . $key . '=' . urlencode($val);
}
$params = substr($params, 1);
//perform request
file_get_contents("http://www.live365.com/cgi-bin/add_song.cgi?" . $params);
?>
 
Back
Top