By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,829 Members | 2,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,829 IT Pros & Developers. It's quick & easy.

Drives in a system

P: 1
How to determine that how many drives present in any system through PHP code?
Aug 22 '08 #1
Share this Question
Share on Google+
1 Reply


Atli
Expert 5K+
P: 5,058
Hi.

PHP can execute shell commands server-side, so whatever command will work in your OS can be executed by PHP and the results read. Like say the fdisk command on Linux or something like "FSUTIL fsinfo drives" on Windows.

If, however, you are planing to do that to your clients via a browser, then you can not.
PHP works server-side and does not directly interact with the client's computer.
The client-side scripts will not be able to do this either. No browser would every allow a script such access to a computer.
Aug 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.