[hot] New working MP3 Search engine that you have always wanted

Started on the old forum in April 2014 · view the original in the archive · old links redirect here

36 replies · 3,333 views · started 12 years ago · 1 min read

TL;DR · summary of 36 replies
  • - The main issue was related to creating a table in the MySQL database during installation.
  • - A fix for this issue involved replacing the includes/class/_class_mysql.php file with a new version provided by coderess.
  • - Another problem encountered was site slowness when searching, which was resolved by changing settings in _class_curl.php as suggested by coderess.
  • - The final unresolved issue mentioned was related to play mp3 functionality not working properly on the website.

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

17 participants
archer Developer · 83 posts #1

I found this great nulled mp3 search engine somewhere on the net and then i uploaded and installed it on a good free webhost. The configurations needed on this script are ok with the webhost.

The only problem i found that when i install it, it cannot create table on mysql database. this is the last step i cannot go thru when doing the installation.

i hope somebody can figure out this problem

Demo below

WAPMASTER ADD YOUR SITE AT TOPBEST AND GET 1000 UNIQUE VISIT PER DAY

getwapid Newbie · 6 posts #3

I do not understand this problem please help me

yatakitumbi Newbie · 2 posts #5

Ive got erro code unexpected error "{" on line 1 whats this? Parse error: syntax error, unexpected '{' in /home/u737446977/public_html/includes/class/_class_mysql.php on line 1 This error wew

coderess Junior · 11 posts #6

after upload your script, replace code or copy paste again in binary public_html/includes/class/_class_mysql.php this demo http://mp3ku.t15.org

archer Developer · 83 posts #7

Thanks coderess thats good idea. guys please replce your includes/class/_class_mysql.php with this one:

<?php

if ( extension_loaded('mysqli') AND version_compare("5.0.5", phpversion(), "!=") )
{
    class mysqldb
        {
            var $db_id = false;
            var $query_num = 0;
            var $query_list = array();
            var $mysql_error = '';
            var $mysql_version = '';
            var $mysql_error_num = 0;
            var $mysql_extend = "MySQLi";
            var $MySQL_time_taken = 0;
            var $query_id = false;
            
            function connect($db_user, $db_pass, $db_name, $db_location = 'localhost', $show_error=1)
            {
                $db_location = explode(":", $db_location);
                if (isset($db_location[1])) {
                    $this->db_id = @mysqli_connect($db_location[0], $db_user, $db_pass, $db_name, $db_location[1]);
                } else {
                    $this->db_id = @mysqli_connect($db_location[0], $db_user, $db_pass, $db_name);
                }
                if(!$this->db_id) {
                    if($show_error == 1) {
                        $this->display_error(mysqli_connect_error(), '1');
                    } else {
                        return false;
                    }
                } 
                $this->mysql_version = mysqli_get_server_info($this->db_id);
                if(!defined('COLLATE'))
                { 
                    define ("COLLATE", "utf8");
                }
                mysqli_query($this->db_id, "SET NAMES '" . COLLATE . "'");
                return true;
            }
            
            function query($query, $show_error=true)
            {
                $time_before = $this->get_real_time();
                if(!$this->db_id) $this->connect(MYSQLDBUSER, MYSQLDBPASS, MYSQLDBNAME, MYSQLHOST);
                
                if(!($this->query_id = mysqli_query($this->db_id, $query) )) {
                    $this->mysql_error = mysqli_error($this->db_id);
                    $this->mysql_error_num = mysqli_errno($this->db_id);
                    if($show_error) {
                        $this->display_error($this->mysql_error, $this->mysql_error_num, $query);
                    }
                }
                    
                $this->MySQL_time_taken += $this->get_real_time() - $time_before;
                
        //            $this->query_list[] = array( 'time'  => ($this->get_real_time() - $time_before), 
        //                                         'query' => $query,
        //                                         'num'   => (count($this->query_list) + 1));
                
                $this->query_num ++;
                return $this->query_id;
            }
            
            function get_row($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysqli_fetch_assoc($query_id);
            }
            function get_array($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysqli_fetch_array($query_id);
            }
            
            function super_query($query, $multi = false)
            {
                if(!$multi) {
                    $this->query($query);
                    $data = $this->get_row();
                    $this->free();            
                    return $data;
                } else {
                    $this->query($query);
                    
                    $rows = array();
                    while($row = $this->get_row()) {
                        $rows[] = $row;
                    }
                    $this->free();            
                    return $rows;
                }
            }
            
            function num_rows($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysqli_num_rows($query_id);
            }
            
            function insert_id()
            {
                return mysqli_insert_id($this->db_id);
            }
            function get_result_fields($query_id = '') {
                if ($query_id == '') $query_id = $this->query_id;
                while ($field = mysqli_fetch_field($query_id))
                {
                    $fields[] = $field;
                }
                
                return $fields;
               }
            function safesql( $source )
            {
                if ($this->db_id) return mysqli_real_escape_string ($this->db_id, $source);
                else return mysql_escape_string($source);
            }
            function free( $query_id = '' )
            {
                if ($query_id == '') $query_id = $this->query_id;
                @mysqli_free_result($query_id);
            }
            function close()
            {
                @mysqli_close($this->db_id);
            }
            function get_real_time()
            {
                list($seconds, $microSeconds) = explode(' ', microtime());
                return ((float)$seconds + (float)$microSeconds);
            }    
            function display_error($error, $error_num, $query = '')
            {
                if($query) {
                    // Safify query
                    $query = preg_replace("/([0-9a-f]){32}/", "********************************", $query); // Hides all hashes
                    $query_str = "$query";
                }
                
                $sqlerror="<table cellpadding=\"0\" cellspacing=\4\" class=\"smallgrey\" border=\"0\" align=\"center\">\n";
                $sqlerror.="<tr><td class=\"smallorange\"><font size=4><B><U>".$error."</U></B></td></tr>\n";
                $sqlerror.="<tr><td height=\"10\"></td></tr>\n";
                $sqlerror.="<tr><td>MySQL Error </td><td>: ".$query_str."</td></tr>\n";
                $sqlerror.="<tr><td>Error Number</td><td>: ".$error_num."</td></tr>\n";
                $sqlerror.="<tr><td>Date</td><td>: ".date("D, F j, Y H:i:s")."</td></tr>\n";
                $sqlerror.="<tr><td>IP</td><td>: ".getenv("REMOTE_ADDR")."</td></tr>\n";
                $sqlerror.="<tr><td>Browser</td><td>: ".getenv("HTTP_USER_AGENT")."</td></tr>\n";
                $sqlerror.="<tr><td>Script</td><td>: ".getenv("REQUEST_URI")."</td></tr>\n";
                $sqlerror.="<tr><td>Referer</td><td>: ".getenv("HTTP_REFERER")."</td></tr>\n";
                $sqlerror.="<tr><td>PHP Version </td><td>: ".PHP_VERSION."</td></tr>\n";
                $sqlerror.="<tr><td>OS</td><td>: ".PHP_OS."</td></tr>\n";
                $sqlerror.="<tr><td>Server</td><td>: ".getenv("SERVER_SOFTWARE")."</td></tr>\n";
                $sqlerror.="<tr><td>Server Name</td><td>: ".getenv("SERVER_NAME")."</td></tr>\n";
                $sqlerror.="</table>";

                echo '<?xml version="1.0" encoding="iso-8859-1"?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                <title>MySQL Fatal Error</title>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                <style type="text/css">
                <!--
                    BODY {
                    FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal;  FONT-FAMILY: Arial, Verdana;
                    SCROLLBAR-FACE-COLOR: #e8e8e8; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #e8e8e8; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: #cccccc
                    }
                    .smallorange {
                    FONT-SIZE: 8pt; COLOR: #FF6600; FONT-FAMILY: Arial, Verdana
                    }
                -->
                </style>
                </head>
                <body>
                '.$sqlerror.'
                </body>
                </html>';
                
                exit();
            }
        }

}
else
{
    class mysqldb
        {
            var $db_id = false;
            var $connected = false;
            var $query_num = 0;
            var $query_list = array();
            var $mysql_error = '';
            var $mysql_version = '';
            var $mysql_error_num = 0;
            var $mysql_extend = "MySQL";
            var $MySQL_time_taken = 0;
            var $query_id = false;
            
            function connect($db_user, $db_pass, $db_name, $db_location = 'localhost', $show_error=1)
            {
                if(!$this->db_id = @mysql_connect($db_location, $db_user, $db_pass)) {
                    if($show_error == 1) {
                        $this->display_error(mysql_error(), mysql_errno());
                    } else {
                        return false;
                    }
                } 
                if(!@mysql_select_db($db_name, $this->db_id)) {
                    if($show_error == 1) {
                        $this->display_error(mysql_error(), mysql_errno());
                    } else {
                        return false;
                    }
                }
                $this->mysql_version = mysql_get_server_info();
                if(!defined('COLLATE'))
                { 
                    define ("COLLATE", "utf8");
                }
                if (version_compare($this->mysql_version, '4.1', ">=")) mysql_query("/*!40101 SET NAMES '" . COLLATE . "' */");
                $this->connected = true;
                return true;
            }
            
            function query($query, $show_error=true)
            {
                $time_before = $this->get_real_time();
                if(!$this->connected) $this->connect(MYSQLDBUSER, MYSQLDBPASS, MYSQLDBNAME, MYSQLHOST);
                
                if(!($this->query_id = mysql_query($query, $this->db_id) )) {
                    $this->mysql_error = mysql_error();
                    $this->mysql_error_num = mysql_errno();
                    if($show_error) {
                        $this->display_error($this->mysql_error, $this->mysql_error_num, $query);
                    }
                }
                    
                $this->MySQL_time_taken += $this->get_real_time() - $time_before;
                
        //            $this->query_list[] = array( 'time'  => ($this->get_real_time() - $time_before), 
        //                                         'query' => $query,
        //                                         'num'   => (count($this->query_list) + 1));
                $this->query_num ++;
                return $this->query_id;
            }
            
            function get_row($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysql_fetch_assoc($query_id);
            }
            function get_array($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysql_fetch_array($query_id);
            }
            
            
            function super_query($query, $multi = false)
            {
                if(!$multi) {
                    $this->query($query);
                    $data = $this->get_row();
                    $this->free();            
                    return $data;
                } else {
                    $this->query($query);
                    
                    $rows = array();
                    while($row = $this->get_row()) {
                        $rows[] = $row;
                    }
                    $this->free();            
                    return $rows;
                }
            }
            
            function num_rows($query_id = '')
            {
                if ($query_id == '') $query_id = $this->query_id;
                return mysql_num_rows($query_id);
            }
            
            function insert_id()
            {
                return mysql_insert_id($this->db_id);
            }
            function get_result_fields($query_id = '') {
                if ($query_id == '') $query_id = $this->query_id;
                while ($field = mysql_fetch_field($query_id))
                {
                    $fields[] = $field;
                }
                
                return $fields;
               }
            function safesql( $source )
            {
                if ($this->db_id) return mysql_real_escape_string ($source, $this->db_id);
                else return mysql_escape_string($source);
            }
            function free( $query_id = '' )
            {
                if ($query_id == '') $query_id = $this->query_id;
                @mysql_free_result($query_id);
            }
            function close()
            {
                @mysql_close($this->db_id);
            }
            function get_real_time()
            {
                list($seconds, $microSeconds) = explode(' ', microtime());
                return ((float)$seconds + (float)$microSeconds);
            }    
            function display_error($error, $error_num, $query = '')
            {
                if($query) {
                    // Safify query
                    $query = preg_replace("/([0-9a-f]){32}/", "********************************", $query); // Hides all hashes
                    $query_str = "$query";
                }
                
                $sqlerror="<table cellpadding=\"0\" cellspacing=\4\" class=\"smallgrey\" border=\"0\" align=\"center\">\n";
                $sqlerror.="<tr><td class=\"smallorange\"><font size=4><B><U>".$error."</U></B></td></tr>\n";
                $sqlerror.="<tr><td height=\"10\"></td></tr>\n";
                $sqlerror.="<tr><td>MySQL Error </td><td>: ".$query_str."</td></tr>\n";
                $sqlerror.="<tr><td>Error Number</td><td>: ".$error_num."</td></tr>\n";
                $sqlerror.="<tr><td>Date</td><td>: ".date("D, F j, Y H:i:s")."</td></tr>\n";
                $sqlerror.="<tr><td>IP</td><td>: ".getenv("REMOTE_ADDR")."</td></tr>\n";
                $sqlerror.="<tr><td>Browser</td><td>: ".getenv("HTTP_USER_AGENT")."</td></tr>\n";
                $sqlerror.="<tr><td>Script</td><td>: ".getenv("REQUEST_URI")."</td></tr>\n";
                $sqlerror.="<tr><td>Referer</td><td>: ".getenv("HTTP_REFERER")."</td></tr>\n";
                $sqlerror.="<tr><td>PHP Version </td><td>: ".PHP_VERSION."</td></tr>\n";
                $sqlerror.="<tr><td>OS</td><td>: ".PHP_OS."</td></tr>\n";
                $sqlerror.="<tr><td>Server</td><td>: ".getenv("SERVER_SOFTWARE")."</td></tr>\n";
                $sqlerror.="<tr><td>Server Name</td><td>: ".getenv("SERVER_NAME")."</td></tr>\n";
                $sqlerror.="</table>";

                echo '<?xml version="1.0" encoding="iso-8859-1"?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                <title>MySQL Fatal Error</title>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                <style type="text/css">
                <!--
                    BODY {
                    FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal;  FONT-FAMILY: Arial, Verdana;
                    SCROLLBAR-FACE-COLOR: #e8e8e8; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #e8e8e8; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: #cccccc
                    }
                    .smallorange {
                    FONT-SIZE: 8pt; COLOR: #FF6600; FONT-FAMILY: Arial, Verdana
                    }
                -->
                </style>
                </head>
                <body>
                '.$sqlerror.'
                </body>
                </html>';
                
                exit();
            }
        }

}
?>

WAPMASTER ADD YOUR SITE AT TOPBEST AND GET 1000 UNIQUE VISIT PER DAY

baki Newbie · 9 posts #8

thanks its working but the problem is site is slow to load when searching - http://qmusic.t15.org/ and got this error any idea on this?

Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/u138719352/public_html/includes/class/_class_curl.php on line 60 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/u138719352/public_html/includes/class/_class_curl.php on line 60

coderess Junior · 11 posts #9

your welcome Archer 🥳hihihiii

coderess Junior · 11 posts #10

@ baki : please change your includes/class/_class_curl.php find code in _class_curl.php :

if ($this->follow) {
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        } else {
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
        }

and change the number 1 with 0

baki Newbie · 9 posts #11

@codepress same result sir... site so slow when searching

coderess Junior · 11 posts #12

baki do not open two or many source, make soundcloud source Boss

baki Newbie · 9 posts #13

@codepress its okey now but one more error i encountered - Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/melchor/public_html/qmobilez.tk/includes/class/_class_mysql.php on line 116

at the top of the page

http://qmobilez.tk/search.html?q=West+Coast+Lana+Del+Rey

pmeSCo Newbie · 2 posts #14

coderess wrote: @ baki : please change your includes/class/_class_curl.php find code in _class_curl.php :

if ($this->follow) {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
} else {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
}

and change the number 1 with 0

if you just share the fix version

coderess Junior · 11 posts #15

pmeSCo but my site the Download not working,.. how to solve this problem boss ?

coderess Junior · 11 posts #16

baki do you know how to solve ? my site the Download is not working sir

gelostics Newbie · 1 posts #19

guys!! help!! how to fix this??

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.


Apache Server at singertube.naruto-tv.info Port 80

something else Fellow · 2,296 posts #20

gelostics wrote: guys!! help!! how to fix this??

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.


Apache Server at singertube.naruto-tv.info Port 80

You need to fix your .htaccess - if you read the instructions inside of it - you should be able to fix it

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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