Re: Hi,
| From: | Ashley Sheridan | Date: | Sat, 22 Nov 2008 18:17:28 +0000 |
| Subject: | Re: Hi, | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283681@lists.php.net to get a copy of this message | ||
On Sat, 2008-11-22 at 08:30 -0800, idan72 wrote:
> I would like to write code where the user will input directory name.
> I want it to be able to browse to directory and choose it.
>
> With HTML if can only choose file.
>
> Can I do that in PHP ?
>
> Thanks
>
> --
> View this message in context:
> http://www.nabble.com/Hi%2C-tp20637953p20637953.html
> Sent from the PHP - General mailing list archive at Nabble.com.
>
>
Yes, look at the PHP file functions, like readdir(), etc. Also, make
sure you consider the possible security problems with this approach.
Potentially, you could have people enter URLs like ../../ to access
directories two levels down, which is real bad.
Ash
www.ashleysheridan.co.uk