Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Rolan Yang
Randal Rust wrote: On Wed, Dec 3, 2008 at 3:43 PM, Joseph Crawford <[EMAIL PROTECTED]> wrote: Like I said have a php script serve it as a download. Doing it this way allows you to make sure that the user logged in. Thanks, Joe. It worked perfectly! This question and solution see

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Randal Rust
On Wed, Dec 3, 2008 at 3:43 PM, Joseph Crawford <[EMAIL PROTECTED]> wrote: > Like I said have a php script serve it as a download. Doing it this way > allows you to make sure that the user logged in. Thanks, Joe. It worked perfectly! -- Randal Rust R.Squared Communications www.r2communications.

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Joseph Crawford
Like I said have a php script serve it as a download. Doing it this way allows you to make sure that the user logged in. On Dec 3, 2008, at 3:36 PM, Randal Rust wrote: On Wed, Dec 3, 2008 at 3:33 PM, Ben Sgro <[EMAIL PROTECTED]> wrote: Why not just email them the book (size permitting)?

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Randal Rust
On Wed, Dec 3, 2008 at 3:33 PM, Ben Sgro <[EMAIL PROTECTED]> wrote: > Why not just email them the book (size permitting)? It's too big. My other option is Amazon S3, which we've already used on another, larger project. But I thought it would be kind of useful to figure out how to do it this way a

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Ben Sgro
Hello, Why not just email them the book (size permitting)? - Ben Joseph Crawford wrote: If you want the file to live outside the www that's fine, but i doubt you can do it like you did in the rewrite. I would make the rewrite point to a php script that reads the file then outputs it for down

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Joseph Crawford
If you want the file to live outside the www that's fine, but i doubt you can do it like you did in the rewrite. I would make the rewrite point to a php script that reads the file then outputs it for download using the appropriate headers etc. On Dec 3, 2008, at 3:23 PM, Randal Rust wrote:

[nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Randal Rust
We are working on a small site where the client has an eBook for sale. Once the purchase is completed, we want to provide the link to the file, which we'd like to have sit outside of the server root. We are trying to work this out by modifying the .htaccess file with the following command. Rewrite