My Thoughts and Know-how |
Displaying entries tagged with '$_GET[tag]'. Show all | TAGS; } $contents = parse_ini_file('entries.ini', true); foreach ($contents as $header => $data) { if(isset($_GET['tag']) && strpos($data['tags'], $_GET['tag']) === false) continue; $text_file = isset($data['file'])?file_get_contents("{$data['file']}.htm"):""; // Display the entry header and body $view_link = "show.php?entry=$header"; echo <<
$header |
$data[date] |
$data[text]
$text_file
|
ENTRY; } echo << |
ENTRY;
$token = strtok($data['tags'], " ,");
while ($token) {
echo "$token ";
$token = strtok(" ,");
}
echo <<
Comment
|
ENTRY;
} // End of entry for loop
?>
Home
Top
|
|