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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:11:56+00:00 2026-06-07T12:11:56+00:00

My php script allows users to upload images and stores them in a directory

  • 0

My php script allows users to upload images and stores them in a directory in the same server. Is there a security or performance advantage when transferring user uploaded files to a remote server on a different FTP account?

I imagine that it’s more secure to store uploaded files on a server that isn’t in the same directory with my php scripts and connected to my database. What are your thoughts? Advice on how to properly use a remote server is welcomed.

Note: I plan to use Codeigniter’s FTP Class to handle all transfers and I’m saving image URLs to the remote directory in mysql.

  • 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-07T12:11:58+00:00Added an answer on June 7, 2026 at 12:11 pm

    It is no more secure than storing them on the same server as users can execute your PHP scripts as long as they know their locations. They can find a PHP script’s location very easily without know it already (and without seeing images in the same directory).

    You will see a decrease in performance (possibly very noticeably depending on how often you access emails) and won’t see an increase in security.

    If you don’t want users to be able to execute your PHP files, you can change the read/execute capabilities of users in specified directorys (you could just put your PHP files outside of the folder with the photos if you want the users to have access to the images without having access to the PHP files)

    If you are worried about users uploading files you don’t want them to upload, you can limit the types of files they can upload by either saying “these file types are not allowed” or saying “only these file types are allowed” and checking with PHP when the file is uploaded.

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

Sidebar

Related Questions

I have a php script that allows users to upload multiple files to server
I already wrote a PHP script that allows users to upload images but I
I am writing a PHP script to upload and re-size 4 images. I have
I am working on a PHP script that allows users to vote on certain
I have a script that allows only authorised users to upload files to a
My friend and I are building website that allows users to upload images. We
I am working on a PHP-based project management system that allows users to upload
I want a PHP script which allows you to ping an IP address and
PHP script to read in user action requests and parse them to their components.
I'm building a forum that will allow users to upload images. Images will be

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.