RE: [PHP] This, then that.
| From: | tedd | Date: | Sat, 20 Oct 2007 13:59:38 +0000 |
| Subject: | RE: [PHP] This, then that. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263442@lists.php.net to get a copy of this message | ||
At 4:59 PM -0400 10/19/07, Robert Cummings wrote:
On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote: I want to prohibit an image from being shown to anyone who is not permitted (i.e., logged in). The way I want to do this is to: 1. Set [file] permissions...Rob: That's really not a bad idea, but in this experiment I'm using images as a stand-in for larger files (CD's, Videos, etc). Side note to everyone else (Rob knows this) Storing images in a dB has some advantages, but the concept has been beat to death on this list and no need to repeat it -- everything that could be said pro/con has been said -- just review the archives. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comWhat if 2 or more users access the application at the same time? Set the permissions so only the PHP application can access it. Have the PHP application decide if this present user running this instance should see the image. If approved, display image.One idea that has always been REALLY popular around here... stuff your image in a database. *MUHAWHAWHAWHAWHAW* *Ducks from the flying rocks*. Cheers, Rob. --