i need help with disk_total_space function..
i have this on my code
<?php $sql='select * from users order by id'; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> Name : <?php echo $row['name']; ?> Email : <?php echo $row['email']; ?> Diskspace Available : <?php $dir = 'C:/xampp/htdocs/freehosting/'.$row['name']; disk_total_space($dir); } ?>
However this return me same disk space for every users ..
Anyone can shed me some light?
thanks 🙂
I think what you want is something like this:
edit: the recursive function had a bug in it originally. Now it should also read folders inside the original folders, and folders inside those folders, and so on.