mCmAl 0 Newbie Poster

I have a blog,where I post a lot of songs,and I'd love if somebody could help me implement some sort of script in my blog.

Is it possible,that whenever I want to post a zippyshare link,the script automatically converts it into a embedded media player?

This is some source code I got from another site,I don't know if it is helpful or not.

As far as I can tell,it's the generation procedure of the embedded player.

I'd really appreciate any kind of help.

class ZippyShare {
		
		public function getURL($url) {
			
			$url = str_replace("/file.html", "", explode("/v/", $url));
			$url = $url['0']."/downloadMusic%3Fkey%3D".$url['1']."ay";
			return $url;
		}

		public function musicPlayer($url) {
			
			$url = $this->getURL($url);
			
			$player = '<embed
						width="440"
						height="20"
						type="application/x-shockwave-flash"
						src="http://api.zippyshare.com/api/mediaplayer/mediaplayer.swf"
						style=""
						id="mpl"
						name="mpl"
						quality="high" allowfullscreen="false"
						flashvars="height=20&amp;width=440&amp;file='.$url.'&amp;volume=100&amp;autostart=false&amp;frontcolor=0xffffff&amp;backcolor=0x000000&amp;lightcolor=0xffffff&amp;type=flv">
			';
			
			return $player;
		}

}

$music = new ZippyShare;
echo $music->musicPlayer('http://www48.zippyshare.com/v/70282946/file.html');
?>

or

<?

$i= 1;
while($i <= 1){

	//name
	$name =  explode('Name: </strong>', $geturl);
	$name = explode('</font><br />', $name[1]);
	$name = $name[0];
	$replaceobj = array(".mp3");
    $name = str_replace( $replaceobj, "", $name );
   // Link
   $link = explode('src="../../mediaplayer/mediaplayer.swf?file=', $geturl);
   $link = explode('"', $link[1]);
   $link = $link[0];
    
   if($link != ""){
?>
 <textarea rows="1" cols="100">
 <?=$name?>
 </textarea>
   <textarea rows="10" cols="100">
   <strong><?=$name?></strong><br />
    Listen:<br />
   <embed allowScriptAccess="never" src="http://www.zippyshare.com/mediaplayer/mediaplayer.swf?file=<?=$link?>" menu="false" quality="high" width="300" height="20" name="mp3player" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" border="0" style="margin-bottom: 6px;"/></embed><br />
   <a href="<?=$url?>" target="_blank"><img src="<?=$downimgpath;?>" alt="<?=$name?>"></a>
   <a href="<?=$url?>"><?=$name?></a>
   </textarea>
   <br>
   <hr>
 <strong><?=$name?></strong><br />
    Listen:<br />
   <embed allowScriptAccess="never" src="http://www.zippyshare.com/mediaplayer/mediaplayer.swf?file=<?=$link?>" menu="false" quality="high" width="300" height="20" name="mp3player" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" border="0" style="margin-bottom: 6px;"/></embed><br />
   <a href="<?=$url?>" target="_blank"><img src="<?=$downimgpath;?>" alt="<?=$name?>"></a>
   <a href="<?=$url?>"><?=$name?></a>

	

<?
    $ts++;
    }
	else
	{
	?>
<textarea rows="10" cols="100">
   <strong><?=$name?></strong>
   Download:
   <a href="<?=$url?>"><?=$name?></a>
   </textarea>
   <br>
   <hr>
<strong><?=$url?></strong>
   Download:
   <a href="<?=$url?>"><?=$name?></a>
	<?
	
	}
$i++;
}


?>