How do i put this code on my web site?
November 12, 2005 5:59 AM
Subscribe
Can anyone guide me in creating a page just like
this one?
What i'd like to do is exactly the same as that page. Have visitors add phrases to a pool, and have the java script display the phrases randomly on a specified page. My coding knowledge is limited, especially in php, so any tutorials or similar scripts would be helpful. I've already tried to contact the owner of the site for assistance, but they never replied.
posted by deadmouse to computers & internet (4 comments total)
If you're looking for a flat-file solution, see this documement about pulling random lines from a file.
This explains how to write to the flat file.
You will also want to learn file locking, so that two people don't try to write data to the file at once (which might corrupt the file).
posted by grumblebee at 7:02 AM on November 12, 2005