php内部服务器错误 [英] php internal server error

查看:227
本文介绍了php内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我是这个网站的新手,我真的需要您的帮助我在尝试访问我的网站上的memberite_config.php文件时收到内部服务器错误我从这个网站上获取此文件http:// www .html-form-guide.com / php-form / php-registration-form.html



这是剧本:


Hello i am new at this website and i really need your help i am getting an internal server error when trying to access my membersite_config.php file on my website i took this file from this website http://www.html-form-guide.com/php-form/php-registration-form.html

This is the script:

<?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工作正常。

Btw the fg_membersite.php that is required is working .

推荐答案

fgmembersite = new FGMembersite();

// 在此处提供您的网站名称
fgmembersite = new FGMembersite(); //Provide your site name here


fgmembersite-> SetWebsiteName(' user11.com');

// 提供您希望收到通知的电子邮件地址
fgmembersite->SetWebsiteName('user11.com'); //Provide the email address where you want to get notifications


fgmembersite-> SetAdminEmail(' user11@user11.com' );

// 在此提供您的数据库登录详细信息:
< span class =code-comment> // 主机名,用户名,密码,数据库名称和表名
// 请注意脚本将创建表格(例如,在这种情况下为fgusers)
// 本身第一次提交register.php
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


这篇关于php内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆