|
Posted by Rik on 07/27/07 10:52
On Fri, 27 Jul 2007 12:50:08 +0200, Captain Paralytic
<paul_lautman@yahoo.com> wrote:
> On 27 Jul, 11:43, Vernon Wenberg III <vwenb...@gmail.com> wrote:
>> I have an image that resides in a directory that isn't accessible on the
>> web, however I want to be able to send that image via PHP without making
>> it directly accessible on the web. The URL would be something like this
>> .. image/username/image-name.
>>
>> The reason I want to do this is so that I can do authentication on the
>> user before having it pushed to the browser. How would I be able to do
>> this?
>
> http://uk.php.net/manual/en/function.readfile.php
And don;t forget to send the right mime-type headers.
(BTW, I assume you allready have a script that determines wether a user is
logged in or not?)
--
Rik Wasmus
Navigation:
[Reply to this message]
|