Results 1 to 4 of 4

Thread: Downloading Php Page

  1. #1
    Join Date
    Dec 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Downloading Php Page

    hello,
    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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You didn't ask a question..
    Whats the problem?
    Jeremy | jfein.net

  3. #3
    Join Date
    Dec 2007
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    how make it? this is my question. How hide link on downloading.

  4. #4
    Join Date
    Jan 2008
    Posts
    32
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Connect to your database. Fetch the results from a mysql table. The query should look like this, assuming your table is named `downloads`
    Code:
    $query = "SELECT * FROM downloads WHERE `id`=".mysql_real_escape_string($_GET["id"])." LIMIT 1";
    From that forward to the link like this:
    PHP Code:
    $location $row["Link"];
    Header("Location: $location");
    die(); 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •