Hi all:
I require some assistance with a download script:
I have a flash app that when you select a specific item from a combobox it is suppossed to get the file size, next to the combobox is a button to download the file. The files i have that are for download are behind a protected directory (.htaccess file). I can pass the information to php meaning the file name etc, but i dont know how to make php return a file size and more importantly begin a download to the users browser. I have this php script outside of the protected dir for php to call in the protected dir and request the file, i dont know the code to begin a download. the information i have found thus far is information showing how php is able to read the file in a string etc, i cant do this, i have movie files that i require the users to actually download to their computers. Please assist
Thanks
Anthony
using php to download files in a protected dir
Moderator: General Moderators
-
anthonyarde
- Forum Newbie
- Posts: 1
- Joined: Tue Sep 15, 2009 9:22 pm