fix code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kevk3v
    replied
    $space = urlencode($file); ////would turn the space into %20
    $file = str_replace('%20', '_', $space);

    Leave a comment:


  • hon3y
    replied
    Originally posted by subzero View Post
    Try with no spaces in the coding

    Code:
    $file = str_replace('%20', '_', $file);
    not working coming back to main ... when i goes to loc

    Code:
    mzcmob.com/music/index.php?dir=Punjabi_Muzic/2012_Albums/Latest%20Punjabi%20128%20Kbps&p=0&sort=1



    Code:
    <?php
    
    
    $site = "(www.Djsongz.Com)";
    // Put Your (SiteName)
    
    $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('%20', '_', $file);
    $file = str_replace('<br>------<br/>','',$file);
    $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('(WapDhamaka.Com)',$site,$file);
    $file = str_replace('<br />------<br/>','',$file);
    $file = str_replace('Download Page','Download',$file);
    $file = str_replace('<a href="','&raquo; <a href="',$file);
    $file = str_replace('<div>------<br/>','',$file);
    $file = str_replace('<br />','<hr>',$file);
    ?>
    <?php
    include 'header.php';
    echo $file;
    include 'footer.php';
    ?>

    Leave a comment:


  • subzero
    replied
    Try with no spaces in the coding

    Code:
    $file = str_replace('%20', '_', $file);

    Leave a comment:


  • hon3y
    replied
    Originally posted by subzero View Post
    Code:
    $filelink = str_replace(' ', '_', $filelink);
    Code:
    $filelink = str_replace('%20 ','-', $filelink);

    i tried that putting code in index file

    but when link goes to the space link it come to main page /Latest Punjabi 128 Kbps&p=0&sort=1

    Leave a comment:


  • subzero
    replied
    Code:
    $filelink = str_replace(' ', '_', $filelink);
    Code:
    $filelink = str_replace('%20 ','-', $filelink);

    Leave a comment:


  • hon3y
    started a topic fix code

    fix code

    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


    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="','&raquo; <a href="',$file);
    $file = str_replace('<div>------<br/>','',$file);
    $link = str_replace(' ', '%20', $link);
    ?>
    <?php
    echo $file;
    include 'footer.php';
    ?>
Working...
X