Re: [PHP] how to provide download of files mow in documentroot

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 12:43 AM, Anshul Agrawal wrote: > On Wed, Mar 31, 2010 at 1:12 AM, Nathan Rixham wrote: > >> Anshul Agrawal wrote: >> > On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. >> wrote: >> > >> >> 2010/3/30 Nathan Rixham : >> >>> Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >>

Re: [PHP] how to provide download of files mow in documentroot

2010-03-31 Thread Anshul Agrawal
On Wed, Mar 31, 2010 at 1:12 AM, Nathan Rixham wrote: > Anshul Agrawal wrote: > > On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. > wrote: > > > >> 2010/3/30 Nathan Rixham : > >>> Jan G.B. wrote: > 2010/3/29 Nathan Rixham > > > Jan G.B. wrote: > >> 2010/3/29 Nathan Rixham > >>

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Anshul Agrawal wrote: > On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. wrote: > >> 2010/3/30 Nathan Rixham : >>> Jan G.B. wrote: 2010/3/29 Nathan Rixham > Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >> >>> Jan G.B. wrote: Top posting sucks, so I'll answer the post s

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Anshul Agrawal
On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. wrote: > 2010/3/30 Nathan Rixham : > > Jan G.B. wrote: > >> 2010/3/29 Nathan Rixham > >> > >>> Jan G.B. wrote: > 2010/3/29 Nathan Rixham > > > Jan G.B. wrote: > >> Top posting sucks, so I'll answer the post somewhere down there. >

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Jan G.B. wrote: > I was recommending other file methods like fopen() combinations, > fpassthru() and at best readfile(). All of them do not buffer the > whole file in memory. > > http://php.net/readfile > http://php.net/fpassthru ahh so you were; completely missed that, apologies - readfile's the

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/30 Nathan Rixham : > Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >> >>> Jan G.B. wrote: 2010/3/29 Nathan Rixham > Jan G.B. wrote: >> Top posting sucks, so I'll answer the post somewhere down there. >> >> >> 2010/3/29 Devendra Jadhav >> >>> Then you ca

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Nathan Rixham
Jan G.B. wrote: > 2010/3/29 Nathan Rixham > >> Jan G.B. wrote: >>> 2010/3/29 Nathan Rixham >>> Jan G.B. wrote: > Top posting sucks, so I'll answer the post somewhere down there. > > > 2010/3/29 Devendra Jadhav > >> Then you can do file_get_contents within PHP. or a

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/29 Nathan Rixham > Jan G.B. wrote: > > 2010/3/29 Nathan Rixham > > > >> Jan G.B. wrote: > >>> Top posting sucks, so I'll answer the post somewhere down there. > >>> > >>> > >>> 2010/3/29 Devendra Jadhav > >>> > Then you can do file_get_contents within PHP. or any file handling > >>

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Nathan Rixham
Jan G.B. wrote: > 2010/3/29 Nathan Rixham > >> Jan G.B. wrote: >>> Top posting sucks, so I'll answer the post somewhere down there. >>> >>> >>> 2010/3/29 Devendra Jadhav >>> Then you can do file_get_contents within PHP. or any file handling mechanism. >> On Mon, Mar 29, 2010 at 1:

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Anshul Agrawal
On Mon, Mar 29, 2010 at 6:10 PM, Nathan Rixham wrote: > Jan G.B. wrote: > > Top posting sucks, so I'll answer the post somewhere down there. > > > > > > 2010/3/29 Devendra Jadhav > > > >> Then you can do file_get_contents within PHP. or any file handling > >> mechanism. > On Mon, Mar 29, 2

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Jan G.B.
2010/3/29 Nathan Rixham > Jan G.B. wrote: > > Top posting sucks, so I'll answer the post somewhere down there. > > > > > > 2010/3/29 Devendra Jadhav > > > >> Then you can do file_get_contents within PHP. or any file handling > >> mechanism. > On Mon, Mar 29, 2010 at 1:00 AM, ebhakt wrote:

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Nathan Rixham
Jan G.B. wrote: > Top posting sucks, so I'll answer the post somewhere down there. > > > 2010/3/29 Devendra Jadhav > >> Then you can do file_get_contents within PHP. or any file handling >> mechanism. On Mon, Mar 29, 2010 at 1:00 AM, ebhakt wrote: > Hi > i am writing a web applica

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Jan G.B.
Top posting sucks, so I'll answer the post somewhere down there. 2010/3/29 Devendra Jadhav > Then you can do file_get_contents within PHP. or any file handling > mechanism. > >> On Mon, Mar 29, 2010 at 1:00 AM, ebhakt wrote: > >>> Hi > >>> i am writing a web application in php > >>> this webap

Re: [PHP] how to provide download of files mow in documentroot

2010-03-28 Thread Devendra Jadhav
Then you can do file_get_contents within PHP. or any file handling mechanism. On Mon, Mar 29, 2010 at 11:49 AM, ebhakt 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 pri

Re: [PHP] how to provide download of files mow in documentroot

2010-03-28 Thread ebhakt
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

Re: [PHP] how to provide download of files mow in documentroot

2010-03-28 Thread Devendra Jadhav
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 wrote: > Hi > i am writing a web application in php > this webapp primarily focuses on file uploads and downloads > the uploaded files will be s

[PHP] how to provide download of files mow in documentroot

2010-03-28 Thread ebhakt
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 Tiw