Jump to content

Adding stuff before the input put in in a Input box


xIFr0z3nIx

Recommended Posts

I'm editing a script in php and it is to download files from other servers. It downloads them then hosts them on my server in a directory. That part all works fine.

  I want to add [code]http://username:password@[/code] before every link that is put into the input box and downloaded and I don't want that part to be seen. The reason I'm doing this is because rapidshare recently fixed there system so direct download links aren't supported unless your logged into a premium account. For some reason when I type
[code]http://username:[email protected]/files/#####/file.zip[/code]
into the input on a script it works and the file is hosted but I don't want to give away the username and pass to every user cuz that would defeat the purpose. Anyway if someone could help me, since rapidshare doesn't have bandwidth limits for premium users anymore, this would make a premium link generator that works all the time using only 1 account. Here is what I've got so far
[code]http://rapidlshare.com/free[/code]

Thanks in Advance,
-FROZEN
you may be able to use the curl library with http authentication which would then transmit the username/password in the headers instead of in the url.  Never tried it but I believe it works.  Check the doc for the curl() lib and http authentication on php.net

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.