File Download?

From: Date: Fri, 04 Apr 2003 05:51:39 +0000
Subject: File Download?
Groups: php.general 
Request: Send a blank email to php-general+get-142258@lists.php.net to get a copy of this message
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

« previous php.general (#142258) next »