Also in meinem Script steht das:
$dz = fopen("db_config.php", "w+");
$php = "<?php \n";
$write = "\$host = '$host'; \n ";
$write2 = "\$dbuser = '$dbuser'; \n ";
$write3 = "\$dbpass = '$dbpass'; \n ";
$write4 = "\$db = '$db'; \n ";
$write5 = "\$nickname = '$nickname'; \n ";
$write6 = "\$passwort = '$passwort'; \n ";
$write7 = "\$tab = '$tab'; \n ";
$phpend = "?>";
$all = $php.$write.$write2.$write3.$write4.$write5.$write6.$write7.$phpend;
fwrite($dz, $all);
fclose($dz);
der Fehler kommt:
Warning: fopen("db_config.php", "w+") - Permission denied in /www/htdocs/sponsor/admin/installation.php on line 222
Warning: fwrite(): supplied argument is not a valid File-Handle resource in /www/htdocs/sponsor/admin/installation.php on line 233
Warning: fclose(): supplied argument is not a valid File-Handle resource in /www/htdocs/sponsor/admin/installation.php on line 234
warum ?? warum?? warum hab ich das verdient?
$dz = fopen("db_config.php", "w+");
$php = "<?php \n";
$write = "\$host = '$host'; \n ";
$write2 = "\$dbuser = '$dbuser'; \n ";
$write3 = "\$dbpass = '$dbpass'; \n ";
$write4 = "\$db = '$db'; \n ";
$write5 = "\$nickname = '$nickname'; \n ";
$write6 = "\$passwort = '$passwort'; \n ";
$write7 = "\$tab = '$tab'; \n ";
$phpend = "?>";
$all = $php.$write.$write2.$write3.$write4.$write5.$write6.$write7.$phpend;
fwrite($dz, $all);
fclose($dz);
der Fehler kommt:
Warning: fopen("db_config.php", "w+") - Permission denied in /www/htdocs/sponsor/admin/installation.php on line 222
Warning: fwrite(): supplied argument is not a valid File-Handle resource in /www/htdocs/sponsor/admin/installation.php on line 233
Warning: fclose(): supplied argument is not a valid File-Handle resource in /www/htdocs/sponsor/admin/installation.php on line 234
warum ?? warum?? warum hab ich das verdient?
Kommentar