df -Ph . | awk 'NR==2 {print $5}' # kullanılan miktarın oranını verir
df -Ph . | awk 'NR==2 {print $2}' # toplam alanı verir
df -Ph . | awk 'NR==2 {print $3}' # kullanılan alanı verir
df -Ph . | awk 'NR==2 {print $4}' # boş alanı verir
bu işini görebilir o vakit
yanlız ssh2 ile kullanıcam bunu bunlar işimi görmüyor malesef yani en son şöyle bişey denedim
Alıntı
$hdd=ssh2_exec($connection,"df -h");
$error = ssh2_fetch_stream($hdd,"SSH2_STREAM_STDERR");
$dio = ssh2_fetch_stream($hdd,"SSH2_STREAM_STDDIO");
stream_set_blocking($error,true);
stream_set_blocking($dio,true);
$sonuchata = stream_get_contents($error);
$sonucdio = stream_get_contents($dio);
print_r($sonuchata)."<br>";
print_r($sonucdio); [/QUOTE]
En son böyle bişi denedim ekrana hiç birşey yazdırmadı bile. Uyuz oldum iyice

sorunu çözdüm konu kapatılabilir.