Nameslot is a .com-only forum – membership is free with full access; upgrades offer extras like banner ads and newsletter spots. ✅ Signature links are free. No AI-generated posts – share your own insights or risk account removal.
  • Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

PHP File Downloads

  • Thread starter Thread starter nick
  • Start date Start date
Status
Not open for further replies.
N

nick

Guest
Hi,

I have a script which shows the direct links to the files that are to be downloaded.

Now I want that If the link is clicked then it should go something like this:

http://www.xx-d-d--d.com/downloads.php?id=2

So now this downloads.php will lookinto the database and see the download URL of the file ID numner 2.

And it should load a download and maybe display a message like "File Downloading..."

I tried this with headers but sometimes it works and sometimes it doesn't.

If any one know how to do this then please let me know.

Thanks.
 
Using headers should work. If not then make sure you're using
Code:
$_GET[id]
in your script instead of what I used to use which was the normal
Code:
$id
to get the download. :) This could be a cause of it not working. :)
 
Thanks dale for your precious input. It helped me solve my problems.

Thanks a lot.
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
21,273
Messages
71,289
Members
44,709
Latest member
kritika12
Active members today
2
New members today
1
New threads today
6
New posts today
7

Latest Listings

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top