Hi hier der Script:
$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);
So normal müsste die Datei db_config.php durch das w+ angelegt werden, ach die datei die das ausführt hat die rechte 777
so nun der Fehler:
Warning: fopen("db_config.php", "w+") - Permission denied in /home/www/s19p759/html/banner/admin/installation.php on line 224
Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/www/s19p759/html/banner/admin/installation.php on line 235
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/www/s19p759/html/banner/admin/installation.php on line 236
was ist da los?????
$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);
So normal müsste die Datei db_config.php durch das w+ angelegt werden, ach die datei die das ausführt hat die rechte 777
so nun der Fehler:
Warning: fopen("db_config.php", "w+") - Permission denied in /home/www/s19p759/html/banner/admin/installation.php on line 224
Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/www/s19p759/html/banner/admin/installation.php on line 235
Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/www/s19p759/html/banner/admin/installation.php on line 236
was ist da los?????
Kommentar