Reading files on client machine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Reading files on client machine

Post by daven »

Is it possible to have PHP generate a list of files on the client machine, similar to what readdir() can do for the server?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

unless php-ActiveScript is installed (and chances are remote ;) ) php can do nothing client-side.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

PHP is server side, you would need a client side application/applet.

Regards,
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

jinx ;)
PastAustin
Forum Newbie
Posts: 15
Joined: Wed Jun 11, 2003 11:38 am
Location: Littleton, Colorado
Contact:

Re: Reading files on client machine

Post by PastAustin »

daven wrote:Is it possible to have PHP generate a list of files on the client machine, similar to what readdir() can do for the server?
:) Go for Java. Applets are good for those kind of things.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

for accessing the client's filesystem certain permissions must be granted.
If you're going to write an applet for that search for signed applets and manifest, so the browser will ask the user wether he/she/it allows the applet access to the filesystem.
if you're working on a win32-system, did you try e.g. [url=file:///C:/]file:///C:/[/url]?
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

Right. *smacks self in head*

Sorry about the stupid question. I have been at work for way too many hours and my brain is not working.
Post Reply