Hi, I'm not even entirely sure if this can be done, it's the place to ask just incase though, i'm currently creating a downloads system for a hobby website I have setup (A public domain gaming site) - I have created a script that simply reads the folder and displays the downloads in an a-z listing, however.
I have all the folders in the following format
/GAMES/SYSTEM/files
I.E
/GAMES/Super Nintendo/Pinball_PD.zip
What I was hoping to do was have a php script that I could run to create a database of all files listed in each directory.
I.E read the entire games folder, inserting all the roms under category/file name and link
SO if it was reading the Super Nintendo game file Pinball_PD.zip it would insert it into the database in the following format
MySQL Table:
ID=1
SYSCATEGORY=Super Nintendo
Filename=Pinball PD
Filelink =/GAMES/Super Nintendo/Pinball_PD.zip
which I could then read from the database and output to the website?
Sorry if this appears like a long winded description, it's effectively a script that will read a directory and add it's contents to a database.
Hope you can help!
Regards.
Andy.