[PHP] size of directory

2001-02-22 Thread Andris Jancevskis
Hi, how can I determine size of directory with subdirectories? if I see at "ls -l" it returns directory size 4096. I want to know how large is directory (with files into) without looping all files ... thanx, -- Andris mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

[PHP] MIME type detection on file

2001-02-21 Thread Andris Jancevskis
Hi, is there suggestions how to determine what mime type is file? for example: .word -> application/wnd-word .pdf -> application/pdf Files are on local disk. Not accessible from web server. I'm interesting to determine it on linux (Apache) and win32(IIS 4.0) platforms. TIA, --

Re[2]: [PHP] MIME type detection on file

2001-02-21 Thread Andris Jancevskis
My files are outside web server. These files can not be accessible from http://, but anly user running web pages (nobody or IUSR_) have access. This limitation is to secure user files. My primary target is to deliver files to user using web browser. If I use require() or insert it is not poss

[PHP] directory listing and how to determine file size

2001-02-18 Thread Andris Jancevskis
Hi, I am going to develop virtual file management. Thus I want to know some things. 1. how to determine file size _before_ file uploading or on loading time and how to avoid error message if file size will be too large. 2. how to read directory content with it's size, modes etc in win32