- Impact
- 19
Hey
I am trying to install a script for my schools site but the ftp doesnt give me permissions to change the CHMOD so i got this handy script to do it but its giving me a parse error
error is :
Parse error: parse error, unexpected T_VARIABLE in chmod.php on line 3
I am trying to install a script for my schools site but the ftp doesnt give me permissions to change the CHMOD so i got this handy script to do it but its giving me a parse error
PHP:
<?php
if(isset($_POST['dir'])){
$set = chmod($dir, 0.$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'>
</form>";
}
?>
error is :
Parse error: parse error, unexpected T_VARIABLE in chmod.php on line 3




