|
Posted by Lars Eighner on 12/20/07 14:23
In our last episode, <476a66ce$0$29602$5402220f@news.sunrise.ch>, the lovely
and talented Bob Bedford broadcast on comp.lang.php:
> Hello,
> I'm trying to show images that are in a protected directory.
Not possible. Put the images in a world-readable directory or have users
enter username and password. Why in the world would you think otherwise?
You seem to want two contradictory and mutually exclusive things: you want
the images protected (otherwise, why did you put them in a protected
directory?) and you want them publicly accessible (otherwise why do you
object to authentication?) You cannot have both.
> I can't move those images and I can't set the path rights
Then copy them to an unprotected directory.
> The path of my script:
> home/www/xxxxxxxxxx/web/showimages.php
> The path of the images:
> home/www/xxxxxxxxxx/stats/image.png
> home/www/xxxxxxxxxx/web/ is the root of the website.
> Now I've tried so far:
><IMG SRC="../stats/usage.png"> //this asks the user and pass for the
> protected directory
><IMG SRC="home/www/xxxxxxxxxx/stats/image.png"> //this shows
> http://www.mysite.com/home/www....in image properties
><IMG SRC="/stats/image.png"> //this one also asks for user and pass of the
> protected directory.
> Si my question is: how to show this image on this page ?
> Thanks a lot for helping.
> Bob
--
Lars Eighner <http://larseighner.com/> usenet@larseighner.com
Countdown: 397 days to go.
Navigation:
[Reply to this message]
|