Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia pagalbos su music player

Parašė Stautvis· 2014 Bal. 14 20:04:33
#3

swz parašė:
https://webdnd.com/zippyshare-pl... stai ta pati tema :)


o kaip man padaryti kad is mysql bazes i sita vieta ikeltu link


$url = zippy("http://www2.zippyshare.com/v/10572023/file.html");

pvz kad butu taip

$url = zippy("zippyshare nuoroda is mysql");


cia visas kodas
function zippy($url) {
$id = explode("v/",$url);
if(@$id[1]) {
$id = explode("/file",$id[1]);
$id = $id[0];
$server = explode("//www",$url);
$server = explode(".zipp",$server[1]);
$server = $server[0];
}else{
$id = explode("key%3D",$url);
$id = $id[1];
$server = explode("//www",$url);
$server = explode(".zipp",$server[1]);
$server = $server[0];
}
return array($server,$id);
}

$url = zippy("http://www2.zippyshare.com/v/10572023/file.html");

$file = $url[1];
$www = $url[0];