loquela Posted October 23, 2008 Share Posted October 23, 2008 This follows on from my recent post that was quickly resolved by Aaron: http://www.phpfreaks.com/forums/index.php/topic,222505.0.html Cheers Aaron. If you are around I have a follow up that I should have anticipated... I now need to know how I can get my script to upload files to my secure folder outside document root....? Many thanks in advance. Link to comment https://forums.phpfreaks.com/topic/129832-solved-uploading-files-to-directory-outside-doc-root/ Share on other sites More sharing options...
DarkWater Posted October 23, 2008 Share Posted October 23, 2008 Well, firstly, do you know how to upload files? Link to comment https://forums.phpfreaks.com/topic/129832-solved-uploading-files-to-directory-outside-doc-root/#findComment-673066 Share on other sites More sharing options...
discomatt Posted October 23, 2008 Share Posted October 23, 2008 Simply set the permissions on the folder to PHP has access to it, and use absolute paths when copy()ing or move_uploaded_file()ing. Link to comment https://forums.phpfreaks.com/topic/129832-solved-uploading-files-to-directory-outside-doc-root/#findComment-673070 Share on other sites More sharing options...
loquela Posted October 23, 2008 Author Share Posted October 23, 2008 Thanks discomatt, I thought there might be more to it than that. Sorted. Link to comment https://forums.phpfreaks.com/topic/129832-solved-uploading-files-to-directory-outside-doc-root/#findComment-673246 Share on other sites More sharing options...
Cardale Posted August 10, 2009 Share Posted August 10, 2009 Actually it still isn't possible. Your better off executing a command with the exec command. Link to comment https://forums.phpfreaks.com/topic/129832-solved-uploading-files-to-directory-outside-doc-root/#findComment-895176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.