Jump to content

Simple directory questions


SocomNegotiator

Recommended Posts

I am trying to upload a file to a certain folder in my directory. However, the folder I want is not in the same folder as the file. This is what I have...Do I have the correct path?

 

 move_uploaded_file($_FILES["file"]["tmp_name"],
      "../files/hotsheet/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "../files/hotsheet/" . $_FILES["file"]["name"];

 

Here is an example of my folder setup

 

    /html/

            /files/

                /hotsheet/

            /sources/

                file.php

Link to comment
https://forums.phpfreaks.com/topic/190617-simple-directory-questions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.