Make A DownLoad Page ... Help???
Posted: Fri Nov 13, 2009 8:51 pm
hi every body
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
But If Some One Clicked On The DownLoad Right Click ( On FireFox ) And Choise Copy Download Link He Can Share The Direct Link With Others And he will put in his for example and every body will download it without enter my site
but in rapidshre or hotfile .... etc ihe can't do that
any one can help me????
[/b]
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]