it was one link but i have sorted it out m8 thanksjacek wrote:Oh, are you trying to have it download every file in the users album ? Or just one image ?
Search found 5 matches
- Sun Mar 11, 2012 1:37 am
- Forum: PHP
- Topic: need help with creating download links
- Replies: 9
- Views: 1083
Re: need help with creating download links
- Fri Mar 09, 2012 2:57 am
- Forum: PHP
- Topic: need help with creating download links
- Replies: 9
- Views: 1083
Re: need help with creating download links
Okay. Well readfile() expects a file path, not an image ID. you you need to work out that path to the image and pass that in instead. it will probably just be a matter of adding the folder too. my files are saved in the directory with its id not the name i tried a different approach which is when t...
- Thu Mar 08, 2012 1:40 am
- Forum: PHP
- Topic: need help with creating download links
- Replies: 9
- Views: 1083
Re: need help with creating download links
The files are stored in a folder called uploads, when a user creates an album it uses the users I'd, when they upload a image it goes into the album example uploads\userid\imageid the script is in the root directory of the site, would it be possible if I give u my server end details, via pm that u c...
- Tue Mar 06, 2012 12:03 am
- Forum: PHP
- Topic: need help with creating download links
- Replies: 9
- Views: 1083
Re: need help with creating download links
thanks for the reply well i did the following download_image.php <?php include 'init.php'; if (!logged_in()) { header('Location: index.php'); exit(); } if (image_check($_GET['image_id']) == false) { echo 'stopped at check'; //-- header('Location: albums.php'); exit(); } if (isset($_GET['image_id']) ...
- Sun Mar 04, 2012 6:21 pm
- Forum: PHP
- Topic: need help with creating download links
- Replies: 9
- Views: 1083
need help with creating download links
hi I'm new to PHP i am trying to create a link for users so they can download their own file from the server which they have previously uploaded, similarly the way user can delete their own files i need some help, what do i have to do i created a page called download.php and i need help with downloa...