Christmas Poll

This card was sent to my office by the Geo Monkey Geo Company.
some employees on an american flag surfboard, with christmas decorations

(Poll removed indefinitely. I will maybe eventually get around to figuring out why it all of a sudden breaks everything.)

/*
error_reporting(0);
*/
/* load up dem poll results first! */
/*
$fp = fopen( “http://greengabbro.net/archives/cool_yule_poll.txt”, “r”);
flock( $fp, LOCK_SH );
while( $moo = fscanf( $fp, “%s %s\n”)) {
list($choice, $votes) = $moo;
$results[$moo[0]] = $moo[1];
}
flock( $fp, LOCK_UN );
fclose( $fp );
*/

/* did you just vote? if you did, you get to see the results */
/*
if( $REQUEST_METHOD == ‘POST’) {
*/
/* but not before parsing your vote and writing out the new scorefile*/
/*
$results[$vote] = $results[$vote] + 1;

$fp = fopen(“cool_yule_poll.txt”, “w”);
flock( $fp, LOCK_EX );
while( $key = current($results)) {
$slime = key($results);
$append = “$slime $key\n”;
fwrite($fp, “$append”);
next($results);
}
flock( $fp, LOCK_UN );
fclose( $fp );

echo “whimsical, memorable, cute: “;
if( $results[‘cute’] != 0 ){
echo $results[‘cute’]; }
else { echo “no”; }
echo ” votes
oh dear god: “;
if( $results[‘prayer’] != 0 ){
echo $results[‘prayer’]; }
else { echo “no”; }
echo ” votes
“;
}
*/
/* otherwise, print out the ballot */
/*
else{
echo “

whimsical, memorable,
cute
oh dear
god
value=”submit”/>

“;

}

*/ ?>
–>

I’m going to Iowa tomorrow, which won’t change my blogging habits or lack thereof one bit. Happy Yuletide to all y’alls, every ones.

—–

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*