Not sure I'm clear what you want. Is it for example:-

Table: FileStore
FileID  FileName        FileType        FilePath
1               file1           .doc
\\nas1\domains\mydomain.co.uk\user\word
2               file2           .txt
\\nas1\domains\mydomain.co.uk\user\text
3               file3           .pdf
\\nas1\domains\mydomain.co.uk\user\pdfs

Or more like:-

Table: FilePaths
PathID  PreLevel Path
1               0               \\nas1\domains\mydomain.co.uk\user
2               1               \word
3               1               \text
4               1               \pdfs

Table: FileStore

FileID  FileName        FileType        PathID
1               file1           .doc            2
2               file2           .txt            3
3               file3           .pdf            4

In either case you can get the details you need to build the data using
pathinfo() if you already have the file path and name. If you wanted to
start by indexing an unknown tree then you would need to use something
like opendir() There are a number of code offering for this at
http://uk2.php.net/opendir.

Charlie
 

-----Original Message-----
From: php_mysql@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian E Boothe
Sent: 28 May 2008 05:45
To: php_mysql@yahoogroups.com
Subject: [php_mysql] recursive Folder to MySQL

hi all
  i need to store the Entire directory Structure and sub-folders in a
MySQL Database: not the actual files themselves, just the folder and
filenames and extensions of the Files, 
    does anyone have Links to do such a thing >?     thanks

Reply via email to