Hi everybody (again )
I'm working in a script for download any file of the server. My script is:
<?php
global $file;
header('Content-Type: application/octetstream');
header('Content-Disposition: filename=$file');
header('Pragma: no-cache');
header('Expires: 0');
?>
where $file is a parameter in the url like this:
but its doesnt work....
Please someone can give some help ??
Thanks a lot
I'm working in a script for download any file of the server. My script is:
<?php
global $file;
header('Content-Type: application/octetstream');
header('Content-Disposition: filename=$file');
header('Pragma: no-cache');
header('Expires: 0');
?>
where $file is a parameter in the url like this:
but its doesnt work....
Please someone can give some help ??
Thanks a lot