saving poetry

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

d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

saving poetry

Post by d3ad1ysp0rk »

alright, i decided to be nice and make a site for my friends (plural) poetry.

i want to make it so they can log in, then submit the poem name and actual poem (in two input fields), and then it will save them both

at first i thought to use a db, but im not sure whether a variable could fit a whole poem in it..

then i thought of saving it to a file (fopen, fwrite, etc..), but i know theres probably a better way, cuz if they all contribute 10, thats 40 text files.. and a waste of space :P

so im just wondering whether a mysql variable can hold a whole poem, and if not, how you would go about saving and displaying them..
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

just use a TEXT field :D.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

thanks

TEXT fields = unlimited characters?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

nope, i think its up to 10,000 or so characters, more then what you need.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Trying to insert
Mysql poetry
A brainwave: haiku!
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

8O :?

is this a joke? cos i didnt get it :lol:
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

Not exactly, but big enough that you can fit a very, very, very long poem in one.... lol.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Seeker of wisdom
Check out the ancient masters
mysql.com
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

hehe....do you know that someone actually suggested to me that I talk in nothing but code?? Sorry... i just had to say that. It would definately be a challenge. LOL!!

Jade
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

*cough*go eat ASP*cough*
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

McGruff wrote:Trying to insert
Mysql poetry
A brainwave: haiku!
can you explain?

does that mean its a bad idea?

speak english ;) lol
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

He is speaking english!!! He's just making fun of you...lol.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I have to admit
Haiku is a lazy hack
Better to use a text field.
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

so...you couldt tell us that in the first post?...wait till i find yelling shoes..ur gona get it today McGruff:P...

what the hell is a Haiku?..sounds like japs cartoons or soemthing lol, i'll checkout on mysql.com? :/
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

ohhh...so its a style of..poetry 8O ..well, atleast i was right about being it jap :P
argry japanese beaver wrote:Haiku is one of the most important form of traditional japanese poetry. Haiku is, today, a 17-syllable verse form consisting of three metrical units of 5, 7, and 5 syllables. Since early days, there has been confusion between the three related terms Haiku, Hokku and Haikai. The term hokku literally means "starting verse", and was the first starting link of a much longer chain of verses known as haika. Because the hokku set the tone for the rest of the poetic chain, it enjoyed a privileged position in haikai poetry, and it was not uncommon for a poet to compose a hokku by itself without following up with the rest of the chain.
Largely through the efforts of Masaoka Shiki, this independence was formally established in the 1890s through the creation of the term haiku. This new form of poetry was to be written, read and understood as an independent poem, complete in itself, rather than part of a longer chain.
Strictly speaking, then, the history of haiku begins only in the last years of the 19th century. The famous verses of such Edo-period (1600-1868) masters as Basho, Yosa Buson, and Kobayashi Issa are properly referred to as hokku and must be placed in the perspective of the history of haikai even though they are now generally read as independent haiku. In HAIKU for PEOPLE, both terms will be treated equally! The distinction between hokku and haiku can be handled
by using the terms Classical Haiku and Modern Haiku.
i hate poetry :roll:
Post Reply