--=-+p7fpS0fJHkBVO2SzETp
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
The file itself is not on the web. download.php takes a parameter that
says which file to "pipe" through off the system to the user. I.E. the
file's at /root/file.tar.gz There's no way the user can get there w/o
asking download.php which does have access.
On Wed, 2003-02-26 at 23:04, Jeremy C. Reed wrote:
> On 26 Feb 2003, Bryce C wrote:
>=20
> > I'm trying to write a php script that passes a binary file through it
> > for download. This is to protect the file's true location (not web
> > accessible) and to allow my logger to log the transaction.
> > Unfortunately, the filename doesn't get copied. That is, the file to
> > download shout be x.tar.gz but I get download.php. Can someone help?
>=20
> Try using an HTTP redirect, like:
>=20
> Location: http://www.whatever.foo/the.file
>=20
> followed by two newlines.
>=20
>=20
> Jeremy C. Reed
> http://bsd.reedmedia.net/
>=20
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--=20
Bryce C <
Plug@BryceCo.Net>
CoBryce Communications
--=-+p7fpS0fJHkBVO2SzETp
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD8DBQA+XbAt/wbq/C6yyPcRAvhYAJ4xexsqDKhHlLp3JA4m1v2DusjxyQCdEW4R
7+AVMWmD0O+mLlDgJ09APME=
=mjvQ
-----END PGP SIGNATURE-----
--=-+p7fpS0fJHkBVO2SzETp--