I am developing an app that has a form for changing the access permissions of files.
So, the user enters the octal value to change the permissions to. This value is
set to the value of a hidden field. So the php processing script gets a string rep
of the octal value ('0644' for instance). When calling chmod(), the second argument
has to be a number.
So, the question is how to convert the string to a number value. I thought there
was a parseint type function in php but I can't find any.
thanks for time and attention