this is a script which i wrote to handle a request from a form in my self built admin portal. The form simply asks for the date via 3 drop down menus, day, month and year and a password and is then sent here in the hope of opening the log file for that date as the logs are written into files by what date it is using gmdate("Mdy"); for the filename. i cannot get this script to open the file though, it keeps saying: (note i have edited some of the file paths for obvious reasons, i have however checked them all to be right) [color=red]Warning: filesize(): Stat failed for Resource id #3 (errno=2 - No such file or directory) in /home/fhlinux210/c/closertohim.co.uk/user/htdocs/the path to script/logsapp.php on line 20[/color] [color=blue]<?php $pass = md5($_REQUEST['pass'] ); [color=green]script asks for password to view files[/color] $passfil = fopen("../../../passhash.txt", "r"); $passr = fread($passfil, 32); fclose($passfil); $day = $_REQUEST['day'] ; $month = $_REQUEST['month'] ; $year = $_REQUEST['year'] ; if($pass == $passr){ $date = "$month$day$year"; $location = "http://www.closertohim.co.uk/folder/folder/" .$date; echo $location; $datafil = fopen("http://closertohim.co.uk/folder/folder/" . $date, "r"); if(filesize($datafil) > 0){ $data = fread($datafil, filesize($datafil)); }else{ echo "error in log file size\n$!"; } include('logs.php'); }else{ echo "Incorrect password, please try <a href=\"logs.php\">again</a>"; } ?>[/color]