-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.php
More file actions
32 lines (26 loc) · 926 Bytes
/
driver.php
File metadata and controls
32 lines (26 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
////////////////////////////////////////////////////
// //
// Driver code for file_iterator function //
// Author: Anthony George //
// //
////////////////////////////////////////////////////
<?php
ini_set("display_errors", "on");
error_reporting(-1);
include('file_iterator.php');
header("refresh: 60");
$file_path = 'c:/filepath';
$todays_bulletin = latestPDF($file_path);
?><!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="author" content="Anthony George">
<meta name="version 1" content="10/06/2019">
</head>
<body>
<embed src="<?php header("Content-type: application/pdf");
@readfile($todays_bulletin);?>">
</body>
</html>