crazygol4 Posted September 7, 2007 Share Posted September 7, 2007 Super newb question I know....but I created a script to upload pics and I need it to save up a couple of directories rather than the one it's in. Example: Scripts location: www/PHPScripts/secured/show_addpic.php Pic upload destination: www/images/rustic/ So what do I type in before '/images/' to make it go back a directory first? Thanks in advance for any help. -Mark Quote Link to comment https://forums.phpfreaks.com/topic/68410-solved-up-one-directory/ Share on other sites More sharing options...
BlueSkyIS Posted September 7, 2007 Share Posted September 7, 2007 for uploads, specify the exact location. if you want the image to go to www/images/rustic/, use www/images/rustic/. Quote Link to comment https://forums.phpfreaks.com/topic/68410-solved-up-one-directory/#findComment-343922 Share on other sites More sharing options...
effigy Posted September 7, 2007 Share Posted September 7, 2007 FYI: The current directory is "." and the parent directory is "..". Quote Link to comment https://forums.phpfreaks.com/topic/68410-solved-up-one-directory/#findComment-343926 Share on other sites More sharing options...
lemmin Posted September 7, 2007 Share Posted September 7, 2007 You should be able to use ../../images/ for a relative location. Quote Link to comment https://forums.phpfreaks.com/topic/68410-solved-up-one-directory/#findComment-343927 Share on other sites More sharing options...
crazygol4 Posted September 7, 2007 Author Share Posted September 7, 2007 Hey thanks for all the replies.... yeah I was using ./images/ trying to get to my parent. Thanks for the tip! -Mark Quote Link to comment https://forums.phpfreaks.com/topic/68410-solved-up-one-directory/#findComment-343931 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.