Re: serving swf or images from a folder outside the document root

From: Date: Wed, 06 Dec 2000 03:11:10 +0000
Subject: Re: serving swf or images from a folder outside the document root
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28825@lists.php.net to get a copy of this message
There should be samples in the code archives listed on http://php.net/links.php At its most simple, there ain't much to it: ------- display.php ----------------------------- <?php passthrough("/some/other/directory/$filename"); ?> <IMG SRC=display.php?filename=whatever.gif> Then you get the joys of adding headers for Content-type, Content-length, cache control (multiple headers, due to non-conforming servers/browsers/relays/etc) and dealing with IE downloads by altering your URL to: display.php/whatever.gif?filename=whatever.gif Unfortunately, *exactly* what to do for that bit depends a lot on your needs, rather than some flat-out "this is the way to do it" answer. ----- Original Message ----- From: "Daz" <clark.darren@btinternet.com> Newsgroups: php.general Sent: Monday, December 04, 2000 6:34 PM Subject: [PHP] serving swf or images from a folder outside the document root > Hi all, > > For added security i'd love to have any images and swf files etc outside of > the document root and just have the php files in. > Has anyone got any code in which I can see this working? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#28825) next »