I'm trying to make a script to chmod a value.
$filename and $dir are passed to select_mode.php.
$filename, $dir, and $mode are passed to chmod.php via a form.
The problem is, is that $mode is just written in a input box, and is passed as a string, not an int. This means that when I ;
chmod ($dir . "/" . $filename, $mode)
It chmods it to some very odd value. Can I convert a string to an int?!, the string only consists of numbers anyway, like 0644, as the chmod mode. Many thanks in advance for this.