Local Weather



PHP test

Does PHP work?

Yes, it does. PHP Version ” . phpversion() .”

“;
echo “

To run the WXGRAPHIC script, you need GD enabled in PHP.\n”;
echo “
Current GD status:

\n”;
echo describeGDdyn();

// Retrieve information about the currently installed GD library
// script by phpnet at furp dot com (08-Dec-2004 06:59)
// from the PHP usernotes about gd_info
function describeGDdyn() {
echo “\n

  • GD support: “;
    if(function_exists(“gd_info”)){
    echo “yes“;
    $info = gd_info();
    $keys = array_keys($info);
    for($i=0; $i

    \n

  • ” . $keys[$i] .”: ” . yesNo($info[$keys[$i]]);
    else echo “
  • \n

  • ” . $keys[$i] .”: ” . $info[$keys[$i]];
    }
    } else { echo “NO“; }
    echo “

“;
}
function yesNo($bool){
if($bool) return “ yes“;
else return “ no“;
}
?>

If you don’t see “Yes, it does.” in large font above, then PHP is not enabled.