|
Posted by ZeldorBlat on 06/18/07 18:27
On Jun 18, 2:22 pm, cbmeeks <cbme...@gmail.com> wrote:
> I have a photo sharing site that takes a photo once it is uploaded and
> copies it to a NON browsable location so that it can not be browsed
> directly.
>
> Then, when you want to view it, I load it in PHP and send down the
> custom header. That way, I can control security, bandwidth, etc.
>
> Works great. However, it's very demanding and it simply can't serve
> the data as quickly as a static image in a browsable location.
>
> So my question is, is there any way the file can be static (as in, not
> dynamically created with a custom header) and still have all of my
> custom security and bandwidth code?
>
> Flickr allows you to make a file private. Yet, if you happen to find
> out the URL, anyone can browse it! I mean, it would be impossible to
> guess the URL but if it ever got out then you couldn't prevent people
> from looking unless you deleted and re-uploaded.
>
> I don't really want to go that route.
>
> Thanks
> cbmeeks
When you say "it's very demanding and it simply can't serve the data
as quickly as a static image in a browsable location" what evidence do
you have? Have you run any tests using a profiler to see what the
problem might be? Do you really have that much traffic, or are you
"planning" for the future?
[Back to original message]
|