Drives in a system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • meghaDixit
    New Member
    • Aug 2008
    • 1

    Drives in a system

    How to determine that how many drives present in any system through PHP code?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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

    Working...