<?php
$cachedir = "/var/www/virtual.hosts/appro.mit.jyu.fi/sovellukset/vt/vt9/barbar/feedcache/";

$file = $_SERVER["HTTP_REFERER"];
$hlo = str_ireplace('http://appro.mit.jyu.fi/sovellukset/vt/vt9/barbar/taso5/', '', $file);
$hlo = str_ireplace('/', '', $hlo);

 try {
  $dbh = new 
PDO('sqlite:/var/www/virtual.hosts/appro.mit.jyu.fi/sovellukset/vt/vt9/barbar/taso5/kanta');
}
catch ( PDOException $e ) {
  print ( $e->getMessage() );
} ?>
