I need to provide a way for users to download data files from a web site.
I know that I could have then right click and save-as, however, I need to record this
action in a database. If they just right click, I don't have any way to trigger the
script to record the transaction.
Does some one h
On Wednesday 28 February 2001 01:06, you wrote:
> > Great, thanks.
> > I looked at the file(), but it sounded like is was just for
> > local file use.
>
> oops, should've been include(). Sorry :)
include () is surely wrong for that. fpassthru (as someone else
mentioned), file() and (my personal
try this, works for me.
everywhere I read they say Im supposed to use application/octlet-stream but
it doesnt allways seem to work in some browsers.
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Chris"" <[EMAIL PROTECTED]> w
> Great, thanks.
> I looked at the file(), but it sounded like is was just for
> local file use.
oops, should've been include(). Sorry :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
Great, thanks.
I looked at the file(), but it sounded like is was just for local file use.
> > Is it possible to send a file to a browser?
>
> Sure.
>
> file();
>
> > I would like to allow people to download a file, but I don't
> > want to give away the path to the file, so a normal link
> Is it possible to send a file to a browser?
Sure.
file();
> I would like to allow people to download a file, but I don't
> want to give away the path to the file, so a normal link
> wouldn't work.
In that case:
Header("Content-type: application/octet-stream");
file("whatyouwanttosend");
Hi,
Is it possible to send a file to a browser?
I would like to allow people to download a file, but I don't want to give away the
path to the file, so a normal link wouldn't work.
I am hoping there is a way to use php to send the file using code, rather than trying
to first copy the file to a t
7 matches
Mail list logo