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

  • Home
  • SEARCH
  • 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 8074661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:43:45+00:00 2026-06-05T14:43:45+00:00

I have read this:- Why can't PHP create a directory with 777 permissions? and

  • 0

I have read this:-
Why can't PHP create a directory with 777 permissions?

and I can see a new folder being created by applying the following:-

// Desired folder structure
$structure = "../../../".$flash_dir."HELLO";

// To create the nested structure, the $recursive parameter 
// to mkdir() must be specified.

    $oldmask = umask(0);
    mkdir($structure, 0777);
    umask($oldmask);

when viewing the file permission of HELLO with DreamWeaver, it is 777. However, I suspect it is a Linux 0777 rather than a Windows 777, therefore I still cannot upload things to HELLO.

Will there be any alternative method to create a directory with windows 777? Thanks!

PS. when I manual create a new directory and right click it to set 777, it works perfectly, so I really think it’s related to Linux vs Windows~

  • 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-06-05T14:43:46+00:00Added an answer on June 5, 2026 at 2:43 pm

    0777 is exactly the same thing as 777

    But I still can’t say what the problem is. I would try to chmod it again after you’ve created it.

    $oldmask = umask(0);
    chmod($structure, 0777);
    umask($oldmask);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read posts about this but I can't get the right answer. I
I have read that you can do it, but would this really improve performance
I have read that a using like this: using (myObject) { myObject.DoStuff(); } Can
I have a VS project with an IntermediateDirectory like this: ....\temp\$(SolutionName)\$(ProjectName). I can read
So I have read this - https://wiki.archlinux.org/index.php/Python And it is clear from this wiki
I have read this: Transaction safe insertion of node in nested set? but I
I have read this thread FATAL EXCEPTION main Android App and it is very
I have read this question but it's not quite what I was looking for.
I have read this article from High Scalability about Stack Overflow and other large
I have read this article about 400% boost of your website . This is

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.