Folder reorganize 1
This commit is contained in:
24
OLD/manuf.php
Normal file
24
OLD/manuf.php
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
<select name="s1">
|
||||
<option value="" selected="selected">-----</option>
|
||||
<?php
|
||||
foreach(glob(dirname(__FILE__) . 'P:/Manufacturing Daily Report/2016 crop year/*') as $filename){
|
||||
$filename = basename($filename);
|
||||
echo "<option value='" . $filename . "'>".$filename."</option>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$file = 'P:/Manufacturing Daily Report/2016 crop year/09-28-2016.pdf';
|
||||
$filename = 'filename.pdf';
|
||||
header('Content-type: application/pdf');
|
||||
header('Content-Disposition: inline; filename="' . $filename . '"');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Accept-Ranges: bytes');
|
||||
@readfile($file);
|
||||
|
||||
?>
|
||||
|
||||
</select>
|
||||
Reference in New Issue
Block a user