Page 1 of 1

read a directory based on user prefrence

Posted: Sat Sep 20, 2003 4:41 pm
by terence
My challenge is that I have a directory of 15 folders. Each of the 15 folders contains image files and text files of fruit baskets (real exciting).

I will organize the directory by catagory folders (seasonal, wedding, birthday, funeral...)

The user will have the ability to view fruit baskets by catagory, or they will have the opportunity to view fruit baskets by price.

I am hopping that I can create a single interface that can be dynamically populated based on the users prefrence.

So I need to write a script that will figure out how many potential baskets there are in a specific folder catagory and display the results with html (text and images)

There is also the need to pull baskets from all 15 folder catagories based on price.

How I keep things elegant in code I'm not sure (thus the reason for outside help-and posting).

My goal is to have 1 interface that is populated by one script based on the users prefrence.

I would appreciate any help..

Thank you,
Terence

Posted: Sat Sep 20, 2003 6:46 pm
by AVATAr
so..... did you try something???

Posted: Sat Sep 20, 2003 8:56 pm
by rationalpi
have you thought of storing this data in a data base.. and have a col called type, where you choose the one you are looking for. You can also keep the pictures in the data base as blobs, or just have a link picture that is on the drive.. [/img]

Thanks Sergei-

Posted: Sat Sep 20, 2003 9:03 pm
by terence
Thanks Sergei-
I actually did think of using this project as a means to learm MySQL-
though I'm a bit apprensive still since I do not have all the time I need to focus on something new- hence the reason I'm working on Sat. night.
I'm planning on it in the future though-
Terence-

I have figured a few things out so far.
Still working thouogh--

Posted: Sun Sep 21, 2003 8:40 am
by rationalpi
Well best of luck to you if you ever need any help with it.. i am uasaly avalible on aim.. sn = therealserge

Posted: Sun Sep 21, 2003 8:47 am
by Nay
Read a custom directory? Maybe you can use like:

http://yoursite.com/thefile.php?read=thisdir

Then use:

Code: Select all

opendir($_GET['read']);
Hope that helps.

-Nay