SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: how to count

  1. #1
    SitePoint Addict Ghz's Avatar
    Join Date
    Jun 2002
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to count

    Hello there,
    I have some questions which took me along time to search for but couldn't find the answer yet. my questions are:
    - How can I count a single file size (text, audio, ...etc)?
    - How can I count a folders size which contains some files in it?
    - How can I read a folder contents and bring the files and folders names within it?

    Any help would be highly appreciated in advance
    Regards,
    Ghz

  2. #2
    Tranceoholic lilleman's Avatar
    Join Date
    Feb 2004
    Location
    Írebro, Sweden
    Posts
    2,716
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Quote Originally Posted by Ghz
    - How can I count a single file size (text, audio, ...etc)?
    Take a look at the filesize function.

    Quote Originally Posted by Ghz
    - How can I count a folders size which contains some files in it?
    I wrote a function for this about a week ago. You can find it here.

    Quote Originally Posted by Ghz
    - How can I read a folder contents and bring the files and folders names within it?
    I have written a function that does that too, and you can find it here. It will return an array with the folders and files sorted in alphabetical order (with folders first).

    Yours, Erik.
    ERIK RIKLUND :: Yes, I've been gone quite a while.

  3. #3
    SitePoint Addict Ghz's Avatar
    Join Date
    Jun 2002
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Erik so much your functions came in handy


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
  •