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 | $result = mysql_query("select descrizione from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen2'", $dbi);
|
---|
8 | list($nomeFile) = mysql_fetch_row($result);
|
---|
9 | #$nomeFile="backup";
|
---|
10 | header( 'Content-Type: application/octet-stream' );
|
---|
11 | header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
|
---|
12 | #header( 'Content-Length:'.strlen( $content ) );
|
---|
13 | header( 'Content-Transfer-Encoding: binary' );
|
---|
14 | include("backup2.php");
|
---|
15 | exit(0);
|
---|
16 |
|
---|
17 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.