Re: Get all available drives ?
| From: | Markus Fischer | Date: | Mon, 13 Aug 2001 12:45:51 +0000 |
| Subject: | Re: Get all available drives ? | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8806@lists.php.net to get a copy of this message | ||
Hmm .. I was more thinking about some interal function ...
what if I want to know what type of drive it is (fixed, cdrom, ram) ?
For now I've written my own get_logical_drives() and get_drive_type()
functions
but I was wondering if there's allready a way to get the desired information
from
the system (e.g. COM , but I didn't succeeded).
- Markus
"Lallous" <elias_bachaalany@yahoo.com> schrieb im Newsbeitrag
news:20010813113518.95718.qmail@pb1.pair.com...
> 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
> >
> >
>
>