SAAS Problem of the Week Quiz Decoder

The times they are a-changin’.

This post seems to be older than 16 years—a long time on the internet. It might be outdated.

Script that figures out the answers to SAAS POTW Quiz’s. As a note, this is only the processing end. In order for the script to work, you will need to build a front end.

error_reporting  (E_ERROR | E_WARNING | E_PARSE);
$httpfile = $_POST['httpfile'];
$userfile = $_POST['userfile'];
if($httpfile != NULL){
$textarea = file_get_contents($httpfile);
$textarea = file_get_contents($_FILES['userfile']['tmp_name']);
    echo "1. ";
    $t = 2;
    $length = strlen($textarea);
    for($i = 0; $i < $length; $i++){
        if(($textarea[$i-1].$textarea[$i]) == "l["){
            while($textarea[$i+1].$textarea[$i+2] != ",#"){
                echo $textarea[$i];
            if($t > 10){
            echo "$t. ";

Note: This was code that I originally had in a ‘Code’ page, but I’m moving it to a post now. This code is probably really old (years and years old). I enjoy laughing at myself and so should you.