Jump to content
MakeWebGames

[V1] - Edit Admin News Issues? [Self Resolved] (Idiocy hit me for a day)


Recommended Posts

Posted

I've not editted ANYTHING in my v1 game yet, and i do own a VPS so maybe someone can help me with this?

Warning: fopen(admin.news) [function.fopen]: failed to open stream: Permission denied in /home/bung723/public_html/isc2/admin.php on line 1063

Warning: fwrite(): supplied argument is not a valid stream resource in /home/bung723/public_html/isc2/admin.php on line 1064

Warning: fclose(): supplied argument is not a valid stream resource in /home/bung723/public_html/isc2/admin.php on line 1065

 

$l=fopen("admin.news","w");
fwrite($l,stripslashes($_POST['newspaper']));
fclose($l);

 

that's lines 1063-1065

here is a few lines before and after included

function adnewspaper_submit()
{
global $ir,$c,$h,$userid;
$l=fopen("admin.news","w");
fwrite($l,stripslashes($_POST['newspaper']));
fclose($l);
print "Admin News updated!";
}
$h->endpage();
?>

 

Anyone know how i can fix this? IDK If this is a game issue or a server issue. Either way I have access to fix it..

Posted

I found out that I didn't CHMod the right file... I have 2 instances of the same game (ONE is locked for script testing purposes) and then the one i WILL be using that has WORKING mods in it etc...

I chmod'd the wrong admin.news file. haha. Thanks though :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...