Re: how to provide download of files mow in documentroot
| From: | Devendra Jadhav | Date: | Mon, 29 Mar 2010 06:22:01 +0000 |
| Subject: | Re: how to provide download of files mow in documentroot | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-303574@lists.php.net to get a copy of this message | ||
Then you can do file_get_contents within PHP. or any file handling
mechanism.
On Mon, Mar 29, 2010 at 11:49 AM, ebhakt <im@ebhakt.com> wrote:
> No i don't want to create any soft links
> that primarily rejects all the benefits of putting a file outside of
> document root
>
> i want some solution similar to private file downloads provided by drupal'
>
> so that the php webserver provides the download and not apache
> in realtime
>
>
>
> On Mon, Mar 29, 2010 at 11:43 AM, Devendra Jadhav <devendra.in@gmail.com>wrote:
>
>> Hey..
>>
>> Try creating soft link to the destination folder from doc root.
>> I haven't tried it but give it a try...
>>
>>
>> On Mon, Mar 29, 2010 at 1:00 AM, ebhakt <im@ebhakt.com> wrote:
>>
>>> Hi
>>> i am writing a web application in php
>>> this webapp primarily focuses on file uploads and downloads
>>> the uploaded files will be saved in a folder which is not in document
>>> root
>>> and my query is how will i be able to provide download to such files not
>>> located in document root via php
>>>
>>>
>>> --
>>> Bhaskar Tiwari
>>> GTSE Generalist
>>> Directory Services
>>> Microsoft
>>>
>>> ____________________________________________________________
>>> All we have to decide is what to do with the time that has been given to
>>> us
>>>
>>>
>>> http://www.ebhakt.com/
>>> http://fytclub.net/
>>> http://ebhakt.info/
>>>
>>
>>
>>
>> --
>> Devendra Jadhav
>> देवेंद्र जाधव
>>
>
>
>
> --
> Bhaskar Tiwari
> GTSE Generalist
> Directory Services
> Microsoft
>
> ____________________________________________________________
> All we have to decide is what to do with the time that has been given to us
>
>
> http://www.ebhakt.com/
> http://fytclub.net/
> http://ebhakt.info/
>
>
>
--
Devendra Jadhav
देवेंद्र जाधव