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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:36:13+00:00 2026-05-30T15:36:13+00:00

I think this may sound very straight forward, but still something is not working

  • 0

I think this may sound very straight forward, but still something is not working out. I am trying to create a folder with the name which is posted by the user and create a folder in the same directory. But I am not able to create one.

Here is my code:

$Name = $_POST['name'];     

$thisdir = getcwd(); 

$folderPath = $thisdir . '\\' . $Name;

mkdir($folderPath);

chmod($folderPath, 0777);

What can be the problem, where am I making mistake or is the problem lying with server settings. If so what should be done to change the PHP server settings

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-30T15:36:15+00:00Added an answer on May 30, 2026 at 3:36 pm

    I suggest the following:

    1. Check that you are getting data from $_POST using ‘name’ as the key.

    2. Use ‘/’ instead of ‘\’ in the file path

    3. Check you have permissions to create the directory in the current working directory (YOU may have, but does the webserver?)

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

Sidebar

Related Questions

I think this may sound pretty simple, but still I can not get it
I think this may be relatively straight forward. I have a rewrite rule that
This may sound simple but i am stuck up at a very strange problem.
This may not sound like a coherient question, but I need to find some
I am not a specialist in Regex and this question may sound very easy.
I think this could be a very easy question for you. But I have
ok not as simple as title may make it sound. I tried this in
I may sound a little childish but i am bit confused over a very
I know this may sounds silly but I would like to create function that
This question may sound weird, but it's needed for injecting code to a binary.

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.