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

  • Home
  • SEARCH
  • 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 7523735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:53:22+00:00 2026-05-30T02:53:22+00:00

I have a cms I made for school a while ago that I am

  • 0

I have a cms I made for school a while ago that I am finally uploading live. While I had it on my local machine, I simply had the path to my image folder hardcoded as

$path = C:\path\to\my\uploads

Of course now that it is on a server, this will no longer work. I can’t for the life of me remember the syntax of how to get it INTO the upload folder.

My images are simply landing with all of my other html and php files on the server instead of in my uploads folder. Then my image gallery is broken, because it looks for my thumbnails in my uploads folder.

I tried

$path = ..//uploads

and

$path = uploads

and

$path = //uploads

and none work.

I am feeling really stupid now.

Please help!

  • 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-30T02:53:24+00:00Added an answer on May 30, 2026 at 2:53 am

    Since the uploads directory is at the same level as the rest of the code, it’s easiest to simply do:

    $path = "./uploads";
    

    Windows will also accept

    $path = ".\\uploads";
    

    The ./ at the beginning isn’t even really necessary if you’re calling it from the directory in which it resides:

    $path = "uploads";
    

    But the first version ./uploads is most portable and explicit.

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

Sidebar

Related Questions

I have made few projects (CMS and EC system) that required to have some
For school, I have made a CMS in django for my major assessment task
I have a set of files for a custom-made CMS, and now that the
I have made a custom CMS and I'd like to make it multi-client while
Here's what I have: Custom-made C# CMS where the content is stored in a
I'm maintaining a CMS where I have this feeling it was made in the
I have a CMS that uses a syntax based on HTML comments to let
At my current job we have a CMS system that is .NET/SQL Server based.
This is a bit of a specific request unfortunately. I have a CMS that
i'd like to add a media library to a custom-made CMS that is build

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.