Google

Finding size of a directory using php

Google

Finding size of a directory using php

You may also like...

1 Response

  1. Jon Gibbins says:

    As long as you change all the ” marks to the correct ascii character, this works a treat on both harddisk directories and on the web.

    To view a web directory, change
    $totalsize = show_dir(“c:/Program Files/xampp/htdocs/Ajax Test/”);
    to:
    $totalsize = show_dir(“http://website.com/directory/”);

    To view the local directory where the script is being run, change it to:
    $totalsize = show_dir(“./”);

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Leave a Reply to Jon Gibbins Cancel reply

Your email address will not be published. Required fields are marked *