JipThePeople Posted May 19, 2015 Share Posted May 19, 2015 I am running php 5.4, IIS 7.5 on WinServer 2008 R2 box. I want to retrieve all subfolder names in a directory using PHP. I can successfully perform this task IF the target folder exists on the same drive as the php code, which is on c:\. However, I need to retrieve subfolder names from the e:\ drive on the same server. I have the permissions properly set for IUSR and IIS_IUSRS (read & exe, modify) for the target and parent folders but of course I don't have those permissions all the way to the root of e:\ drive. Using scandir(), I get "Access is denied. (code: 5)" but I have tried glob() and RecursiveDirectoryIterator to no avail. I have not been able to find a solution or an example so perhaps it is not possible. Any recommendations are greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/296398-php-code-running-on-c-drive-list-subfolders-on-e-drive-permissions-issue/ Share on other sites More sharing options...
Muddy_Funster Posted May 21, 2015 Share Posted May 21, 2015 ...but of course I don't have those permissions all the way to the root of e:\ drive. erm...why not? If you need access the root of the drive, you need permissions set to, well, allow that. Quote Link to comment https://forums.phpfreaks.com/topic/296398-php-code-running-on-c-drive-list-subfolders-on-e-drive-permissions-issue/#findComment-1512372 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.