NYCPHP Meetup

NYPHP.org

[nycphp-talk] Image directory restriction

Peter Sawczynec ps at pswebcode.com
Wed Aug 31 12:47:43 EDT 2005


<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





More information about the talk mailing list