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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:42:59+00:00 2026-05-28T00:42:59+00:00

I have a website where users can create new topics. Each topic has a

  • 0

I have a website where users can create new “topics.” Each topic has a folder (example: http://www.example.com/chemistry). I use mkdir() to create a new folder, but after it’s created how can i put files in the folder so that when someone goes to the chemistry folder there’s something to view? Since I haven’t found much information on how to do this im guessing there is a more popular way.

  • 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-28T00:43:00+00:00Added an answer on May 28, 2026 at 12:43 am

    is SO useing a CMS? becasue when i asked this question a “folder” appeared in the URL with my question ID.

    What appears in the URL here is a URL. Repeat after me: http://stackoverflow.com/questions/8774143/use-mdir-and-then-put-files-in-the-folder is a URL! It has a hostname, it has a path, it may have query parameters. It does not have “folders”!

    By default, in many web servers, a URL is mapped to a folder on the hard drive. But that’s just one way to do it. When visiting a URL, the web server just receives the request “give me whatever site there is at URL http://stackoverflow.com/questions/8774143/use-mdir-and-then-put-files-in-the-folder“. The web server may choose to answer this by looking into a folder whose name matches the URL. Or it may simply invoke a program, give it the URL and deliver back whatever response the program happens to spit out.

    Try to learn about “URL rewriting” and “pretty URLs” and look into existing frameworks, since pretty much all frameworks implement this.

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

Sidebar

Related Questions

I want to create a website with various users. The users can have different
In my Asp.net Website I create New users and what I have to do
I have a website where users can create lists and add items to these
I have a dedicated Linux web server where my website is running like www.example.com.
I have a website where users can upload their files; these are stored on
I have multiple themes on my website and users can just switch between multiple
I want my website to have a checkbox that users can click so that
We have some files on our website that users of our software can download.
Imagine that we have a website where users can read articles, view photos, watch
I want to create a website that offers users modules/widgets that can be dragged

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.