Re: Getting free space of remote directory
| From: | François Moreau | Date: | Fri, 10 Sep 2004 13:01:25 +0000 |
| Subject: | Re: Getting free space of remote directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196297@lists.php.net to get a copy of this message | ||
Hi Benkovich,
Le 04-09-10, à 07:23, Benkovich Mishail a écrit :
I have some paths, for example: \\192.168.0.254\C\Windows\SomeDir\ or ftp://myhost.com/folder/ (login and password I also know) How I can check writable this dirs or no? - I can try to write temporary file or use touch() funktion.You may check for writable on directories in an even simpler way using is_writeable() : http://www.php.net/manual/en/function.is-writable.php
But how I can get free space of this remote catalogue?disk_free_space() : http://www.php.net/manual/en/function.disk-free-space.php Hope this does the trick!
__________________________________________________________________ Misha ICQ#: 338012800 Current ICQ status: ( Home Tel#: 990161 + More ways to contact me __________________________________________________________________ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php