habe ein problem mit nem root/privat
und war au nem root(linux) kommt dieser fehler wenn ich versuche die server. zu ändern
Warning: fopen(/var/www/samp/server/server.cfg) [function.fopen]: failed to open stream: Permission denied in /var/www/samp/data/core.php on line 1138
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1140
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1143
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1144
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1145
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1146
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1147
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1148
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1149
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1150
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1152
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1157
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1163
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/samp/data/core.php on line 1167
und privat kann ich die .cfg zwar ändern aber der server beendet wenn er hochgefahren ist
es wird ja gesagt die core datei is defekt
hoffentlich findet ihr den fehler
ps. ich hab windows aber auf dem root ist der linux server hochgeladen also kommt nicht mit sowas, es hatte gefunkt bis wir irgendwann einen restart machen wolten wegen ein paar fehlern(haben auch schon mit backup probiert)
hier die die zeilen
$open = fopen($file, 'w');
fwrite($open, "echo Script generated by Westie - Executing server.\r\n");
/* Misc stuff. */
fwrite($open, "port ".$_POST['port']."\r\n");
fwrite($open, "rcon_password ".$_POST['rcon_password']."\r\n");
fwrite($open, "lanmode ".$_POST['lanmode']."\r\n");
fwrite($open, "maxplayers ".$_POST['maxplayers']."\r\n");
fwrite($open, "announce ".$_POST['announce']."\r\n");
fwrite($open, "query ".$_POST['query']."\r\n");
fwrite($open, "hostname ".$_POST['hostname']."\r\n");
fwrite($open, "weburl ".$_POST['weburl']."\r\n");
if($_POST['filterscripts']) fwrite($open, "filterscripts ".$_POST['filterscripts']."\r\n");
if($_POST['plugins']) fwrite($open, "plugins ".$_POST['plugins']."\r\n");
if($_POST['password']) fwrite($open, "password ".$_POST['password']."\r\n");
/* Yay! Gamemodes. */
fwrite($open, "\r\n");
for($i = 0; $i < 16; $i++)
{
if($_POST['gamemode'.$i])
{
fwrite($open, "gamemode".$i." ".$_POST['gamemode'.$i]."\r\n");
}
}
fclose($open);