Jump to content

Upload outside website root folder


kieran82

Recommended Posts

Since http file uploads go to a temporary folder on your server, your php script that is 'receiving' it for you can simply use the proper function to move the file from the temp to the final folder of your choice. Assuming that you have truly done an upload using a webpage then the simple answer is to use the function move_uploaded_file() (look it up in the manual).

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.