php membersite_config.php 页面内部服务器错误

标签 php mysql user-accounts internal-server-error

您好,我是这个网站的新用户,我真的需要您的帮助,当我尝试访问我的网站上的membersite_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');

    ?>

顺便说一句,所需的 fg_membersite.php 正在工作

最佳答案

$fgmembersite->InitDB(/hostname/'localhost', /username/'prasanth', /password/'p', /database name/'testdb', /table name/'fgusers3');

您必须在安装 mysql 时更改用户名密码字段。我猜,这里的“Prasanth”和“p”一开始对你不起作用。祝你好运!

关于php membersite_config.php 页面内部服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22231736/

相关文章:

php - 简单的mysql查询只返回一行

passwords - 在 FreeBSD 中使用一条命令更改密码

mysql - Sequelize : Deep population association join query

php - laravel undefined variable : host

mysql - phpMyAdmin:MySQL 错误 1062 - 重复条目

Ubuntu:通过 ssh 将用户帐户复制到同一台机器?

基于Java的用户认证

php - 解析错误: syntax error, unexpected '$' , expecting variable (T_VARIABLE) in/var/www/html/cdf/application/models/Appointment_model.php on line 17

php - 输入从右到左 html/php

javascript - jQuery PHP 处理输入数组