你好我是这个网站的新手,我真的需要你的帮助我在尝试访问我的网站上的memberite_config.php文件时收到内部服务器错误我从这个网站http://www.html-form-guide.com/php-form/php-registration-form.html
这是剧本:
<?PHP
require_once("./include/fg_membersite.php");
$fgmembersite = new FGMembersite();
//Provide your site name here
$fgmembersite->SetWebsiteName('user11.com');
//Provide the email address where you want to get notifications
$fgmembersite->SetAdminEmail('user11@user11.com');
//Provide your database login details here:
//hostname, user name, password, database name and table name
//note that the script will create the table (for example, fgusers in this case)
//by itself on submitting register.php for the first time
$fgmembersite->InitDB(/*hostname*/'localhost',
/*username*/'prasanth',
/*password*/'p',
/*database name*/'testdb',
/*table name*/'fgusers3');
//For better security. Get a random string from this link: http://tinyurl.com/randstr
// and put it here
$fgmembersite->SetRandomKey('qSRcVS6DrTzrPvr');
?>
Btw所需的fg_membersite.php正在运作
答案 0 :(得分:0)
$ fgmembersite-&GT; initdb的(/ 主机名 /&#39;本地主机&#39 ;, / 用户名 /&#39; prasanth&#39 ;, / 密码 /&#39; P&#39 ;, / 数据库名称 /&#39; testdb&#39;, / 表名 /&#39; fgusers3&#39;);
您必须更改在mysql中安装的用户名和密码字段。这里&#39; Prasanth&#39;和&#39; p&#39;我猜你起初不会为你工作。祝你好运!