Forum Moderators: coopster
Warning: chmod() [function.chmod]: No such file or directory in /home/#*$!x/public_html/mysite.com/chmod.php on line 5
if(isset($_POST['dir'])){
$num = $_POST['num'];
chmod($dir, $num);
if(!$set){ echo "Error setting permissions"; } else { echo "Success!"; }
} else {
echo "<form action='$PHP_SELF' method='POST'>
Enter the directory to CHMOD
<input type='text' maxlength='48' length='24' name='dir'><br>
Enter permissions: <input type='text' maxlength='3' length='5' name='num'>
<input type='submit' name='chmod' id='chmod' value='chmod' />
</form>";