Aaron Todd wrote:
<snip>
<?php
$file = "/home/dlr/test/".$_GET['file']."";
if (file_exists(basename($file))) {
header("Content-Description: File Transfer");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
@readfile($file);
} else {
echo "$file<br>";
echo basename($file);
echo "<br>No File Found";
}
?>
Where are you opening the file?
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php