Stuck on where to go from here.

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
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Stuck on where to go from here.

Post by akimm »

I do not want the code written for me. I am simply new at really writing code homemade. In as much as modifying pre-existing scraps is really where my prior knowledge rests.

My purpose and goal is to take information from a form, send it to my page and write it on the page without using a mysql db, because, I don't have one available to me unfortunately.. I figure flatfiles will be sufficient. My exact purpose for this system is to allow users to add words they've made up to my dictionary. Another goal would be for me to take these words and file them alphabetically on their corresponding page.

My questions are.. do you know of any functions that sort alphabetically.

Would it be wise to place each letter and words that go with it in an array, or how do you think I would find my quickes tand easiest fix?

Any help that can be provided, I am infinitely grateful for!
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Stuck on where to go from here.

Post by Roja »

akimm wrote:My questions are.. do you know of any functions that sort alphabetically.
Yes, Sort does.
akimm wrote:Would it be wise to place each letter and words that go with it in an array, or how do you think I would find my quickes tand easiest fix?
Depends on how many words you anticipate. Keep in mind that some letters (RSTLNE) occur more often in the english language, and as a result, will be considerably larger than other letter files (QZ, etc).
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

ok.

Post by akimm »

Would I be better using a class file for my job.

And can I use flatfiles to store each array, or even more prevalent all the arrays, and then just output that information on the flatfiles for any one letter.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

by the way...

Post by akimm »

Thanks for the sort() I will keep that in mind when constructing my code.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

"Roja"

Post by akimm »

I will not expect a large amount of words, and besides I have confidence in arrays.

A random quote generator I made has over 200 quotes in an array and it seems to operate rather fast.
Post Reply