IntoDEV 0 Newbie Poster

Ok.. i have a script that lets the authorized user to browse and download the files they want(that's what it supposed to be), but...
i can't get to give the user files via links. The files are in a different drive and folder then apache, so how can i make a link that makes the files downloadable.

this is what i'm sending with headers when you press the link:

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$_GET['dir']."\".$_GET['file']."");
header("Pragma: no-cache");
header("Expires: 0");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.