How to determine that how many drives present in any system through PHP code?
Drives in a system
Collapse
X
-
Tags: None
-
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.
Comment