Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6743321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:56:50+00:00 2026-05-26T11:56:50+00:00

Here is something i dont understand: A file has the permission 0644 which if

  • 0

Here is something i dont understand:

A file has the permission 0644 which if i use php´s fileperms() functions returns 16804 as integer if i make a var_dump(). What/where is the relation between the two and how can i convert a, lets say 0755, into whatever fileperms() would return for 0755.

THX

set*

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:56:50+00:00Added an answer on May 26, 2026 at 11:56 am

    16804 is the decimal notation for the octal number 40644. Check 2nd example of the PHP manual for the meaning of these values.

    40644 extracted:

    • 4 – the file is a directory
    • 0 – padding to get the first 4 on the 5th position
    • 6 – read-writable for the owner
    • 4 – readable only for the group
    • 4 – readable only for the world.

    PHP recognizes numbers with a leading zero as an octal number. If you need to convert a string containing 0755 or 755 to a decimal number, use octdec(). The reverse function (decimal to octal) is decoct().

    If you need to change the file permissions of a file, use chmod(). For that to work, you need to be the owner of the file, otherwise you get a Permission denied error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something that has always bothered me about PHP and I have never
There must be something i don't understand about linking files -- but here's my
I have to be missing something obvious here. I don't get why this cast
I think there must be something subtle going on here that I don't know
Here's something I haven't been able to fix, and I've looked everywhere . Perhaps
Here's something I know is probably possible but I've never managed to do In
Here's something I've seen in erlang code a few times, but it's a tough
Here is something that I find disturbing. I created a small form, and I'm
Something here doesn't feel right to me here, and so I would like the
I have something here that is really catching me off guard. I have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.