Mt2 Homepage Problem

11/14/2017 20:53 xBosshunter#1
Hallo Liebes Epvp Team

Mein name ist [SA]Blade Ich Bin dabei ein Mt2 FuN PvP Server zu erstellen Soweit ist alles fertig aber ich habe ein Problem mit meiner Homepage Könnte mir einer Vilt sagen wie ich das fixxe?




PHP Code:
Deprecatedmysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/customers/webs/w601152/index.php on line 12 

PHP Code:
 Deprecatedmysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/customers/webs/w601152/index.php on line 13 
Schon mal ein Danke an alle die Antworten
11/14/2017 21:02 Filmerat#2
error_reporting(0);

Am Anfang des Php Scripts
11/14/2017 21:04 xBosshunter#3
<?PHP
error_reporting(0);
session_name("m2hp");
session_start();

error_reporting(E_ALL&~E_NOTICE);

require("./inc/config.inc.php");
require("./inc/rights.inc.php");
require("./inc/functions.inc.php");

$sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
$sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
require("./inc/head.inc.php");
?>

Es ist schon drinne geht aber nicht :confused:
11/14/2017 21:05 Filmerat#4
<?PHP
ERROR_REPORTING(E_ALL);
if(!file_exists('./inc/config.inc.php')) {
header('Location: install.php');
}
error_reporting(0);


Bei mir geht es einwandfrei
11/14/2017 21:08 xBosshunter#5
Ok kann geclosed werden Danke noch mal an Den Filmerat (thums:up)
11/14/2017 21:11 Aze /..#6
Quote:
Originally Posted by Filmerat View Post
error_reporting(0);

Am Anfang des Php Scripts
Soll was bringen? Die Meldung zu verstecken, löst das eigentliche Problem aber auch nicht.
11/14/2017 21:34 xBosshunter#7
Wie kann mann das denn genau fixxen? Lieber Aze
11/14/2017 23:40 .Inya#8
Im gesamten Homepage script alle mysql_* Befehle durch mysqli_* ersetzen und je nach Betriebssystem und php version

PHP7.1 + Ubuntu:
Code:
apt install php71-mysqli
PHP7.1 + FreeBsd:
Code:
pkg install php71-mysqli
Danach einmal bitte, je nachdem ob apache oder nginx im einsatz:
Code:
service nginx restart
service apache24 restart