Re: Get all available drives ?
| From: | lallous | Date: | Mon, 13 Aug 2001 12:32:33 +0000 |
| Subject: | Re: Get all available drives ? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8804@lists.php.net to get a copy of this message | ||
You can do something like this untested code:
$drives = "";
for ($i=0;$i<25;$i++)
{
$drives .= chdir(Chr($i + 65) . ":\") ? Chr($i + 65) : "";
}
echo "the drives are: $drives";
"Markus Fischer" <mfischer@php.net> wrote in message
news:20010813084137.80708.qmail@pb1.pair.com...
> Hi,
>
> can someone tell me where to start looking for a method to get a list of
> available drives in a system ?
>
> Something like
>
> array get_available_drives();
>
> ..
>
> ty,
> Markus
>
>