Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
$filename = "Logs/test.txt";
$fh=fopen($filename,"r") or die ("can't open file");
$contents = fread($fh, filesize($filename));
fclose($handle);
echo $contents;
?>
if (is_file($filename)) {
// put open code here
}
else {
echo "404 - file not found";
}
$filename="test.pdf";
$path = "path/to/file/";
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$filename.'"');
readfile($path.$filename) or die("cannot open file");