Re: Is it possible? downloading file via PHP while masking the URL

From: Date: Fri, 18 Apr 2003 01:50:55 +0000
Subject: Re: Is it possible? downloading file via PHP while masking the URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144364@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 header('Content type: text/html'); readfile('http://www.google.com/'); should work. file() returns an array, not a string. you could echo file_get_contents(), but that wouldn't solve the header issue. make sure to change text/html to whatever type of file you want to download. Apache includes a useful little list int he conf/mime.types directory if you need help On Thursday 17 April 2003 03:20 pm, Daniel R. Anderson wrote: > Hi, > > Is it possible to use PHP to create a link to download a file, without > letting the user see the URL the file is being downloaded from? > > I've tried to do it by echoing file() to the screen but it didn't work. > > -Dan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+n1on/rncFku1MdIRAn3SAKC1W+lDfhVjlg33sLvJRESzbyZW0wCeMtZt rDxMLfOp4MDchb83aBzLYLE= =7pKT -----END PGP SIGNATURE-----

« previous php.general (#144364) next »