|
Tuesday, February 5
How to get hits on your blog
Getting traffic to your new blog is fun and easy... If you're a writer for Time magazine, that is. I'll save you a click on that link, which is only included for completeness, and summarize the article in three sentences: "Hey, there are these neat web sites called blogs that anyone can make, including me, and I don't know anything about web sites! Cool, huh? Check mine out, or start your own!" Now that's solid reporting. Excuse me while I go apply for a position at Newsweek. '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |