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

The Archive Base Latest Questions

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

Lets say I let people upload files on the server. Should I change the

  • 0
  1. Lets say I let people upload files on the server. Should I change the file name s
    after the upload ? if yes, how can I tell the about the file names later on , beacause in CMS I need tpo provide them with the url to images or doc files etc so they refer to them while producing text for the website.

  2. I coded a program with which my users can navigate through some files and folders
    they can create folders and upload files of any extension inside the mentioned folders
    . Unfortinately my code creates all files and foldes with 777 permission. I wanna know
    What would happen if someone uploads a .php file inside a folder and runs it. Can he/she
    Delete every possible thing ? May you help me with right permission I should give to those files
    and folders. The uploader should know about the url where he/she has uploaded
    the image so while creating some content he can refer to them as url for images or
    office word documents. Please help me with security hole.

Thank you.

  • 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-30T13:13:25+00:00Added an answer on May 30, 2026 at 1:13 pm
    1. I suggest you create some database table as a reference to those file so that you can record the old name, and changing the name in file system to different one so that you will never overwrite an existing file with same name.Or you can even same file in DB instead of file system.
    2. First thing is you should not allow user upload any executable files to your server, or at least you need to change the extension name to something else I think. And I don’t think 777 is needed, you just need to make sure the folder r/w to the php/web server processor and that’s should be enough for any user access them
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a form where users can search for people whose name
Let's say I have two models, Classes and People. A Class might have one
To simplify the scenario, let's say we have a list of People with FirstName
let me explain my current situation i have a SharePoint site lets say it
Let's say R is a mxn random matrix. How can generate R with each
Let's say I have a database filled with people with the following data elements:
Let's say you had a web app where people could submit links, links for
i have to create a list of ,let's say 50 people, (in Java) and
Let's say you have a website that lets you build an account with up
Let's say i have people who search for jobs, and i have a list

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.