Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/3/07, Mário Gamito <[EMAIL PROTECTED]> wrote: Hi, > One popular method is to place your files outside of the webroot. I thought about that. > This makes it so people cannot access the files directly. Then create > a PHP script to read the file to the user with the correct mime type > usin

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Mário Gamito
Hi, > One popular method is to place your files outside of the webroot. I thought about that. > This makes it so people cannot access the files directly. Then create > a PHP script to read the file to the user with the correct mime type > using a header() call. Humm... and how do i do this, if i

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/1/07, Mário Gamito <[EMAIL PROTECTED]> wrote: Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe and login mechanism. Now, my question for you is about letti

RE: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Jake McHenry
'Mário Gamito' > Subject: RE: [PHP] Downloads for subsrcibers only > > Look at mod_auth_mysql. Then authenticate your pdf directory > against that > database of users. > > Otherwise anyone who knows the direct link to your PDF can > download it, > bypassing a

RE: [PHP] Downloads for subsrcibers only

2007-04-02 Thread Daevid Vincent
Look at mod_auth_mysql. Then authenticate your pdf directory against that database of users. Otherwise anyone who knows the direct link to your PDF can download it, bypassing all your 'subscription' security. > -Original Message- > From: Mário Gamito [mailto:[EMAIL PROTECTED] > Sent: S