valentin Posted July 14, 2006 Share Posted July 14, 2006 How can I tell how many drives a computer has and their names (for example my computer has 8 drives a: c: d: ... i:)?I thank you for your pacience! Quote Link to comment https://forums.phpfreaks.com/topic/14603-how-do-i/ Share on other sites More sharing options...
jvrothjr Posted July 14, 2006 Share Posted July 14, 2006 First a few question for you.1) local drive letters????? or are some of them network drives?2) do you want the server side drive letters or the client side drive letters?3) if network drive letters what and how are you running for your http server software?????Sry you asked a loaded quesstion...Becausesay if some of them are network drive letters and your runnig say Apache as a service Apache does not have the ability to use the network drive letters. because the service is loaded before the network there for Apache cant see them....... Quote Link to comment https://forums.phpfreaks.com/topic/14603-how-do-i/#findComment-58068 Share on other sites More sharing options...
zq29 Posted July 14, 2006 Share Posted July 14, 2006 I'm assuming you're using Windows, here is an option...[code]<?php$drives = shell_exec("fsutil fsinfo drives");?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14603-how-do-i/#findComment-58079 Share on other sites More sharing options...
valentin Posted July 14, 2006 Author Share Posted July 14, 2006 Thank you both for your answers! SemiApocalyptic your code works, it returns my drives, so I once again thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/14603-how-do-i/#findComment-58191 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.