Huijari Posted December 28, 2009 Share Posted December 28, 2009 Hello, so this is my code: if ($act=="changeattrib") { echo"<center><form method=post action=?act=permission&te=$te&path=$dir><FONT SIZE=2 COLOR=#00000>Change $te perms</FONT><BR><input type=hidden name=u value=\"$te\"><input type=radio name=no value=0555>Chmod 555<BR><input type=radio name=no value=0666>Chmod 666<BR><input type=radio name=no value=0777>Chmod 777<BR><input type=submit value=Change> <a href='?dir=$dir'>Cancel</a></form></center>"; } if ($act=="permission") { $v=chmod("$root$path/$u",$no); echo "<center>$te has been CHMOD $v<BR><A HREF=?&dir=$path>Return</A></center>"; } The thing that is not working, is the $no. When I run that script it will change the file's permission to 1411. And it will echo: index.html has been CHMOD 1. So would be nice if someone would see the bug in radio button's script's. Link to comment https://forums.phpfreaks.com/topic/186531-my-chmod-script-bugging/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.