OH CRAP! SOMETHING HAPPENED! NONE OF THE SCOREBOARDS ARE WORKING!!!!!!!!! I checked all the fla’s and nothing was wrong, so I checked the php coding and it said there was an error!

I CAN’T SEEM TO FRICKEN FIX IT! Was there some sort of php change I wasn’t told about? Or a server change? Or a jangachange? JANGA!!!!!!!!!!!! It’s all tumbling down. I’ll post the code, and if anyone knows what the heck is wrong, please tell me! The php code will be done as a reply… (;°o°)<(boo hoo)

Also, so you know, there are a gaggle of Frosty Minis now! Be sure to check them every couple days for updates!

4 Responses to “WAAAAAAAAAAAAAAAAAAA!”

  1. Red Penguin Says:

    < ?php

    $winscore = (int)$winscore;

    // Create a Blank File if it doesn't already exist
    if (!file_exists($filename))
    {
    $file=fopen($filename, "w");
    fclose ($file);
    }

    // Read the file in
    $oscores = file ($filename);
    $numreadin = count($oscores);

    // Break out the data into a new 2-d array called $tscores
    for ($i = 0; $i < $numreadin; $i++)
    {
    $g = unserialize($oscores[$i]);
    $tscores[$i][0] = $g[0];
    $tscores[$i][1] = $g[1];
    }

    // Fill in any missing data with none/0
    for ($i = $numreadin; $i < $scoresize; $i++)
    {
    $tscores[$i][0] = 0;
    $tscores[$i][1] = "";
    }

    // Process the actions

    // Insert a score/name
    if ($action == "INSERT")
    {

    // Add name to end of list, and sort
    $tscores[$scoresize + 1][0] = $winscore;
    $tscores[$scoresize + 1][1] = $winname;
    rsort ($tscores);

    $file=fopen($filename, "w");

    // Write them out
    for ($i = 0; $i < $scoresize; $i++)
    {
    $st = serialize($tscores[$i]) . "\n";
    fputs($file, $st);
    }

    fclose($file);
    }

    // Clear the list
    if ($action == "CLEAR")
    {

    $k[0] = 0;
    $k[1] = "no-one";
    $ser = serialize($k);

    $file=fopen($filename, "w");

    for ($i = 0; $i < $scoresize; $i++)
    {
    $st = $ser . "\n";
    fputs($file, $st);
    }

    fclose($file);
    }

    // Process the OUTPUT options
    if ($viewtype == "HTML")
    {
    // HTML PAGE CREATED HERE ( °O°)
    ?>

    < ?

    for ($i = 0; $i < $scoresize; $i++)
    {
    echo ("

    “);
    }

    ?>

    Rank Name Score
    “);
    echo ($i + 1);
    echo (”
    “);
    echo ($tscores[$i][1]);
    echo (”
    “);
    echo ($tscores[$i][0]);
    echo (”

    < ?

    }

    // FLASH DATA INCERTED HERE HERE XDD!
    if ($viewtype == "FLASH")
    {
    for ($i = 0; $i < $scoresize; $i++)
    {
    echo ("NAME" . $i . "=");
    echo ($tscores[$i][1]);
    echo ("&SCORE" . $i . "=");
    echo ($tscores[$i][0]);
    echo ("&");
    }
    }

    ?>

    //////it says the error is on line 9 and that it is having to do with the fclose ($file) funstion.

  2. jesterball Says:

    It’s “Jenga,” nab.

  3. Red Penguin Says:

    JANGA!!!!!

  4. Purple Penguin Says:

    Your face is rife with spelling errors.

Leave a Reply