MP3 Search Engine Script

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

12 replies · 4,193 views · started 14 years ago · 1 min read

TL;DR · summary of 12 replies
  • emblemco asked how to install the curl extension in their server.
  • Ghost suggested getting the host to install the curl extension if needed.
  • BB9780ACE2 reported that pressing the download link opens a new page and closes it.

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

7 participants
Anthony Developer · 82 posts #1

Hey i am here today to share my mp3 search engine script

demo here: http://www.gtriddim.net/api/demo.php

<?php

/*******************************************************************************
 *
 *******************************************************************************
 *      Website:    http://www.gtriddim.com
 *      Facebook:   http://facebook.com/gtriddim
 *      Twitter:    http://twitter.com/gtriddim
 *
 *      Copyright:  (c) 2012-2014 - GTriddim.com
 *                  You are free to modify this script except for the copyright.
 *                  Please do not remove the copyright link back to our website!
 *
 *******************************************************************************
 *  DESCRIPTION:
 *
 *      NOTE: This script coded by Anthony Johnson allows you to download MP3 Files
 *      
 *
 *******************************************************************************
*/
function gtriddim($content,$start,$end){
  if($content && $start && $end) {
    $r = explode($start, $content);
    if (isset($r[1])){
        $r = explode($end, $r[1]);
        return $r[0];
    }
    return '';
  }
}
if(isset($_GET['search']))
{
$gtriddim_search_link = $_GET['search'];

if ($gtriddim_search_link==""){

$err .= "ERROR: Please ensure you submitted the correct values to gtriddim.com Server";

}

else
{

$gtriddim_search = $_GET['search'];

$server = "http://www.gtriddim.net/api/?search=$gtriddim_search";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $server);  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
$page = curl_exec($ch);  
curl_close($ch);

$gtriddim_suc = "$page";
}

}

?>

<html>
<head>
<title>GTriddim.com | MP3 Search Engine</title>
<style type="text/css">

.gtriddim_style {
	width:211px;
	padding:5px;
	color:#fff;
	text-transform:uppercase;
	font-size:10px;
	background:#d20000;
	font-family:Arial, Helvetica, sans-serif;
	font-weight:bold;
	border:#e2e2e2 1px solid;
	cursor:pointer;
}
.err {
	padding:15px;
	background:#fcc;
	border:1px solid #f00;
        width:611px;
}
body
{
	margin:0;
	padding:0;
	font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size:20px;
}
</style>
</head>

<body>
<center>
<p><?php if ( $err ) { echo "<p class=\"err\">The following errors occurred:<br />$err</p>"; } ?>

<center><form method="GET" action="" style="margin-left: 10px; margin-right: 10px;">
	  <br/><h2>Type artist name or song below, and enjoy</h2><br/>

<input name="search" type="text" style="border:1px solid #CCCCCC; background-color:#Fff8f8; margin-right: 20px; height: 35px; font-size:14pt; color:#888 " value="" size="80" /><br/><br/>

 <input type="submit" style="border:1px solid #CCCCCC; background-position: left top; width: 109px; height: 35px; font-size: 18pt; font-family: Geneva, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #eeeeee; background-repeat:no-repeat" value="Search" />
	    <br /><br/>

<?php if ( $gtriddim_suc ) { 

$part = explode('/a>',$gtriddim_suc);

$part2 = explode('/b>',$gtriddim_suc);

for($i=1;$i<100;$i++){
$con = $part[$i];

$con2 = $part2[$i];

$link = gtriddim($con,'href="','"');

$name = strstr($con,'<a');
$name = gtriddim($name,'">','<');
//$info = strstr($con2,'<b');
$info = gtriddim($con2,'<b>','</b>');
$fileinfo = explode('<',$info);
if ( $name != "" )
          {
	 

echo "<TABLE ALIGN=\"left\" STYLE=\"margin-right:15px;\">";
	

   
echo "<p><a href=\"$link\">$name</a>$fileinfo[0]</p>";

echo "</table>";

}

}

}

?>

</form><br/><br/><P style="font-size:12px">
    This site does not store any files on its server. We only index and link to content provided by other sites.<br />
We are not responsible for the materiel found here as it is not on our servers, <br />
so if you find any copyright material and want to complain, contact the respective source directly, not us!<br /></center>

<br/><center> <footer>
            <p style="font-size:12px">Copyright © <?php echo date('Y'); ?> <a href = "http://www.gtriddim.com" target="_blank">www.gtriddim.com</a> All rights reserved</p>
        </footer></center>

I have updated the code and added the: file size, duration, and bit rate.

Please don't forget to hit the thanks button

FREE International SMS

GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....

http://gysms.com

Send FREE International MMS and Share Files worldwide using our MMS Service.

http://gysms.net

GTriddim Live Online Radio Station

http://www.gtriddim.com

mansi Developer · 60 posts #2

add size or duration of songs in ur script and also the bitrate .

Anthony Developer · 82 posts #3

mansi wrote: add size or duration of songs in ur script and also the bitrate .

I have updated the code and added the: file size, duration and bitrate

FREE International SMS

GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....

http://gysms.com

Send FREE International MMS and Share Files worldwide using our MMS Service.

http://gysms.net

GTriddim Live Online Radio Station

http://www.gtriddim.com

mansi Developer · 60 posts #4

Anthony wrote: I have updated the code and added the: file size, duration and bitrate

Very gud work, but in ur result, it skip first 2 results of main result, 😉

razib Developer · 132 posts #5

i thing this script is just a grabber of a mp3 search script 😛

🦸 Buying mobile traffic, PM me with your traffic details

Anthony Developer · 82 posts #7

razib wrote: i thing this script is just a grabber of a mp3 search script :P

Yes this script is grabbing the files we index from other mp3 sites such as the one we are currently indexing "mp3skull" and other sites that provide mp3's so by using this script once we update our website this script will also be auto updated since it will be grabbing the links from our website "http://gtriddim.net/api/?search=querystring" so if we happen to change our MP3 source "mp3skull" to a different mp3 source this script will always work.......

FREE International SMS

GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....

http://gysms.com

Send FREE International MMS and Share Files worldwide using our MMS Service.

http://gysms.net

GTriddim Live Online Radio Station

http://www.gtriddim.com

emblemco Newbie · 6 posts #8

I get this eror. . Please help me how to fix that. . 🙁

Fatal error: Call to undefined function curl_init() in /data/multiserv/ users/999246/projects/2274367/www/ ser/search.php on line 52

Ghost Senior · 366 posts #9

emblemco wrote: I get this eror. . Please help me how to fix that. . 🙁

Fatal error: Call to undefined function curl_init() in /data/multiserv/ users/999246/projects/2274367/www/ ser/search.php on line 52

probably has nothing to do at all with the script.

curl is an extension that needs to be installed on the hosting server. and your host probably hasnt got the extension loaded. PHP: Installing/Configuring - Manual

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
emblemco Newbie · 6 posts #10

how i instal the curl extensioN in my server?

Ghost Senior · 366 posts #11

emblemco wrote: how i instal the curl extensioN in my server?

get your host to do it. if they wont. then find a host that does have it if you wanna use it so bad.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
BB9780ACE2 Newbie · 2 posts #12

When i press the download link it opens a new page and closes it. I cant download it.

BB9780ACE2 Newbie · 2 posts #13

Got it downloaded, but it only finds like 2 or 3 results of different songs...

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