download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved] |
Author: |
Message: |
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
O.P. download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved]
so lets say
http://poop.com/download.php?id=1 goes to poop.com/magicjohnson.mp3.
Now multiply that by 10000 .
I need a script to tell me the actual mp3 location that the download.php?id=[1-10000] is telling me to go.
This site requires a login, and it's stored in a cookie, so I'll need the ability to use a cookie
THANKS <3
This post was edited on 09-21-2008 at 12:52 AM by prashker.
|
|
09-15-2008 08:02 PM |
|
|
Thor
Veteran Member
Awwwwwwww.
Posts: 1118 Reputation: 42
32 / – /
Joined: May 2006
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
Are you out on your wild adventures on scriptlance again?
I'm not really sure what you want either. If you already have the download function, you could just use the same var and echo it instead of using Header: Location to re-dir and just display the link.
This post was edited on 09-15-2008 at 08:08 PM by Thor.
|
|
09-15-2008 08:05 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
why not store it in a database?? you can do so much with a db
edit: oh shit i didnt read it properly... use what absorbation said
This post was edited on 09-15-2008 at 08:48 PM by NanaFreak.
|
|
09-15-2008 08:24 PM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
use mysql or something
and
code: $result = mysql_query("SELECT * from MUSIC
WHERE id = " . $_GET['id']);
$mp3file = mysql_fetch_array($result)['url'];
header("Location: $mp3file");
2 columns:
- id (int)
- url (varchar)
table: MUSIC
if you're just talking about you downloading stuff from 0 to 10000, you can try out some download plugins on firefox (just what absorbation said)
lol. same here nanafreak
This post was edited on 09-15-2008 at 09:04 PM by roflmao456.
[quote]
Ultimatess6: What a noob mod
|
|
09-15-2008 08:31 PM |
|
|
absorbation
Elite Member
Posts: 3636 Reputation: 81
– / /
Joined: Feb 2005
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
|
|
09-15-2008 08:43 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
O.P. RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
I don't want to download them all . I just want the links, then filter out the ones I want ;<
But that'll do I suppose....thanks
|
|
09-15-2008 09:05 PM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
Status: Online
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
You should be able to do this by using PHP and cURL (with the curl_getinfo function)
|
|
09-15-2008 10:51 PM |
|
|
prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
|
09-20-2008 04:56 PM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
Status: Online
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script
Here it is (attachment)...
However, it won't work on the site you posted, because like you said, you need to be logged in first, and I have never used cookies with cURL.
Someone else can probably help you
Attachment: sam.php (674 bytes)
This file has been downloaded 193 time(s).
|
|
09-20-2008 08:06 PM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
I can write a script to get the links, but I'm too lazy to write it from scratch, so I'd use some of my custom PHP libraries which I'm not gonna release.
Are there really 10000 files?
|
|
09-20-2008 10:09 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|