I received a task that wasn’t really what I do – get a PHP file download script working – so I managed to put the following together: <?php // sanitize the input $path_parts = pathinfo($_GET['f']); $file_name = $path_parts['basename']; $file_path = '../../uploads/' . $file_name; //echo $file_path.'<br>'; //echo file_exists($file_path) ? 'true' : 'false' ; if (file_exists($file_path)) { […]