user873328
user873328

Reputation: 1

download link php file

If I don't want to upload content on my server, just link it.

I just want like this :

SongID = Cint(Request.QueryString("SongID"))
if SongID = 1 then
    Response.Redirect("http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3")

I just got this code from some site.

So how I can make it in proper PHP so it can work?

Example -

http://link.songspk.info/indian_movie/0-9_List/download.php?id=79

it redirects to - http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3

Upvotes: 0

Views: 20051

Answers (3)

dbarnes
dbarnes

Reputation: 1833

header("location:http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3"); should do the trick

Upvotes: 1

Patrick Perini
Patrick Perini

Reputation: 22633

<?php

    $songid = $_REQUEST['SongID'];

    if($songid == 1)
    {
        header("Location: ".$songLink);
    }

?>

Upvotes: 2

RiaD
RiaD

Reputation: 47650

header('location: http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3');

Upvotes: 1

Related Questions