Ok we need a script that will force downloads of mp3/wav files. This script will be on the results page of [login to view URL] and has to be able to work with the scripting we already have on the site. We currently run this php script on the results page:
";
$end="";
$pagestr='/execute/search/[login to view URL]';
$begin=strpos($html,$begin);
$end=strpos($html,$end);
$lenght=(strlen($html)-$begin)-(strlen($html)-$end);
$html=substr($html,$begin,$lenght);
$begin=strpos($html,$begin2)+strlen($begin2);
$lenght=(strlen($html)-$begin);
$html=substr($html,$begin,$lenght);
$html=str_replace('', "", $html);
$html=str_replace($pagestr, $PHP_SELF."?q=", $html);
$html=str_replace("[login to view URL];rurl=", "javascript:openURL('[login to view URL];rurl=", $html);
$html=str_replace('target="_blank"', "onclick="openURL([login to view URL]); return false;"", $html);
$html=str_replace('[><a href="', "[>
that script links to the [login to view URL] script which is:
On the result page there are html results wav results and mp3 results none of these files are local and we need to make it so that the mp3 files and wav files force the download box, save as... option.
Take a look at [login to view URL] and see what the site does and if you can create this script for the site we'd be very happy.
Thanks,
Stephen