You are here: image src and relative path « PHP Programming Language « IT news, forums, messages
image src and relative path

Posted by Bob Bedford on 12/20/07 12:57

Hello,

I'm trying to show images that are in a protected directory. I can't move
those images and I can't set the path rights
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

 

Navigation:

[Reply to this 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

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