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 7639765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:30:16+00:00 2026-05-31T08:30:16+00:00

i have a problem with the function mkdir() i get that error message: Warning:

  • 0

i have a problem with the function mkdir()

i get that error message:
Warning: mkdir() [function.mkdir]: Unable to access /user/$id

and do not understand why. i set the rights for this direction to 0777 on my server, means full access to create an direction for everyone. even in my php code is set it up to 0777. but it doesn#t work.

here is my code:

mkdir ( '/user/$id', 0777 );

that means it should create a subfolder into the directionsfolder named user. user is like i already said, 0777. the permission in php too. what am i doing wrong? thanks.

  • 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-31T08:30:18+00:00Added an answer on May 31, 2026 at 8:30 am

    Do you have access to the root folder? You may not have access to add a directory /user.

    Try changing the single quotes to double quotes:

    mkdir ( "/user/$id", 0777 );
    

    This will allow you to pass the variable value into the string, instead of using $id.

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

Sidebar

Related Questions

I have problem that on server include() function does not want to work and
I have problem with synchronizing results of function I get with AJAX with that
I have a problem with Jquery function getJSON, the action url does not trigger
I have problem with fancybox. I want to write a function that will run
I have a problem with Lucene's scoring function that I can't figure out. So
I have problem with url tag. I want to redirect to a function that
I have a problem using a function when there should not be any problem.
I have the function below, but the problem is that the zip file will
I have a problem using the Java search function in Eclipse on a particular
I have a problem returning data back to the function I want it returned

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.