Line | |
---|
1 | <?php
|
---|
2 | $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
|
---|
3 | if (isset($param['id_cons_gen']))
|
---|
4 | $id_cons_gen2=intval($param['id_cons_gen']);
|
---|
5 | if (isset($param['id_comune']))
|
---|
6 | $id_comune2=intval($param['id_comune']);
|
---|
7 | $sql="select descrizione from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen2'";
|
---|
8 | $sth = $dbi->prepare("$sql");
|
---|
9 | $sth->execute();
|
---|
10 | $row = $sth->fetch(PDO::FETCH_BOTH);
|
---|
11 | $nomeFile=$row[0];
|
---|
12 | #$nomeFile="backup";
|
---|
13 | header( 'Content-Type: application/octet-stream' );
|
---|
14 | header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
|
---|
15 | #header( 'Content-Length:'.strlen( $content ) );
|
---|
16 | header( 'Content-Transfer-Encoding: binary' );
|
---|
17 | include("backup2.php");
|
---|
18 | exit(0);
|
---|
19 |
|
---|
20 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.