Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: PHP: Calculating a Directory File Size

  1. #11
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    I thought thats what you meant, but seemed like an odd question

    Its 4kb.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  2. #12
    Join Date
    Sep 2005
    Posts
    190
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I believe maybe wrongly that "block" that way is called "Cluster".

  3. #13
    Join Date
    Dec 2005
    Posts
    193
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    there seem to be a variety of different names for it. In addition to the two on here, I have also heard 'sector' and 'allocation unit'
    Schofieldandwhite.com: RFH reseller

  4. #14
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Block, Allocation unit = physically addressable chunk of data on the disk as seen by the OS.
    Sector = physical disk sector.

    Sector != Block/Allocation unit although most IDE/SCSI interfaces abstract it out as that these days.

    This terminology is from when drives were CPU/DMA controlled rather than having their own brain and personality.

  5. #15
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 23 Times in 23 Posts

    Default

    Quote Originally Posted by cswd
    Block, Allocation unit = physically addressable chunk of data on the disk as seen by the OS.
    Sector = physical disk sector.

    Sector != Block/Allocation unit although most IDE/SCSI interfaces abstract it out as that these days.

    This terminology is from when drives were CPU/DMA controlled rather than having their own brain and personality.
    Well all I know is making the the data multiples of 4096 bytes seems to make it match the value my OS, and the refox file manager gives. So if I'm reading your reply correctly, I was probably right to call it a block was I? hehe

  6. #16
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yep!

  7. #17
    Join Date
    Dec 2005
    Posts
    193
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nick, I've just got around to testing your script, and it works perfectly. Thank-you, O great PHP master
    Schofieldandwhite.com: RFH reseller

  8. #18
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 23 Times in 23 Posts

    Default

    Quote Originally Posted by schofieldandwhite
    Nick, I've just got around to testing your script, and it works perfectly. Thank-you, O great PHP master
    cheers! no problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New Free Directory
    By fcmisc in forum For Sale, Sites and Services
    Replies: 0
    Last Post: 10th March 2006, 02:07 PM
  2. Popup size
    By CS New Media in forum HTML/CSS/JavaScript
    Replies: 1
    Last Post: 7th January 2006, 05:41 PM
  3. File / Directory access
    By Sol in forum ASP.NET
    Replies: 1
    Last Post: 4th November 2005, 02:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •