// Know your child better php template page
//
$num_quests = 16;
$sourcefile="info_quest.txt";
//
if (file_exists($sourcefile)) {
$readfrom = @fopen($sourcefile, "r") or die
("Could not open the data file to read, notify Admin");
$read_string = fread($readfrom, filesize($sourcefile));
$quest = explode("EOL", $read_string);
for ($i=0; $i<$num_quests; $i++) {
if ($quest[$i] == "") {
$quest[$i] = "not yet defined";
}
}
}
else {
$readfrom = @fopen($sourcefile, "w") or die
("Could not create the data file, notify Admin");
for ($i=0; $i<=$num_quests-1; $i++) {
$quest[$i] = "questions have not yet been defined";
}
}
fclose($readfrom);
?>