Date: 05/15/01
- Next message: Zeev Suraski: "Re: [PHP-DEV] disktotalspace()"
- Previous message: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- In reply to: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Next in thread: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Reply: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 01:35 16/5/2001, Jon Parise wrote:
>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?
I think you were missing the point :) I meant that I think there's no
need to load kernel32.dll and all that, we can simply call
GetDiskFreeSpaceEx() directly.
BTW, in light of the standard naming convention initiative,
disktotalspace() is probably a bad name and should be more like
disk_total_space()...
Zeev
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "Re: [PHP-DEV] disktotalspace()"
- Previous message: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- In reply to: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Next in thread: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Reply: Jon Parise: "Re: [PHP-DEV] disktotalspace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

