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
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
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
'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
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
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?
>
>
> +
> 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
"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
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
- - - - - - - - - - - - - - - - - - - - - - - - -
9 matches
Mail list logo