Re: disktotalspace()
| From: | Jon Parise | Date: | Tue, 15 May 2001 22:35:37 +0000 |
| Subject: | Re: disktotalspace() | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-55392@lists.php.net to get a copy of this message | ||
On Tue, May 15, 2001 at 10:43:25PM +0300, Zeev Suraski wrote:
> >Does anyone object to my adding a new function disktotalspace()?
> >
> >A friend of mine ran into a situation where he required an
> >OS-independent means of determining the amount of free space on a
> >filesystem (meaning executing and parsing 'df -k' wasn't going to
> >cut it).
>
> I'm pretty sure we're already incompatible with Windows 95, so I'm not sure
> we should go through those hoops - we can just call the function directly...
Yes, but this new version will work correctly under Unix-like
systems and Windows NT / 2000 systems. Executing system binaries
is sloppy for things like this, anyway.
Or perhaps I'm missing your point?
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member