Sunday, July 7

Getting some rays

Nothing like sitting out in the park on a beautiful summer day. Except, maybe, sitting out in the park on a beautiful summer day with the iBook basking in free wireless Internet. All of Bryant Park in Midtown has free wireless Internet service available, allowing yours truly to both tinker with some PHP scripts and get some sun. I'm a little less white than the iBook now. Only a little, though.



Older entries

'; } 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); ?>