dir and file functions [SOLVED]
Posted: Thu Apr 05, 2007 5:09 am
Morning all,
I've been building an Asset Management system for a while now, incorporating a MySQL database aswell as using dir functions in PHP, but now I feel like I shouldn't really be using MySQL for this since it's based more around the structure of the folders and files, and if I really needed database style storage for information I could probably get away with using XML instead.
So far, I'm confident in using making, renaming and delete directories, aswell as parsing folders for contents, creating links to files and deleting files/folder contents.
I'm just wondering if there's anything else you can do with files? Extracting the filesize, and other info such as like when it was created/last modified would be good too.
I've checked the PHP.net site, and there seems to be some stuff based around filesystem, but it doesn't really make sense.
If anyone could help, much appreciated.
Thanks in advance
I've been building an Asset Management system for a while now, incorporating a MySQL database aswell as using dir functions in PHP, but now I feel like I shouldn't really be using MySQL for this since it's based more around the structure of the folders and files, and if I really needed database style storage for information I could probably get away with using XML instead.
So far, I'm confident in using making, renaming and delete directories, aswell as parsing folders for contents, creating links to files and deleting files/folder contents.
I'm just wondering if there's anything else you can do with files? Extracting the filesize, and other info such as like when it was created/last modified would be good too.
I've checked the PHP.net site, and there seems to be some stuff based around filesystem, but it doesn't really make sense.
If anyone could help, much appreciated.
Thanks in advance