[Programm] Auktionsscript - Fehlermeldung install.php

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

  • [Programm] Auktionsscript - Fehlermeldung install.php

    Hallo,

    bei dem Versuch ein Auktionsscript zu installieren, erhalte ich folgende Fehlermeldung:




    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\WAMP\www\auction\install.php on line 21

    Parse error: parse error, unexpected '"' in C:\WAMP\www\auction\install.php on line 21




    install.php:
    PHP-Code:
    <?
    ## v5.12 -> mar. 31, 2005
    ?>
    <html>
    <head>
    <title>PHP Auction Bid - Installation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="install.css" rel="stylesheet" type="text/css">
    </head>
    <?
    include_once("config/version.php");

    $error=0;
    if (isset($_POST['installok'])) {
        if ($_POST['admuser']==""||$_POST['admpass']==""||$_POST['admpass']!=$_POST['admpassconfirm']) {
            $error=1;
        } else     if (file_exists("config/config.php")) {
            $error=2;
        } else {
            $fp=fopen("config/config.php","w");
            $content = "<?php                                                                    \n";
            
    $content.= "\$dbhost '".$_POST['hostname']."';                                    \n";
            
    $content.= "\$dbuser '".$_POST['db_user']."';                                        \n";
            
    $content.= "\$dbpass '".$_POST['db_pass']."';                                        \n";
            
    $content.= "\$dbname '".$_POST['db_name']."';                                        \n";
            
    $content.= "                                                                        \n";
            
    $content.= "\$dbh mysql_connect(\$dbhost,\$dbuser,\$dbpass)                        \n";
            
    $content.= "    or die (mysql_error());                                                \n";
            
    $content.= "                                                                        \n";
            
    $content.= "mysql_select_db(\$dbname);                                                \n";
            
    $content.= "                                                                        \n";
            
    $content.= "\$getinfo mysql_query(\"SELECT * FROM probid_gen_setts\");            \n";
            
    $content.= "\$row = mysql_fetch_array(\$getinfo);                                    \n";
            
    $content.= "    \$setts['sitename']=\$row['sitename'];                                \n";
            
    $content.= "    \$setts['siteurl']=\$row['siteurl'];                                \n";
            
    $content.= "    \$setts['adminemail']=\$row['adminemail'];                            \n";
            
    $content.= "    \$setts['default_theme']=\$row['default_theme'];                    \n";
            
    $content.= "    \$setts['default_lang']=\$row['default_lang'];                        \n";
            
    $content.= "    \$setts['admin_lang']=\$row['admin_lang'];                            \n";
            
    $content.= "    \$setts['paypalemail']=\$row['paypalemail'];                        \n";
            
    $content.= "                                                                        \n";
            
    $content.= "if (file_exists(\"config/config.php\")) \$fileExtension = \"\";            \n";
            
    $content.= "else \$fileExtension = \"../\";                                            \n";
            
    $content.= "                                                                        \n";
            
    $content.= "include_once (\$fileExtension.\"config/settings.php\");                    \n";
            
    $content.= "include_once (\$fileExtension.\"config/functions.php\");                \n";
            
    $content.= "include_once (\$fileExtension.\"config/datecalc.php\");                    \n";
            
    $content.= "include_once (\$fileExtension.\"config/fees.php\");                        \n";
            
    $content.= "include_once (\$fileExtension.\"config/version.php\");                    \n";
            
    $content.= "                                                                        \n";
            
    $content.= "if (\$setts['is_ssl']==1) \$path=\$setts['ssl_address'];                \n";
            
    $content.= "else \$path=\$setts['siteurl'];                                            \n";
            
    $content.= "?>"
            
    fputs($fp,$content); 
            
    fclose($fp); 
            
    $inc="yes"
            
    ### here we'll enter the site and admin info in the DB 
            
    include ("config/config.php"); 
            
    $insertConfiguration mysql_query("UPDATE probid_gen_setts SET 
            sitename='"
    .$_POST['sitename']."',siteurl='".$_POST['siteurl']."', 
            adminemail='"
    .$_POST['adminemail']."',default_theme='default',lkey='".$_POST['lkey']."'") or die(mysql_error()); 
            
    $deleteAdmins mysql_query("DELETE FROM probid_admins");
            
    $insertDefaultAdminUser mysql_query("INSERT INTO probid_admins 
            (username, password, created, lastlogin) VALUES
            ('"
    .$_POST['admuser']."','".md5($_POST['admpass'])."',NOW(),'NULL')") or die(mysql_error());
        } 
    ?>
    <body>
    .......................................................

    Kann mir hierzu jemand einen Tip geben, worauf die Fehlermeldung (z.B. Scriptfehler bzw. WAMP Server Konfiguration) zurückzuführen ist ?

    Vielen Dank

    EDIT:
    php-tags sponsered by wurzel *move to php-dev
    Zuletzt geändert von Wurzel; 17.04.2006, 22:56.

  • #2
    und zeile 21 ist??

    EDIT:
    änder in zeile 21 (immernoch ka welche das ist) doch mal " zu '
    2 meiner pages:

    Kommentar


    • #3
      [OOP]

      danke

      Kommentar


      • #4
        .
        Zuletzt geändert von weal; 18.04.2006, 20:43.

        Kommentar


        • #5
          hats geklappt oder was?
          2 meiner pages:

          Kommentar

          Lädt...
          X