2014-03-06 1 views
0

안녕하십니까.이 웹 사이트에서 새로 왔으며 내 웹 사이트에서 내 membershipite_config.php 파일에 액세스하려고 할 때 내부 서버 오류가 발생합니다.이 웹 사이트에서이 파일을 가져 왔습니다.php 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('[email protected]'); 

    //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가 작동

+1

오류 로그에는 어떤 내용이 있습니까? – marekful

+0

자세한 내용이 필요합니다. 로그 파일을 확인하십시오 - 오류가 있습니까? –

답변

0

$ fgmembersite-> initdb에 (/ 호스트 이름 /, 'localhost를' /이름/'prasanth', /비밀번호/'P', /데이터베이스 이름/'TESTDB', /테이블 이름/'fgusers3');

당신은 이름암호를 MySQL의 설치로 필드를 변경해야합니다. 여기 'Prasanth'와 'p'는 처음에는 당신을 위해 작동하지 않습니다. 행운을 빕니다!