View Full Version : Downloading Php Page

02-25-2008, 09:19 AM
I am making download.php file and how make when downloading hide download url. When i put another site's file and when somone download this file show in his download manager only my sites file location: example: http://anothersite.com/music.avi i put this in my website than i click on the download link and in accelerator shows only http://mysite.com/download.php?id=10.
Thanks if someone helps me

02-25-2008, 01:10 PM
You didn't ask a question..
Whats the problem?

02-25-2008, 05:47 PM
how make it? this is my question. How hide link on downloading.

02-25-2008, 10:20 PM
Connect to your database. Fetch the results from a mysql table. The query should look like this, assuming your table is named `downloads`

$query = "SELECT * FROM downloads WHERE `id`=".mysql_real_escape_string($_GET["id"])." LIMIT 1";

From that forward to the link like this:

$location = $row["Link"];
Header("Location: $location");