Jump to content

Download page


thenewperson

Recommended Posts

Curious on how to make a download page with download button link. I understand how to make a download button and put a link in it but i dont know how to do that when i upload the file. I want it sort of like rapidshare where when you upload file it will give you link to download page instead of the item itsself. I want to be able to use same page with different links on the download button if that makes since. Any idea on how to do that?

Link to comment
Share on other sites

Curious on how to make a download page with download button link. I understand how to make a download button and put a link in it but i dont know how to do that when i upload the file. I want it sort of like rapidshare where when you upload file it will give you link to download page instead of the item itsself. I want to be able to use same page with different links on the download button if that makes since. Any idea on how to do that?

 

Here is a nice example to show you how to upload a file using PHP:

http://www.tizag.com/phpT/fileupload.php

 

From there you should read about security practices involving files and learn how to create a template, specifically creating a database that stores the filenames etc. Some info here:

http://www.phpfreaks.com/tutorial/php-basic-database-handling

 

In your upload page you can create some code that creates an entry in your DB with the info and a few details, and it's as easy as calling it from there.

 

And from then on you can use $_GET to allow one page to have different links, so your result will be download.php?id=302940 for example, whatever you create your database ID's as. This is sorta difficult just to warn you so there may be a lot you need to read on.

 

php.net should help with alot!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.