所以我对我购买的脚本存在问题,但是开发人员似乎已经死了,并且不会回复我来帮助解决这个问题。
我得到了这个错误;
致命错误:未捕获错误:在/var/www/html/includes/db.php:6中调用未定义函数mysql_connect()堆栈跟踪:#0 /var/www/html/index.php(8):第6行/var/www/html/includes/db.php中引入的include_once()#1 {main}
这个错误好像来自这个php文件;这有点像这样;
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root'); // Your database Username
define('DB_PASSWORD', ''); // Your database Password
define('DB_DATABASE', 'SQL'); // Your database Name
$connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error());
$database = mysql_select_db(DB_DATABASE) or die(mysql_error());
mysql_query("SET NAMES 'UTF8'");
mysql_query("SET character_set_connection = 'UTF8'");
mysql_query("SET character_set_client = 'UTF8'");
mysql_query("SET character_set_results = 'UTF8'");
$path = "uploads/";
$LogoPaht="css/icons/";
$conversation_uploads = "conversation_images/";
$profile_image_path = "user_profile_uploads/";
$admin_path = "../".$LogoPaht;
$admin_profile_path='../'.$profile_image_path;
$admin_path_uploads='../'.$path;
$profile_cover_pic_path = "user_profile_cover_uploads/"; // User Profile Cover File
$perpage=10; // Updates perpage
$base_url='http://localhost:8888/'; // base_url
$admin_base_url=$base_url.'smadmin/'; // Admin base_url
$gravatar=0; // 0 false 1 true gravatar image
$rowsPerPage=1000000; //friends list
$profilePerPage=3;
/*SMTP Details */
$smtpUsername='yourname@gmail.com'; //yourname@gmail.com or you can use your webmail like somename@yourwebsitename.com
$smtpPassword='pass'; //gmail password or your webmail password
$smtpHost='ssl://mail.yourwebsitename.com'; //tls://smtp.gmail.com if yo
$smtpPort='465'; //465
$smtpFrom='yourname@gmail.com'; //yourname@gmail.com
?>
对此的任何帮助都意味着很多,如果有人甚至可以指导我,因为这对我来说是第一个项目类型的东西!
一切顺利,并提前感谢, - 查理克