[nycphp-talk] Image directory restriction
Jonathan
hendler at simmons.edu
Wed Aug 31 09:52:20 EDT 2005
Depending on speed requirements you can insert the binary data of an
image in a database or restricted area of the filesystem and have a php
script retrieve the image.
Your html would look like this
<img src="getimage.php?image_number=1324">
This is often used for tracking.
If you just want directory listing prevented use .htaccess of apache to
shut off the option for indexes.
Mark Withington wrote:
>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
>
>
More information about the talk
mailing list