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

Re: [PHP] Downloads stop short

2005-05-04 Thread Petar Nedyalkov
On Tuesday 03 May 2005 21:43, Mike wrote: > I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB downloads or uploads :-) check: upload_max_filesize post_max_size memory_limit ini variables. > > Is this a setting I missed somewhere? > > > +

RE: [PHP] Downloads

2002-10-17 Thread John W. Holmes
> I know that php allows uploading , but does it support downloading. > > I want users to be able to download from my site , how do i go to work. > > Please send me sample of code if possible. Yes, it does. Click here to download ---John Holmes... -- PHP General Mailing List (http://www.p

Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread Rick Hodger
"Juan Germano" <[EMAIL PROTECTED]> wrote in message 004b01c081f3$46be8160$ddf90dd1@juangerm">news:004b01c081f3$46be8160$ddf90dd1@juangerm... > Hi. I'm trying to write a script to download a mp3 file. I did this: > > $filesize=filesize($filename); > header("Content-disposition: attachment;filename

Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread jeremy brand
your script is probably timing out. Try doing: set_time_limit(0); at the top of your script. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - -