I was able to get the drive in which my code file is placed.
Ex:
If my code file is placed in this path :- E:/Apps/thisapp/codefile.php, then I was able to access the E: drive and list its contents by using the function - opendir().
Code: Select all
opendir('/');But I need to go one more level up and list all the drives in my Windows PC.