am trying to make grabber of the wap site
its like this
$file = file_get_contents('http://mzcmob.com/music/index.php?dir='.$_GET['dir'].'&p='.$_GET['p'].'&page='.$_GET['page'].'&sort=1');
Latest Punjabi 128 Kbps - MzcMob.Com Lastest Punajbi Hindi Music
the link has space has ... i have tried this
$filelink = str_replace(' ', '%20', $filelink);
but didn't get succes
its like this
$file = file_get_contents('http://mzcmob.com/music/index.php?dir='.$_GET['dir'].'&p='.$_GET['p'].'&page='.$_GET['page'].'&sort=1');
Latest Punjabi 128 Kbps - MzcMob.Com Lastest Punajbi Hindi Music
the link has space has ... i have tried this
$filelink = str_replace(' ', '%20', $filelink);
but didn't get succes
Code:
<?php $site = "(www.Djsongz.Com)"; // Put Your (SiteName) include 'header.php'; $file = file_get_contents('http://mzcmob.com/music/index.php?dir='.$_GET['dir'].'&p='.$_GET['p'].'&page='.$_GET['page'].'&sort=1'); $file = preg_replace('|<div style="position:relative; visibility:hidden;display : none;">(.*?)</div>|is','',$file); $file = preg_replace('|<script>(.*?)</script>|is','',$file); $file = preg_replace('|<title>(.*?)</title>|is','',$file); $file = preg_replace('|<style type="text/css">(.*?)<\/style>|is','',$file); $file = preg_replace('|<script id="smaatoAdDisplay"(.*?)</script>|is','',$file); $file = preg_replace('|<p class="siteTitle">(.*?)</p>|is','',$file); $file = str_replace('<br>------<br/>','',$file); $filelink = str_replace(' ', '%20', $filelink); $file = preg_replace("|<div class='contur'>(.*?)</div>|is","",$file); $file = preg_replace("|<div class='contur_t'>(.*?)</div>|is","",$file); $file = preg_replace("|<div class='contur_rek'>(.*?)</div>|is","",$file); $file = preg_replace('/<a href="http:\/\/(.*?)ads.adiquity.com(.*?)<\/a><br\/>/','',$file); $file = preg_replace('/<a href="http:\/\/(.*?)ads.adiquity.com(.*?)<\/a>/','',$file); $file = str_replace('(Djsongz.Com)',$site,$file); $file = str_replace('<br />------<br/>','',$file); $file = str_replace('Download Page','Download',$file); $file = str_replace('<a href="','» <a href="',$file); $file = str_replace('<div>------<br/>','',$file); $link = str_replace(' ', '%20', $link); ?> <?php echo $file; include 'footer.php'; ?>
Comment