Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
[Programm] Auktionsscript - Fehlermeldung install.php [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
[Programm] Auktionsscript - Fehlermeldung install.php


 
weal
17-04-2006, 22:03 
 
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:

<?
## 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

php-tags sponsered by wurzel *move to php-dev

 
chrpun
18-04-2006, 01:06 
 
und zeile 21 ist??

änder in zeile 21 (immernoch ka welche das ist) doch mal " zu '

 
weal
18-04-2006, 20:39 
 
danke

 
weal
18-04-2006, 20:39 
 
.

 
chrpun
18-04-2006, 20:59 
 
hats geklappt oder was?

- -

Alle Zeitangaben in WEZ +2. Es ist jetzt 19:25 Uhr.