|
Posted by ImOk on 06/10/06 21:20
Sorry I confused this. You are right it would be the SERVER i.e. the
computer PHP is actiually executing on. I would like to have PHP return
back to me the list of drives and shares to my browser.
Tim Roberts wrote:
> "ImOk" <j_macaroni@yahoo.com> wrote:
> >
> >milahu wrote:
> >> Do you want the client's or the server's drives? To get the latter one,
> >> you could use PHP's exec, otherwise you need a Java Applet.
> >
> >Only the client's. What would the command be to use exec() to get list
> >of drives?
>
> You can't do it. All of your PHP code, including the exec() function, runs
> on the SERVER.
>
> To enumerate the disk drives on a client computer, you have to send a
> program to the client. That means using a Java or ActiveX applet. The
> user will have to specifically override the security settings to allow that
> to happen.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|