Hi,
Why would the $daFile in the following code be
resolved to "". I am passing it via the url.
<?
session_start();
if($_SESSION['isValidSession'] == 'Y'){
$daFile = $_GET['daFile'];
$size=filesize($daFile);
if($daFile != ""){
//header("Cache-control: private");
header("Content-Type:
texapplication/octet-stream\n");
header("Content-Length:" . $size ."\n");
header("Content-Disposition: attachment;
filename=\"$daFile\"\n");
}
require("footer.php");
}else{
printf("<br> You are not autherized to view this
page");
}
?>
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php