Re: [PHP] How do i provide Download facility ??

2002-11-27 Thread Brian McGarvie
Perhaps he wants to track downloads of files and obscure the physical
locations...

"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> > I am a newbie in this PHP world.  I was just looking around for
> > information on Download of files using PHP.
> > I need to provide link/button, by clicking which a user can download a
file
> > (Say a CSV file..). Does PHP provide any class or methods to achieve the
> > same...? Looking forward for your suggestions ...
>
> Why do you need it to be anything to do with PHP?  You need to tell us
more
> information, because plain HTML like this works fine:
>
> Click here to download the CSV file
>
> ...but I assume you want to restrict file downloads to only logged in
users,
> or you wish to count the number of downloads, or something else??
>
>
> Justin French
> 
> http://Indent.com.au
> Web Development &
> Graphic Design
> 
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How do i provide Download facility ??

2002-11-26 Thread Justin French
Hi,

> I am a newbie in this PHP world.  I was just looking around for
> information on Download of files using PHP.
> I need to provide link/button, by clicking which a user can download a file
> (Say a CSV file..). Does PHP provide any class or methods to achieve the
> same...? Looking forward for your suggestions ...

Why do you need it to be anything to do with PHP?  You need to tell us more
information, because plain HTML like this works fine:

Click here to download the CSV file

...but I assume you want to restrict file downloads to only logged in users,
or you wish to count the number of downloads, or something else??


Justin French

http://Indent.com.au
Web Development & 
Graphic Design



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How do i provide Download facility ??

2002-11-26 Thread Chris Shiflett
--- Venkatesh Hosur <[EMAIL PROTECTED]> wrote:

> I was just looking around for information on Download
> of files using PHP. I need to provide link/button, by
> clicking which a user can download a file (Say a CSV
> file..)

The best solution, in my opinion, is just to use a straightforward
HTML link:

http://yourserver.org/foo.csv";>Download foo.csv

The only caveat to this is that you must make the file available as a
URL, meaning it must be stored under document root.

If you instead want to have a PHP application decide whether the user
is allowed to download the file as a way to restrict access to it,
that's a different question. :-)

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How do i provide Download facility ??

2002-11-26 Thread Venkatesh Hosur
Hello,
  I am a newbie in this PHP world.  I was just looking around for
information on Download of files using PHP.
I need to provide link/button, by clicking which a user can download a file
(Say a CSV file..). Does PHP provide any class or methods to achieve the
same...? Looking forward for your suggestions ...

Thanking in advance !!!
Venkatesh Hosur