How can i access the local directory resource

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
johnsonzhang
Forum Newbie
Posts: 3
Joined: Sun Apr 06, 2003 5:33 am
Contact:

How can i access the local directory resource

Post by johnsonzhang »

Here is the question:
i'm going to build a software of httpupload using PHP. so the request
is to open and list the directroy files in the client's local host. when i specify the directory name like 'C:/' ,it refers to the pathname of the server host. what can i do ? :roll:
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

you cannot get the dir list from the client computer unless the webserver was running on that machine. Think about the security implications of such a thing being implemented in browsers...
Post Reply