Somechess Fehler

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Somechess Fehler

    Hi!

    Vielleicht könnt Ihr mir ja weiterhelfen.
    Ich habe versucht auf meinem Webspace Somechess http://somechess.org/web/
    einzurichten. Ich bekomme jedoch wenn die Datei Config.php aufgerufen wird folgenden Fehler
    Parse error: syntax error, unexpected T_VARIABLE ... config.php on line 25
    Line 25 ist die Leerzeile vor //-- Main Settings (SOME CHANGES REQUIRED).
    Ich kann hier jedoch keinen Fehler finden.
    Könnt ihr mir sagen, wo hier der Fehler liegt?
    Die Datenbankangaben sind in meiner Version mit den enstsprechenden Daten ausgefüllt.

    Danke schon einmal.

    PHP-Code:
    <?php
    /***************************************************************************************
    ** "Some Chess" some rights reserved 2007
    ** Some Chess written by Jon Link
    ** 
    ** This library is free software; you can redistribute it and/or
    ** modify it under the terms of the GNU Lesser General Public
    ** License as published by the Free Software Foundation; either
    ** version 2.1 of the License, or (at your option) any later version.
    ** 
    ** This library is distributed in the hope that it will be useful,
    ** but WITHOUT ANY WARRANTY; without even the implied warranty of
    ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    ** Lesser General Public License for more details.
    ** 
    ** You should have received a copy of the GNU Lesser General Public
    ** License along with this library; if not, write to the Free Software
    ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    ** 
    ** The images [prnqk][dl][dl].png are GPL, from Wikimedia Commons, see gpl.txt
    **
    ** a small portion of the code to display the chess board was taken from
    ** phpChessBoard by Andreas Stieger [url]http://www.wh-hms.uni-ulm.de/~tux/phpChessBoard/[/url]
    *****************************************************************************************/

    //-- Main Settings (SOME CHANGES REQUIRED)
    $host        'localhost';         // host name of database (usually it's localhost)
    $username    '';        // username for DB
    $password    '';        // password for DB
    $database    '';        // DB name (suggested name is somechess, but you can change it of course)
    $dbPre        ''                // add a prefix to Some Chess table names (optional)
    $lang        'en'                // language Some Chess uses
    $firstrun    true;                // DO NOT EDIT THIS LINE
    @mysql_connect($host,$username,$password);
    @
    mysql_select_db($database) or die('ERROR: can\'t connect to database');
    ?>
    Zuletzt geändert von unimatrixzero; 09.02.2007, 16:36.

  • #2
    Hallo,
    bei mir kommt in zeile 32 ein fehler, was auch berechtigt ist
    $dbPre = '' <<-- da fehlt ein semikolon


    $dbPre = ''
    heisen sollts
    $dbPre = '';


    das gleiche bei
    $lang = 'en'
    $lang = 'en';

    und die zeile
    @mysql_select_db($database) or die('ERROR: can't connect to database');

    ist ein Fehler da dass ' den string "schließt"

    'ERROR: can't connect to database'

    entweder

    'ERROR: can\'t connect to database')
    oder
    'ERROR: cant connect to database')

    Kommentar


    • #3
      Hi!

      Danke dir. Nachdem noch einige andere generelle Fehler korrigiert wurden geht es nun.

      Kommentar

      Lädt...
      X