sorry cuz my english is not perfect
i try to make a download page
1- i uploaded a file by th FTP
2- i enterd the place ( path ) of the file in a table on the data base
now i want to make a download page but pervent users from knowing the url of the file
like rapidshre.com i can't copy the Direct Download link and share it with other people
i use this code
Code: Select all
<?
$filename = '55.zip';
$data = file_get_contents('55.zip') ;
if($data)
{
$_SESSION['downloadfile'] = $filename;
header("Content-Disposition: attachment; filename=$filename");
echo $data;
}
?>but in rapidshre or hotfile .... etc ihe can't do that
any one can help me????
[/b]