# PHP download help

**URL:** <https://forum.kirupa.com/t/php-download-help/248095>\
**Category:** programming\
**Created:** [January 3, 2008, 7:13pm UTC](https://forum.kirupa.com/t/php-download-help/248095 "2008-01-03T19:13:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrbi](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@hrbi](https://forum.kirupa.com/u/hrbi)\
**Post date:** [January 3, 2008, 7:13pm UTC](https://forum.kirupa.com/t/php-download-help/248095/1 "2008-01-03T19:13:21Z")

</div>

Hi…  
I have a php problem. Im no good at it… I  
have bought a force download app from FlashDen. I cant get in hold of the authour, so i hope someone else can help me out here.  
It´s regarding the path of the files to be downloaded from, in the php file. As it is now, I have to put all my download files out in the root or in the same folder as i put the download.php file in.  
I have a folder named “images\_down” and i want the path to go there.  
here is the php code as original:

```php

 
<?php
    $file = $_GET["f"];
    header("Content-type: application/octet-stream");
    header("Content-Disposition: attachment; filename=\"$file\"
");
    $fp = fopen("$file", "r");
    fpassthru($fp);
?>
 
 

```

So how to put in ánd where my “images\_down” folder??  
Hope someone can help…  
Best regardn and new year to your all ![](http://www.flashden.net/images/smileys/happy.gif) //Hrbi
