Web Analytics Made Easy -
StatCounter download.php setup with mysql - CodingForum


No announcement yet.

download.php setup with mysql

  • Filter
  • Time
  • Show
Clear All
new posts

  • download.php setup with mysql

    I need help to set-up my MySQL database using php

    I am trying to make a download.php which would let users to download files after 5 seconds.

    The only problem is that my /download directory has many sub directory.

    For example if someone wants to download FireFox, then firefox.exe is located in /download/FireFox/firefox.exe

    and I want somewhat like this www.domain.com/download.php?fi... as an output URL to download. I know that I can use MySQL and setup a nice database to do something like this as long as fileid is unique.

    Any ideas on how to setup the MySQL database so that I can easily add multiple files from different sub directory at the same time.

    Thanks for reading the topic. Have a good one.

  • #2
    you wouldn't add the files to your database, you would store the path to the files in your database.