Need help with PHP CHMOD?

  • Thread starter Thread starter Sandeep B
  • Start date Start date
S

Sandeep B

Guest
Hi everyone,

Here's my problem.

I am using a form to change CHMOD values, but the obvious thing here is that I need to change the string to an integer.

so $chmod = (int)$chmod; (right)?

This outputs 0755 which I want, but when doing this the file has the permissions 1363. So how can I fix this issue?

Thanks everyone.
 
Back
Top