fix code

Started on the old forum in November 2012 · view the original in the archive · old links redirect here

5 replies · 455 views · started 14 years ago · 1 min read

3 participants
hon3y Junior · 42 posts #1

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

<?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';
?>
subzero Super moderator Fellow · 3,954 posts #2
$filelink = str_replace(' ', '_', $filelink);
$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... _______…

hon3y Junior · 42 posts #3

subzero wrote:

$filelink = str_replace(' ', '_', $filelink);
$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

subzero Super moderator Fellow · 3,954 posts #4

Try with no spaces in the coding

$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... _______…

hon3y Junior · 42 posts #5

subzero wrote: Try with no spaces in the coding

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

not working coming back to main ... when i goes to loc

mzcmob.com/music/index.php?dir=Punjabi_Muzic/2012_Albums/Latest%20Punjabi%20128%20Kbps&p=0&sort=1
<?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="','» <a href="',$file);
$file = str_replace('<div>------<br/>','',$file);
$file = str_replace('<br />','<hr>',$file);
?>
<?php
include 'header.php';
echo $file;
include 'footer.php';
?>
kevk3v Senior · 332 posts #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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close