fix code

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

    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';
    ?>

    #2
    Code:
    $filelink = str_replace(' ', '_', $filelink);
    Code:
    $filelink = str_replace('%20 ','-', $filelink);
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      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

      Comment


        #4
        Try with no spaces in the coding

        Code:
        $file = str_replace('%20', '_', $file);
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          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';
          ?>

          Comment


            #6
            $space = urlencode($file); ////would turn the space into %20
            $file = str_replace('%20', '_', $space);
            Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

            Comment

            Working...
            X