النوفي
الله يعطيك العافيه
أنشأت قاعدة بيانات جديده ويوزر وباسبورد وعطيتهم التصاريح
وعدلت الملف mysql.php
حيث أنني وضعتها هكذا
/*You need to change these variables to get paFileDB working. If you are unsure of this information, please contact your host to obtain this information*/
$db[host] = "localhost"; //This is the MySQL server paFileDB will connect to
$db[user] = "هنا اليوزر"; //This is the MySQL user name
$db[pass] = "وهنا الباسبور"; //This is the MySQL password
$db[name] = "وهنا اسم قاعدة البيانات"; //This is the MySQL database paFileDB will put it's information in
وعند طلب السكربت للتنصيب
يتضح لي ان فيه خطأ لا اعلم ماهو السببب
<?php
/*
paFileDB 3.0
©2001 PHP Arena
Written by Todd
todd@phparena.uni.cc
http://www.phparena.uni.cc
Keep all copyright links on the script visible
Please read the license included with this script for more information.
*/
طبعاً في هذا المكان تطلع لي اسم قاعدة البيانات واليوزر واسم المستخدم
كما سجلتهم
/*
This is the MySQL table name prefix. The default is "pafiledb" but if you wish to install multiple copies of
paFileDB on the same database, change this to something like "pafiledb2." All tables in the MySQL database will
be named "$prefix_files," "$prefix_license" ect, for example: "pafiledb_files" and "pafiledb2_files." That will
allow multple copies of paFileDB on the same database. If you are only installing one copy of paFileDB, you dont
need to change this. NOTE: Your host does not have this information, it is up to you to set it to what you want.
If you are upgrading from an older version of paFileDB, you MUST keep this as "pafiledb"
*/
$db[prefix] = "pafiledb"; //Table name prefix-explained above.
/*Don't mess with anything below here unless you know what you're doing!*/
class mysql {
function query($db,$query,$type) {
$result = mysql_query($query);
$error = mysql_error();
global $query_count;
global $queries_used;
$query_count++;
$queries_used .= "<tr><td width=\"100%\" align=\"left\" class=\"datacell\">$query </td></tr>";
if (!empty($error)) {
$errno = mysql_errno();
$this->error("paFileDB was unable to successfully run a MySQL query.<br>MySQL Returned this error: $error Error number: $errno<br>The query that caused this error was: $query");
}
if ($type == 0) {
return $result;
}
if ($type == 1) {
$array = mysql_fetch_array($result );
return $array;
}
if ($type == 2) {
$array = mysql_num_rows($result);
return $array;
}
if ($type == 3) {
$array = mysql_insert_id();
return $array;
}
@mysql_free_result($resul t);
}
function error($error) {
die($error);
}
function connect($db) {
if(!($dbc = mysql_connect($db[host],$db[user],$db[pass]))) $this->error("paFileDB was unable to successfully connect to the MySQL database. Check your settings including the MySQL server, username, and password and try again.");
if(!(mysql_select_db($db[name],$dbc))) $this->error("paFileDB was able to connect to the MySQL database, but was unable to select the database $db[name] to use.");
}
}
$mysql = new mysql;
?>
صفحة الترحيب إعدادات قاعدة البيانات تثبيت الخيارات إنتهاء التثبيت
مرحباً بكم في تثبيت برنامج الـــديـــوان هذا الملف سوف يرشدك إلى طريقة تركيب البرنامج بسهولة .. ولكن لا بد أن تقوم أولاً بالتأكد من وضعك المعلومات الصحيحة في ملف mysql.php الموجود في مجلد 'includes' في مجلد البرنامج الرئيسي .
ارجو مساعدتي
مواقع النشر (المفضلة)