twistedr Posted February 11, 2009 Share Posted February 11, 2009 Hi! I am kinda new to php so here is my query: I am using imagick to create thumbnails. I have created a crude custum CMS for myself. I have placed the thumbnail creation script in the Staff subfolder. Now I wish to use the scandir function to scan another folder in the root directory. It's Like i have two subfolders in the root directory. i want a script in one subfolder to access the other subfolder in the root directory. How do i do that? I mean what path do i put in the scandir function?? kindly help here! Link to comment https://forums.phpfreaks.com/topic/144818-solved-accessing-the-root-directory/ Share on other sites More sharing options...
9three Posted February 11, 2009 Share Posted February 11, 2009 scandir function displays the content within a directory. I'm not sure what you are trying to accomplish. Are you searching for a certain file? Directory? What do you want to do if you do find those files? What do you want to do if those files dont exist? Link to comment https://forums.phpfreaks.com/topic/144818-solved-accessing-the-root-directory/#findComment-759942 Share on other sites More sharing options...
trq Posted February 11, 2009 Share Posted February 11, 2009 Your path might look something like... ../othersubdir Link to comment https://forums.phpfreaks.com/topic/144818-solved-accessing-the-root-directory/#findComment-759953 Share on other sites More sharing options...
twistedr Posted February 12, 2009 Author Share Posted February 12, 2009 Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/144818-solved-accessing-the-root-directory/#findComment-760717 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.