Reputation: 1
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
Reputation: 1833
header("location:http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3"); should do the trick
Upvotes: 1
Reputation: 22633
<?php
$songid = $_REQUEST['SongID'];
if($songid == 1)
{
header("Location: ".$songLink);
}
?>
Upvotes: 2
Reputation: 47650
header('location: http://sound18.mp3pk.com/indian/3idiots/3idiots01(www.songs.pk).mp3');
Upvotes: 1