Reply to Re: Sending an image to a browser

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация