2014-03-06 53 views
0

您好,我是這個網站的新手,我真的需要您的幫助我在嘗試訪問我的網站上的memberite_config.php文件時出現內部服務器錯誤我從此網站上獲取此文件http://www.html-form-guide.com/php-form/php-registration-form.htmlphp membersite_config.php頁面內部服務器錯誤

這是腳本:

<?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'); 

    ?> 

順便說一下所需要的fg_membersite.php工作

+0

'<?php'而不是'<?PHP'也許? [啓用PHP錯誤報告](http://blog.flowl.info/2013/enable-display-php-errors/)並重試.. – DanFromGermany

+1

錯誤日誌說什麼? – marekful

+0

需要更多信息。檢查日誌文件 - 有沒有錯誤? –

回答

0

$ fgmembersite-> initdb的(/ 主機名/'本地主機', /用戶名/'prasanth', /密碼/'P', /數據庫名/'TESTDB', /表名/'fgusers3');

你必須改變用戶名密碼,你在MySQL安裝領域。這裏'Prasanth'和'p'一開始我不會爲你工作。祝你好運!