[nycphp-talk] Image directory restriction
Jeff Loiselle
jeff.loiselle at gmail.com
Wed Aug 31 13:49:14 EDT 2005
Forgive if I'm wrong, but I believe you'll need to open the image
data, send the correct http header so the browser will render it
correctly, along with the actual data following the header.
On 8/31/05, Peter Sawczynec <ps at pswebcode.com> wrote:
> <img src="/getimagescript.php?id=1">
>
>
> <?php
>
> //file name: getimagescript.php
> //pseudo code outline
>
> $image = gogetanimage($id);
>
> return $image;
>
> //do store images in dir outside of web dir
>
> ?>
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
> Behalf Of Mark Withington
> Sent: Wednesday, August 31, 2005 9:11 AM
> To: 'talk at lists.nyphp.org'
> Subject: [nycphp-talk] Image directory restriction
>
>
> Perhaps a dumb question, can anyone recommend an effective way to restrict
> direct access to an images subdirectory? Specifically, I would like to
> serve up images _only_ through .php scripts on the server, not directly via
> a URL....
>
> --------------------------
> Mark L. Withington
> PLMresearch
> "eBusiness for the Midsize Enterprise"
> PO Box 1354
> Plymouth, MA 02362
> o: 800-310-3992 ext. 704
> f: 508-746-4973
> v: 508-746-2383
> m: 508-801-0181
> http://www.PLMresearch.com
> Netscape/AOL/MSN IM: PLMresearch
> mwithington at plmresearch.com
> Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
> Calendar: http://www.plmresearch.com/calendar.php
>
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
>
>
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
>
--
---
Jeff Loiselle
Web Developer, Musician, and Observer
http://jeff.loiselles.com
More information about the talk
mailing list