Tech2 Forums - Powered by vBulletin

how to make files downloadable from databas?

This is a topic on how to make files downloadable from databas? within the Programmers Corner forums, part of the Technology category; hi all. I'm new to programming arena. my prof. has given me a simple assignment of creating a database of ...

Results 1 to 2 of 2
  1. #1
    Uber Newbie
    Join Date
    Jan 2009
    Location
    C:\Program Files\CCleaner
    Posts
    0
    Liked
    0 times
    Reputation points
    0

    how to make files downloadable from databas?

    hi all.
    I'm new to programming arena. my prof. has given me a simple assignment of creating a database of existing movies in my hdd. i've created database, parsed into php, built a search query. next step is to make them downloadable.
    m using WAMP server to do all these.
    i've to click on a movie file and make it as a downloadable using php.. what's the script used to do these functions?? could any one plz assist me ?!

    Thank you.

  2. #2
    Tech2 Members ander's Avatar
    Join Date
    May 2011
    Location
    Bangalore
    Posts
    164
    Liked
    9 times
    Reputation points
    25

    Re: how to make files downloadable from databas?

    You could use
    Code:
    <?php
    readfile('C:\example\my-movie.avi');
    ?>
    I'm back, baby! =P

Similar Threads

  1. Replies: 0
    Last Post: 07-30-2006, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •