read a directory based on user prefrence

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
terence
Forum Newbie
Posts: 21
Joined: Fri Jun 06, 2003 11:31 pm
Location: new york city

read a directory based on user prefrence

Post 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
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

so..... did you try something???
rationalpi
Forum Newbie
Posts: 2
Joined: Sat Sep 20, 2003 8:56 pm
Location: http://rationalpi.net

Post 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]
terence
Forum Newbie
Posts: 21
Joined: Fri Jun 06, 2003 11:31 pm
Location: new york city

Thanks Sergei-

Post 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--
rationalpi
Forum Newbie
Posts: 2
Joined: Sat Sep 20, 2003 8:56 pm
Location: http://rationalpi.net

Post by rationalpi »

Well best of luck to you if you ever need any help with it.. i am uasaly avalible on aim.. sn = therealserge
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
Post Reply