Help for this page

Select Code to Download


  1. or download this
    # Check cookie and initialise a guest session if need be
    $sid = $q->cookie("CGISESSID") || undef;
    $session = new CGI::Session("driver:File",$sid,{'Directory'=>"./tmp/se
    +ssions"});
    print $session->header();
    
  2. or download this
    print "Content-disposition: attachment; filename=$qstring\n";
    print "Content-type: image/jpg\n\n";
    open IMG, "<restricted/$qstring";
    ...
    }
    flock IMG, 8;
    close IMG;