MP3 Search Engine Script

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

    MP3 Search Engine Script

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

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

    PHP Code:
    <?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($chCURLOPT_URL$server);  
    curl_setopt($chCURLOPT_RETURNTRANSFER1);  
    $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 &copy; <?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
    Attached Files
    Last edited by Anthony; 21.09.12, 12:35.

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

    Comment


      #3
      Originally posted by mansi View Post
      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

      Comment


        #4
        Originally posted by Anthony View Post
        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, ;)

        Comment


          #5
          i thing this script is just a grabber of a mp3 search script :P
          Buying mobile traffic, PM me with your traffic details

          Comment


            #6
            Originally posted by razib View Post
            i thing this script is just a grabber of a mp3 search script :P
            mp3skull.com
            I need some facebook likes, can you please help me
            http://facebook.com/softwarefreakin
            I noticed social media is really powerful
            Well DONE is better than well SAID

            Comment


              #7
              Originally posted by razib View Post
              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.......

              Comment


                #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

                Comment


                  #9
                  Originally posted by emblemco View Post
                  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 '

                  sigpic
                  alt='coding-talk.com!!' />';
                  echo 'Sharing Is Caring!';
                  } else {
                  echo '

                  alt='the username GHOST has been comprimised!' />';
                  echo 'OMG SOMEBODY HELP ME!!';
                  }
                  ?>

                  Comment


                    #10
                    how i instal the curl extensioN in my server?

                    Comment


                      #11
                      Originally posted by emblemco View Post
                      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 '

                      sigpic
                      alt='coding-talk.com!!' />';
                      echo 'Sharing Is Caring!';
                      } else {
                      echo '

                      alt='the username GHOST has been comprimised!' />';
                      echo 'OMG SOMEBODY HELP ME!!';
                      }
                      ?>

                      Comment


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

                        Comment


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

                          Comment

                          Working...
                          X