MP3 Search script not working anymore

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

20 replies · 2,645 views · started 16 years ago · 1 min read

TL;DR · summary of 20 replies
  • -4shared script is not working anymore
  • Firemax suggested updating the download.php file to use 4shared API for better results.
  • Some users provided alternative scripts or solutions, including one from WapShared.com and another that changes downloaded file names.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

18 participants
razib Developer · 132 posts #1

MP3 Search script not working anymore sad 🙁

🦸 Buying mobile traffic, PM me with your traffic details

Rekon Developer · 215 posts #3

razib,, which mp3 search script isn't working anymore?? Pls post this in that thread. Don't create useless thread . Thanks

Girls are like internet domain name, The girls i like are already taken!

jrsenobio Developer · 98 posts #4

hey try this Mp3 Searching it's still working! want that script mail me at adminjr@wapzone.ws

Cheap Unlimited Premium Hosting Only 60usd/yr Free Domain Included Or Make A One Time Payment Of 200usd And The Cpanel Will Be Yours Forever (No Free Domain), Contact Us at admin@hostjr.net

sangoldline Junior · 26 posts #6

4shared script is not working anymore

"Every New Day is Another Chance to Change Your Life"

firemax Developer · 221 posts #8

if you have any problem,, simply update your download.php file to

<?php
include("head.php");

ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');

$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];

$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);

$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];

function fsize($url){
	$headers = get_headers ( $url, 1 );
	$size=round($headers['Content-Length'] / (1024*1024), 2);
	if($size){
		return $size.' Mb';
	}
	return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';

if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
   if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
   if(eregi($vid, $hasil)) { $media = 'video'; }
}

   echo '<meta name="robots" content="noindex, nofollow, noarchive">';

echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please  '.$final;
echo '<br /><a href="index.php">Search Again</a><br />';

# if(eregi('.mp3', $final)) {
if($media == 'music') {
   echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
#   echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>

Please Note: This is a temporary update for who using the old 4shared grabber script. for better results, you must use 4shared API.

External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…

razib Developer · 132 posts #9

many many thanks bro 🙂

firemax wrote: if you have any problem,, simply update your download.php file to

<?php
include("head.php");

ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');

$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];

$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);

$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];

function fsize($url){
	$headers = get_headers ( $url, 1 );
	$size=round($headers['Content-Length'] / (1024*1024), 2);
	if($size){
		return $size.' Mb';
	}
	return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';

if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
   if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
   if(eregi($vid, $hasil)) { $media = 'video'; }
}

   echo '<meta name="robots" content="noindex, nofollow, noarchive">';

echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please  '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">Search Again</a><br />';

# if(eregi('.mp3', $final)) {
if($media == 'music') {
   echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
#   echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>

🦸 Buying mobile traffic, PM me with your traffic details

metulj Super moderator Principal · 1,726 posts #11

khan89 wrote: My one is Working.... Which script isnt working?? try mine. Mp3

you mind to share this script ?

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

stolen_moment Developer · 77 posts #13

firemax Bro pls do one more favor ...change script so that downloaded file name comes its orignal name not prevew.mp3

wap333 Junior · 29 posts #14

You are awesome man!!!

firemax wrote: if you have any problem,, simply update your download.php file to

<?php
include("head.php");

ini_set('user_agent', 'mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.9.2) gecko/20100115 firefox/3.6 (.net clr 3.5.30729)');

$headere = array ('accept-language: En-us,en;q=0.7,de-de;q=0.3', 'accept: Text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_get['url'];

$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);

$content = file_get_contents($url);
$content=(string) $content;
$link=explode("html5player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];

function fsize($url){
	$headers = get_headers ( $url, 1 );
	$size=round($headers['content-length'] / (1024*1024), 2);
	if($size){
		return $size.' mb';
	}
	return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';

if(isset($_get['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
   if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
   if(eregi($vid, $hasil)) { $media = 'video'; }
}

   echo '<meta name="robots" content="noindex, nofollow, noarchive">';

echo '<br>to download file <font color="blue"><b>'.$name.'</b></font> please  '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">search again</a><br />';

# if(eregi('.mp3', $final)) {
if($media == 'music') {
   echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
#   echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
}
}
include("foot.php");
?>

please note: This is a temporary update for who using the old 4shared grabber script. For better results, you must use 4shared api.

jnetwensu Junior · 35 posts #15

het firemax you said we should use 4shared API. please explain what this is?

pmbguy Senior · 344 posts #17

ok, this is a long shot cause i can't code this, but i know how to make an mp3 search on a different approach entirely...

i dunno if anyone saw my post about gsearch... it was a basic html mod on google that adds a few elements to your search string... pretty much you can find almost anything, cause thanks to google you can search through indexed files... now, the tricky part that i got no idea how to pull off... basically you gotta make a grabber kinda function that opens the links in the results n pulls all the a href links matching $format_of_choice also checking if links start http:// and if not adding the server url as start of link... Easy hey? lol but that won't fail once it's coded succesfully, unless google decides to block leechers, but since files not on their servers i doubt they will...

example of gsearch: G Search

hope this makes sense to you guys... cause if you can get that to work... most likely google will employ you, lol

ANGELUS Junior · 17 posts #18

thats just like using google hack class from phpclasses.org

wow, ive been missing this site for more than 2 years lol

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