http://www.domene.no/2007/12/hvordan_bake_pepperkaker/
<?php
if (!file_exists("/$year")) {
mkdir("/$year");
}
if (!file_exists("/$year/$month")) {
mkdir("/$year/$month");
}
if (!file_exists("/$year/$month/$story_path")) {
mkdir("/$year/$month/$story_path");
}
$newIndex = fopen("/$year/$month/$story_path/index.php", "a");
$indexContent = ""; // filens innhold her
fwrite($newIndex, $indexContent);
fclose($newIndex);
?>
# Arkivfunksjoner
RewriteRule ^([0-9]{4})/([0-9]{2})/?$ /index.php?id=archive&year=$1&month=$2 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([A-Za-z0-9-]+)/?$ /index.php?id=art&year=$1&month=$2&post=$3 [L]
Registrerte brukere: Google [Bot]