
נכתב במקור על ידי
daniel4evar
אני מנסה להתקין אתר לשרת שלי ולא משנה באיזה CMS אני משתמש זה כותב ככה:
Fatal error: Call to undefined function mysql_connect() in C:\AppServ\www\config\database.php on line 41
אני על שרת V62 עם זומבי ריפאק.
ככה נראה הקובץ DATABASE:
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
die("403 - Access Forbidden");
}
/* MySQL Connection Information */
// Where is MySQL Hosted? If you aren`t sure, just leave it as "localhost"
$host = "localhost:3306";
// Database Username - Usually "root"
$user = "root";
// Database Password - Usually "root". If you don`t have a password, or are not sure, leave it blank.
$pass = "";
// Database Name - Usually "odinms"
$database = "odinms";
// What is the server`s Wan IP
$serverip = "syntaxms.zapto.org";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";
/* Don`t touch. */
$connect = mysql_connect($host,$user,$pass);
$db = mysql_select_db($database, $connect) or die(mysql_error());
?>