PHP = server-side
A user's directory = client-side
The two shall never meet.
What I mean to say is you can't run scripts on a user's hard drive. Sure, maybe there's some far-out way of using VBScript, ActiveX, or some CLIENT-SIDE coding language like those to retrieve a directory listing and POST it to your PHP script, but other than that (as far as I can think of) you're not going to get info about a user's hard drive.