#52261359 · 27 Feb 2018, 13:25 · · პროფილი · პირადი მიმოწერა · ჩატი
Error: 1053 - Server shutdown in progress Error: 2006 - MySQL server has gone away Error: 2013 - Lost connection to MySQL server
ძალიან ხშირად ვიღებ ამ შეცდომებს, განსაკუთრებით ბოტები იღებენ, გუგლი, იაჰუ და ასე შემდეგ...
ამ კოდის მაქსიმალურად ოპტიმიზაცია შესაძლებელია?
CODE | //----------------------------------------- // Connect //-----------------------------------------
if( $this->obj['sql_socket'] ) { $this->obj['sql_host'] = $this->obj['sql_host'] . ':' . $this->obj['sql_socket']; }
if ( $this->obj['persistent'] ) { $this->connection_id = @mysql_pconnect( $this->obj['sql_host'] , $this->obj['sql_user'] , $this->obj['sql_pass'] , $this->obj['force_new_connection'] ); } else { $this->connection_id = @mysql_connect( $this->obj['sql_host'] , $this->obj['sql_user'] , $this->obj['sql_pass'] , $this->obj['force_new_connection'] ); }
if ( ! $this->connection_id ) { $this->throwFatalError(); return FALSE; }
if ( ! mysql_select_db($this->obj['sql_database'], $this->connection_id) ) { $this->throwFatalError(); return FALSE; }
//----------------------------------------- // Remove sensitive data //-----------------------------------------
unset( $this->obj['sql_host'] ); unset( $this->obj['sql_user'] ); unset( $this->obj['sql_pass'] );
//----------------------------------------- // If there's a charset set, run it //-----------------------------------------
if( $this->obj['sql_charset'] ) { $this->query( "SET NAMES '{$this->obj['sql_charset']}'" ); }
return TRUE; }
/** * Close database connection * * @return @e boolean */ public functi0n disconnect() { if ( $this->connection_id ) { return @mysql_close( $this->connection_id ); } } |
სერვერის მხრიდან ლიმიტების მომატება არ გამოვა და იქნებ ამ კოდში შეიძლებოდეს რამის გაკეთება This post has been edited by -ქართველი- on 27 Feb 2018, 14:02
--------------------
✅ კოდის მოხსნა IMEI კოდით და პროგრამულად, პროგრამის/სისტემის ჩაწერა ნებისმიერ ტელეფონზე. ✅ ნებისმიერი ტელეფონი, რასაც კოდი ეხსნება: https://forum.ge/?f=55&showtopic=34569570
https://unlocker.ge https://mitsubishi-club.ge/ https://legion.ge/
GU-001-RJ
|