Re: PHP equiv of Cold Fusion's CFCONTENT

From: Date: Mon, 13 Nov 2000 22:55:33 +0000
Subject: Re: PHP equiv of Cold Fusion's CFCONTENT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25052@lists.php.net to get a copy of this message
On Mon, 13 Nov 2000, Chris Lott wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > In CF I use the CFCONTENT tag to deliver files from a secured directory > through the browser for download (for downloading purchased content, for > instance): > cfcontent type="application/unknown" file="c:\inetpub\shareware\#filepath#" > > What is the equivalent procedure using PHP? > > c > > -----BEGIN PGP SIGNATURE----- > Version: 6.5.8ckt http://irfaiad.virtualave.net/ > Comment: PGP Signed for message verification and/or encryption > Comment: KeyID: 0xD68B61E851046CFD > > iQA/AwUBOhBxKdaLYehRBGz9EQLYKgCffVf0z8LO8mQXY5bWH3mMrJihwVAAoMGZ > PtWlGQXuXvXIQ6sMw8hwJK4P > =VCEd > -----END PGP SIGNATURE----- > If you want to send a file on its own, just use: <? header("Content-type: type/subtype"); passthru("c:\\file.ext"); ?> -- Ignacio Vazquez-Abrams Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25052) next »