"longconn")); //Connection to redis $redis = new Redis(); $redis->pconnect('127.0.0.1'); // port 6379 by default //$db = $connection->longwordsdb; //$words = $db->words; return $redis; } function vote_yes($longword) { $words=connect_redis(); $words->zincrby('wordset',1,$longword); $words->lpush('yesvotes',$longword); } function vote_no($longword) { $words=connect_redis(); $words->zincrby('wordset',-1,$longword); $words->lpush('novotes',$longword); } function show_now() { //return long word $words=connect_redis(); //$totalwords=$words->count(); $key = $words->randomKey(); //$result=$words->hKeys($key); //var_dump($result); $result=$words->hVals($key); //var_dump($result); return($result[0]); } function get_toprated() { $words=connect_redis(); //$toprated = $words->find()->sort(array("score" => -1))->limit(10); $toprated = $words->zrevRange('wordset',0,9,true); //var_dump($toprated); $keys=array_keys($toprated); //var_dump($keys); $table=""; $count=0; foreach($keys as $rowword) //while ($count<10) { //var_dump($word); //$row = $toprated->getNext(); //$rowword = ucfirst($row['word']); $table="$table"; //$count++; } $table="$table
Your Favourite Words
$rowword

"; return $table; } //starting SAJAX stuff $sajax_request_type = "POST"; sajax_init(); //sajax_export("show_now", "get_toprated"); sajax_export("show_now", "get_toprated", "vote_yes", "vote_no"); sajax_handle_client_request(); ?> longwords.org - The list of long words, big words, large words and just plain silly words Are you a logophile, are you verbose, or are you just an sesquipedalianist?
Whoever you are, welcome to longwords.org, the number one ajax enabled list of long words on the Internet - Over 17000 words included!
(loading....)
Custom Search
Vote for your favourite words, click the Like It button,
or if you don't like it, click the Hate It button
The page will keep refreshing while you do!

Maybe you just wanted a list of the longest words in the English language?

Tweet
Share

Buffer

A site by Ewan Leith
Ewan's blog
Follow me on Twitter
Cloud Storage Price Comparison

Your Favourite Words